nixops-vbox
nixops-vbox copied to clipboard
virtualbox deployments need virtualbox dhcp server enabled
If the built-in virtualbox dhcp server is not enabled, the vms will get the private networking addresses of '169.254.x.x' .
Deployment will fail, as there is no way to connect to the vms.
@jcumming do you know if there's a way to detect if DHCP is not enabled?
@domenkozar The command VBoxManage list dhcpservers
lists whether or not it is enabled, for example (5.1.2):
teo ~ VBoxManage list dhcpservers
NetworkName: HostInterfaceNetworking-vboxnet0
IP: 192.168.56.100
NetworkMask: 255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled: Yes
NetworkName: HostInterfaceNetworking-vboxnet1
IP: 0.0.0.0
NetworkMask: 0.0.0.0
lowerIPAddress: 0.0.0.0
upperIPAddress: 0.0.0.0
Enabled: No
What would be the correct behaviour here, printing an explicit error message about it?