nixops-vbox icon indicating copy to clipboard operation
nixops-vbox copied to clipboard

virtualbox deployments need virtualbox dhcp server enabled

Open jcumming opened this issue 8 years ago • 2 comments

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 avatar Mar 08 '16 19:03 jcumming

@jcumming do you know if there's a way to detect if DHCP is not enabled?

domenkozar avatar Jun 07 '16 12:06 domenkozar

@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?

nightkr avatar Jul 28 '16 16:07 nightkr