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

VirtualBox: physical network interfaces were not found

Open manveru opened this issue 6 years ago • 6 comments

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:

screen shot 2018-07-16 at 09 17 41 And create a host network there.

manveru avatar Jul 16 '18 07:07 manveru

Thanks! Just ran into this.

illegalprime avatar Nov 28 '18 21:11 illegalprime

thanks. appreciate it

hazlyamir-tmrnd avatar Dec 10 '18 08:12 hazlyamir-tmrnd

thank you!

node-mc avatar Jan 15 '20 19:01 node-mc

I don't see any such option in VirtualBox 6.1. Hunting around all over the place, can't find it.

hsq-cernansky avatar Dec 04 '20 18:12 hsq-cernansky

In Virtualbox 6.1 it's a bit different. Use "Host Network Manager" and add a vboxnet0 network.

Screen Shot 2021-04-20 at 2 59 03 AM

Screen Shot 2021-04-20 at 2 59 49 AM

ijcd avatar Apr 20 '21 10:04 ijcd

thanks a lot!

ar-hosseinkhani avatar Mar 07 '24 11:03 ar-hosseinkhani