Hello everyone,
I have recently installed Windows 7 pro SP1 64 bits on a new computer
The network adapter is a Realtek PCIe GBE Family Controller
After installing VirtualBox 5.0.10 I created a VM to run CentOS 7 and added 2 network adapters:
1 NAT
1 Bridge
After running the VM, only the NAT adapter is detected and the guest system has no access to internet nor can I access it from my host system
I am wondering if this is related to the choice of adapter type in the VM settings or if it's something else
I have so far tried 2 adapter types:
Intel PRO/1000 MT Desktop
PCnet-FAST III
Any ideas?
Thanks in advance and a happy new year to you all
[Solved] Networking Win7 host, Centos 7 guest, VBox 5.0.10
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Networking Win7 host, Centos 7 guest, VirtualBox 5.0.10
What's the reason for having two paths to the same router? Does bridged networking work if you don't enable NAT?
Re: Networking Win7 host, Centos 7 guest, VirtualBox 5.0.10
Hi mpack,
The reason I have 2 network adapters was to test which to use
I have tried to boot the machine with only one bridged connection and it still does not access the internet and still cannot be accessed from the host system
After checking, I found that the dynamically attributed IP for the bridged connection is not in the same subnet as the host
Also, the network IF name that I find with the command ifconfig has no associated ifcfg file on the VM
Isn't a guest's bridged connection supposed to get a dynamic IP from the same dhcp as the host?
Thanks in advance,
The reason I have 2 network adapters was to test which to use
I have tried to boot the machine with only one bridged connection and it still does not access the internet and still cannot be accessed from the host system
After checking, I found that the dynamically attributed IP for the bridged connection is not in the same subnet as the host
Also, the network IF name that I find with the command ifconfig has no associated ifcfg file on the VM
Isn't a guest's bridged connection supposed to get a dynamic IP from the same dhcp as the host?
Thanks in advance,
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Networking Win7 host, Centos 7 guest, VirtualBox 5.0.10
If you use bridged then the VM is talking directly to the router, and will get an IP address from it (using DHCP) just like any other device connected to it. I hope you haven't been confusing matters by forcing a MAC address that conflicts with another device.JbT102 wrote: Isn't a guest's bridged connection supposed to get a dynamic IP from the same dhcp as the host?
Re: Networking Win7 host, Centos 7 guest, VirtualBox 5.0.10
I don't think I did, I left the default value of the mac address and did not get any conflict messages on any other connected devices to my router
Is there a recommended adapter type for the network card i have on the host? could that be the issue?
Is there a recommended adapter type for the network card i have on the host? could that be the issue?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Networking Win7 host, Centos 7 guest, VirtualBox 5.0.10
The type of Ethernet NIC you have on your host makes no difference to what the VM simulates. A wireless NIC would be a different matter, as not all Routers support the MAC spoofing needed to get multidrop of a wireless connection, whereas the feature (multidrop of a single port) is fundamental to wired LAN.
Re: Networking Win7 host, Centos 7 guest, VirtualBox 5.0.10
Hi again,
I did the following and the VM now has access to internet and an IP address on the same subnet as the host
Adapter 1 Enabled: (all others disabled)
Attached to: Bridged Adapter
Name: Realtek PCIe GBE Family Controller
Advanced
Adapter type: Intel PRO/1000 MT Desktop (82540EM)
Promiscuous mode: Deny
MAC Address: randomly generated
Cable connected
Thanks for you support mpack!
Cheers
I did the following and the VM now has access to internet and an IP address on the same subnet as the host
Adapter 1 Enabled: (all others disabled)
Attached to: Bridged Adapter
Name: Realtek PCIe GBE Family Controller
Advanced
Adapter type: Intel PRO/1000 MT Desktop (82540EM)
Promiscuous mode: Deny
MAC Address: randomly generated
Cable connected
Thanks for you support mpack!
Cheers