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
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