Hi I am running a Linux VM on a 64-bit Windows host machine. I would like to get internet access in the guest via NAT. But because of reasons which I havent been able to figure out till now, I am unable to get internet access in the VM via NAT.
Note: I tried bridging one of the VirtualBox adapters to the host machine's internet port and I was successfully able to get internet access in the VM but I want internet via NAT only.
These are the adapter settings I am using:
These are the LAN settings on my Windows host machine:
I am setting a static mac address for my NAT adaptor and using udev rules, I am giving a static interface name("inteth") in the guest machine. These are my internet settings in my guest machine which is Linux:
What could be the possible solution to this problem ? Please let me know if you need additional info on my VM or host settings. I'll be glad to provide them.
Thanks in advance
Internet access in VM via NAT
-
dlharper
- Posts: 291
- Joined: 25. Aug 2011, 19:17
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: MS Windows (several versions); DOS
Re: Internet access in VM via NAT
NAT usually works "out of the box" with no problems, certainly if you use DHCP rather than static addresses.
If you have to use static addresses, try the standard NAT ones rather than those you have chosen:
If you have to use static addresses, try the standard NAT ones rather than those you have chosen:
- IP address: 10.0.2.15
Gateway: 10.0.2.2
DNS: as host
Re: Internet access in VM via NAT
Thanks for the reply. I tried what you suggested but it did not work.
I am not using static IP address for my internet adapter in the VM. I am just setting a static MAC Id so that the interface name remains stable across reboots. For further clarity, these are the contents of my "/etc/network/interfaces" file:
I am trying to create a .ova VM image with some pre-installed packages that can be used by many people for further development. Even I though I do have internet access via bridging currently, the problem is if more than one person starts using the .ova file, then they will all have the same MAC id on the same network. Therefore I want internet access via NAT.
I am not using static IP address for my internet adapter in the VM. I am just setting a static MAC Id so that the interface name remains stable across reboots. For further clarity, these are the contents of my "/etc/network/interfaces" file:
I am trying to create a .ova VM image with some pre-installed packages that can be used by many people for further development. Even I though I do have internet access via bridging currently, the problem is if more than one person starts using the .ova file, then they will all have the same MAC id on the same network. Therefore I want internet access via NAT.