Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update unikernels to mirage 4.5.0 #240

Merged
merged 2 commits into from
May 9, 2024
Merged

update unikernels to mirage 4.5.0 #240

merged 2 commits into from
May 9, 2024

Conversation

hannesm
Copy link
Contributor

@hannesm hannesm commented May 9, 2024

No description provided.

open Mirage

let data_key = Key.(value @@ kv_ro ~group:"data" ())
let data = generic_kv_ro ~key:data_key "configuration"
let private_netif = netif ~group:"private" "private"
let private_ethernet = etif private_netif
let private_arp = arp private_ethernet
(* this is temporary until we find a better way *)
let ip = Runtime_arg.V4.network ~group:"private" (Ipaddr.V4.Prefix.of_string_exn "10.0.0.2/24")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we used to use Key_gen.private_ipv4 () -- but now that's not available anymore. We now re-create the same key, once for passing it to our unikernel, and once it is created in the call to create_ipv4 below.

A solution I can see is to enhance our Ip.S interface - which at the moment has a get_ip : t -> ipaddr list, to instead contain get_ip : t -> ipaddr.Prefix.t list. I'll work on this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mirage/mirage-tcpip#516 will allow us to remove this let ip = ... from mirage-nat and mirage-router.

@hannesm
Copy link
Contributor Author

hannesm commented May 9, 2024

the mirage-client and mirage-server continue to work with mirage 4.4, but for mirage-nat and mirage-router we needed to modify code which is not compatible with mirage 4.4.

@hannesm hannesm merged commit cfd1904 into main May 9, 2024
5 checks passed
@hannesm hannesm deleted the mirage45 branch May 9, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant