Reputation: 794
I have been trying (and failing) to set up any kind of internet connection for my Windows XP virtual machine and would appreciate some assistance.
Details are as follows:
Virtualbox 4.3.0
Mac OS 10.6.8 host
Windows XP SP 2 guest
My internet connection is via Airport, with the IP address of the host being 192.168.1.2 (dynamically assigned by the router) and the router 192.168.1.1.
I think the problem I'm having is either not knowing which settings I'm supposed to be changing or what configuration I need. Is Windows XP supposed to retrieve its settings from an in-built DHCP server in Virtualbox or do I need to manually specify the IP address and gateway? If so, how do I know which addresses I'm supposed to be using?
In the Virtualbox preferences I also tried adding a host-only network and switching on the DHCP server, but when I ping any of the IP addresses used in the default configuration I just got either a "request timed out" or "destination unreachable" message.
As a last resort I tried installing the guest additions but this stopped Windows from even being able to boot so that doesn't seem to be an option either.
Taking all those points into account and trying not to complicate things, I thought I'd start over from the beginning again and the easiest option seemingly was to set-up a bridged adaptor connection and then (in Windows XP) manually specify the same IP addresses that the host has been assigned. But this didn't work either - the guest was unable to ping the router and the host got automatically assigned a different IP address after a Finder alert appeared saying that another computer on the network was already using the same IP address.
Thanks for any assistance!
Upvotes: 21
Views: 97637
Reputation: 61
VM: 7.0.20 r163906
MacOS: HighSierra 10.13.06
For me nothing of the above worked, or it seemed to me that I have working internet connection with DNS resolving (command ping google.com
works just fine).
So I assumed that the Safari browser was not updated, so trying Firefox Extended Support Release worked fine! Steps that I have performed:
Make sure that when downloading Firefox Browser, you are downloading compatible version with OS that you have running in your VM.
Upvotes: 0
Reputation: 1
Had the same issue, used Bridged adaptor & Wifi Airport, Installed generic ethernet card drivers off internet, reboot and boom found it. Works.
Upvotes: -1
Reputation: 31
MacBook Pro - Mojave:
Network settings - NAT
Go to advanced settings and click on Advanced.
Click on port forwarding and click on add a connection. Enter 0 in the first PORT box and 1 in the second port box. Leave the IP addresses blank.
Click apply.
Make sure the "Cable Connected" box is checked. Worked for me with no other issues. All of the suggestions above did not resolve the problem on my MacBook Pro.
Hope this helps someone....
Upvotes: 3
Reputation: 41
In case anyone had the same problem, here is my case:
Settings:
I tried NAT,Bridged Adapter and other adapters,they just won't work. When i typed "ip addr",the result looks like this, there's no ipv4 address assigned to the enp0s3 interface.
[root@localhost ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 08:00:27:43:59:bf brd ff:ff:ff:ff:ff:ff
So i guess maybe there's something wrong with the network interface config, which is not that obvious when you are not familiar with linux. We can check specified network interface config through following command.
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=0b1aa850-85ba-478d-8efb-94f3c16d47e1
DEVICE=enp0s3
ONBOOT=no
The ONBOOT field is set to no,which indicates the network interface is not activated.We can start the enp0s3 interface by following command.
[root@localhost ~]# ifup enp0s3
The Internet is back on. ^_^
Upvotes: 2
Reputation: 127
I have to choose following to make it works.
My settings:
I choose "NAT" and "PCnet Fast III" and it worked now.
Thanks for other suggestions here.
Upvotes: 6
Reputation: 203
I tried all of this but it did not work for me, instead I tried to shutdown vb mac and go to the settings in the "Network" part and enable all "Adapters" like in the screenshots. It works for me.
Upvotes: 9
Reputation: 3039
OS X El Capitan (10.11.6) and VirtualBox 5.1.30
For me it was just changing the Adapter Type
to PCnet-FAST III
:
Attached to: NAT
Name: -
Adapter Type: PCnet-FAST III (Am79C973)
Promiscuous Mode: Deny
Upvotes: 1
Reputation: 2031
What ended up working for me on OS X El Capitan with a Windows 7 VirtualBox was the following settings:
Attached to: Bridged Adapter
Name: en0: Wi-Fi (AirPort)
Adapter Type: Intel PRO/1000 MT Desktop (82540EM)
Promiscuous Mode: Allow All
Upvotes: 1
Reputation: 189
Choose "Bridged Adapter" and "PCnet-FAST III" in Network Settings.
Name en1: Wi-Fi (AirPort)
Worked for me, too. "PCnet-FAST III" is in the advanced options and can only be selected, when the machine is not running (but selected) via the 'Machine' > 'Settings' Menu option
Virtualbox 5.0.38
Would have put this in the comments, but as i just registered I don't have enough reputation points to do so.
Upvotes: 18
Reputation: 3540
This issue is essentially due to a the allocation of the same IP addresses to both the Host WiFi adapter (by the wifi router's DHCP server) and the Guest interface (by the VirtualBox DHCP server under Nat networking).
From the VirtualBox documentation about the integrated DHCP server Fine-tuning the VirtualBox NAT engine:
In NAT mode, the guest network interface is assigned to the IPv4 range 10.0.x.0/24
by default where x corresponds to the instance of the NAT interface +2. So x is 2
when there is only one NAT instance active. In that case the guest is assigned to the
address 10.0.2.15, the gateway is set to 10.0.2.2 and the name server can be found at
10.0.2.3.
Looking at your host's WiFi adapter's IP address you will find that the address assigned to it is from the 10.0.2.0/24
network range as well.
This is the reason for the issue as now the Nat driver for VirtualBox is confused by the fact that the host and guest addresses are from the same subnet.
To fix this you can change the subnet served out by the VirtualBox DHCP server using the VBoxManage command(while the VM is powered down):
VBoxManage modifyvm VMName --natnet1 "192.168/16"
And you're good to go.
Upvotes: 11
Reputation: 31
I know this is more than likely not the issue with most, but after many hours of trying to fix my internet connection from a Mac Air host to an Virtual Box XP guest I finally went into my network settings in XP and realized that the network was disabled. Hopefully most are smart enough to look here first, but I wasn't. Again the law of parsimony proves true. Hope this helps some other poor dumb bastard.
Upvotes: 3