Oracle VirtualBox
is a free, open source and powerful virtualization tool. Some minor
configurations tweaks are required to access guest localhost from host
computer. I am running VirtualBox with Ubuntu on my MAC OS.
If you are attempting to access internet from your virtual machine, but if you are getting error, then here are few steps that you can try. In my scenario, I also wanted to access guest localhost from host system. I was able to access internet from the virtual machine after these steps:
Using command promt edit and update /etc/network/interfaces file. After updating the file should look something like this:
You can now reboot the virtual machine and try to access the internet, it should work. To test from command promt, use command: ping google.com
P.S. Click here to access my other posts.
If you are attempting to access internet from your virtual machine, but if you are getting error, then here are few steps that you can try. In my scenario, I also wanted to access guest localhost from host system. I was able to access internet from the virtual machine after these steps:
- Shut down virtual machine
- In VirtualBox, right click on the virtual machine and go to "Settings"
- Select "Network" tab
- Select "Adapter1"
- Select "Enable Network Adapter" checkbox
- Click on "Attached to" drop down box and select "NAT"
- Select "Adapter2"
- Select "Enable Network Adapter" checkbox
- Click on "Attached to" drop down box and select "Host-only Adapter"
- Next, go to "Advanced" section
- Click on "Promiscuocus Mode" drop down box and select "Allow VMs"
- Finally, launch virtual machine
Using command promt edit and update /etc/network/interfaces file. After updating the file should look something like this:
You can now reboot the virtual machine and try to access the internet, it should work. To test from command promt, use command: ping google.com
P.S. Click here to access my other posts.
Comments
Post a Comment