Add script to allow IP address to be assigned
gbraad opened this issue · 4 comments
Updated
The issue is with how the B2D image handles the hyper-v data exchange module, which is part of the kernel. Since b2d uses a module, the values are not available in time to provide an IP address before DHCP has assigned one. The module seems to read the pool and clears the values? At least, while the WMI call as used in gbraad/go-hvkvp is received and confirmed, the value is not available, even after the module is loaded. It is therefore needed to resend the message several times... and there is no indication if the call actually succeeds.
Todo
- create
minishift-staticip.sh
script- if IpAddress is available
- else leave DHCP setting
- use given netmask
- use given nameserver
- use given gateway
- add executable to ISO image
- first use: https://github.com/gbraad/go-hvkvp/releases/tag/0.1
- use latest from gbraad-fedora/go-hvkvp#3
Refer: minishift/minishift#1316
Extension is available at: http://files.gbraad.nl/hvkvp/
Want to be able to force an IP address using a file, such as network
and network-scripts
works. In our case, the file will have to reside on /mnt/sda1/etc/???
blocker: pool gets cleared on start boot2docker/boot2docker#1274
workaround does not provide a good enough experience (needs to disable IPv6)