nixops-vbox
nixops-vbox copied to clipboard
VirtualBox: physical network interfaces were not found
Using the trival example:
Could not start the machine nixops-b8bb74cc-88c6-11e8-866d-6a00016d2c00-webserver because the following physical network interfaces were not found:
vboxnet0 (adapter 2)
You can either change the machine's network settings or stop the machine.
I then change the settings of the virtual machine to use internal network, and it boots up, but after getting the IP address, NixOps seems unable to connect to it:
nixops deploy -d trivial
webserver> creating VirtualBox VM...
webserver> Virtual machine 'nixops-b8bb74cc-88c6-11e8-866d-6a00016d2c00-webserver' is created and registered.
webserver> UUID: 78e13a84-4eed-44a6-a455-9d4b032451f2
webserver> Settings file: '/Users/michael.fellinger/VirtualBox VMs/nixops-b8bb74cc-88c6-11e8-866d-6a00016d2c00-webserver/nixops-b8bb74cc-88c6-11e8-866d-6a00016d2c00-webserver.vbox'
webserver> creating disk ‘disk1’...
webserver> 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
webserver> Clone medium created in format 'VDI'. UUID: d190d331-5109-473e-ba71-c65140e825e7
webserver> attaching disk ‘disk1’...
webserver> Waiting for VM "nixops-b8bb74cc-88c6-11e8-866d-6a00016d2c00-webserver" to power on...
webserver> VM "nixops-b8bb74cc-88c6-11e8-866d-6a00016d2c00-webserver" has been successfully started.
webserver> waiting for IP address........................................ 169.254.184.1
ssh: connect to host 169.254.184.1 port 22: Operation timed out
webserver> could not connect to ‘[email protected]’, retrying in 1 seconds...
The solution seems to be this:

Thanks! Just ran into this.
thanks. appreciate it
thank you!
I don't see any such option in VirtualBox 6.1. Hunting around all over the place, can't find it.
In Virtualbox 6.1 it's a bit different. Use "Host Network Manager" and add a vboxnet0 network.
thanks a lot!