0

I can't connect to internet. I lost eth0.

My VirtualBox network is Attached to : Bridged Adapter, Name : wlan0

VM Network Settings

Network configuration fails at VM boot

failures on boot

ifconfig of VM

apt-get update is failing due to DNS resolution failure.

apt errors

Zanna
  • 72,312

2 Answers2

1

First I set the machine attached: NAT and started up the server the reload the network

sudo /etc/init.d/network reload

then I shut down the server and set the attached to bridge Adapter and started up the machine, and typed these commands:

sudo virsh net-destroy default
sudo virsh net-undefine default
sudo service libvirtd restart
sudo reboot
Zanna
  • 72,312
0

Changing your settings to match the below will return your eth0 connection to your VM.

VMnic

Then Reboot the VM

If this doesn't work for you, drop me a comment.

Elder Geek
  • 36,752