Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[SOLVED] Ubuntu 18.04 VM unable to connect Internet

$
0
0
Hi all,

Host - ubuntu 16.04 desktop
VM - ubuntu 18.04 desktop
Oracle VirtualBox

VM can ping Host and gateway, but unable to connect Internet. Finally I found the solution on following link;
Virtualbox Ubuntu 17.04 cannot connect to the internet
https://askubuntu.com/questions/9504...o-the-internet

After running;
$ sudo ifconfig enp0s3 up
and
$ sudo dhclient enp0s3 -v
(enp0s3 in my case)

then VM can connect Internet.

Each time after booting up the VM I need to run those commands again. Is there any file where I can put those commands and they'll be evoked on booting.
(remark: rc.local is not on Ubuntu 18.04)

Thanks in advance

It happens the same on KVM.

Regards
satimis

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>