After upgrade to Ubuntu 15.04, I see the same behavior with VirtualBox and VMWare Workstation. After the system is waked up from suspend, there's neither vboxnet0 nor vmnet8 devices in the output of ifconfig. In the network menu, both virtual devices are marked as not managed.

In order to start the VMWare Workstation network, I have to sudo service vmware restart. Then I see: "Connection Established. You are now connected to vmnet8".

In order to start the VirtualBox network, I go to File -> Preferences -> Network -> Host-Only Networks -> vboxnet0.
Then press OK. I see "Connection Established. You are now connected to vboxnet0".

The question is, how to make virtual networks start automatically? It looks like a systemd issue since I haven't seen anything like that previously.

  • 1
    FWIW there's a VirtualBox issue here: virtualbox.org/ticket/13873 – Teoh Han Hui Jun 11 '15 at 12:58
  • I have the same problem as well. I could not find a solution anywhere, and it seems the VirtualBox ticket is not been dealt with. Have you found a solution, by any chance? – Florent Georges Jun 26 '15 at 17:51
  • No, I'm still suffering from this. – Sergei Morozov Jun 29 '15 at 7:50
  • The same here with Ubuntu 15.04 64 bit and Virtualbox 4.3.26_Ubuntur98988 – Grey Panther Sep 8 '15 at 17:27

Making it work manually

I have solved this problem typing the following command in a terminal after wake up:

sudo ifconfig vboxnet0

I'm not really sure if is the VirtualBox default IP, but it's the one that my Virtualbox is using, if yours is using another you have to replace the IP.

Making it work automatically

To make it work automatically while the system wakes up I have created a file in the folder:


The content of that file should be something like this:

ifconfig vboxnet0

Make the file executable with:

chmod a+x /lib/systemd/system-sleep/name_of_file.sh

Since it's a root file, you'd need to be sudo to create the file, but we don't need to include the sudo in the script.

Hope it's helpful!

NOTE: Just tested on Ubuntu 15.10

| improve this answer | |

jjcarrion's answer fixes the network after waking up from sleep, but you can also keep sleep from interfering with the network in the first place, by adding:


to /etc/NetworkManager/NetworkManager.conf. Tested on 15.10.

| improve this answer | |

(Fast way) It is not good but it works.

Go to Virtual Machine Settings > Hardware

And Remove Network Adapter

Then Add new one (Use NAT)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.