nix-community / nixops-vbox

NixOps VirtualBox backend [maintainer=@AmineChikhaoui]
GNU Lesser General Public License v3.0
22 stars 15 forks source link

virtualbox deployments need virtualbox dhcp server enabled #14

Open jcumming opened 8 years ago

jcumming commented 8 years ago

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.

domenkozar commented 8 years ago

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

nightkr commented 7 years ago

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