Join GitHub today
Use static boot config params to acquire IP address, net mask and GW for xen unikernel #228
Following discussion during project meeting, we need a way to bootstrap a unikernel with a static assigned IP address from the xen config. There are some parameters that may be usable:
also the vif= parameter allows assignment of IP address in the form:
Longterm we should consider supporting Cloudinit to bootstrap VM info including passwords and ssh keys etc..
With the parameters provided above the cmdline variable in xenstore is populated as:
[email@example.com tmp]# xenstore-read /vm/73f7b83b-61df-a521-0891-9b948acc5812/image/cmdline
First approach to get things working is to grab the xenstore key at the start point and extract IP info if it is provided.
This was referenced
Feb 26, 2014
added a commit
Mar 4, 2014
referenced this issue
Mar 4, 2014
I made it simpler, so you can just add explicit ip/gateway/netmask entries. See:
Could you please try this out and see if it works for you? I explicitly built it out of Netif functors to control the IP assignment, and can fold it into the libraries later if this example works. Just