Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Discussions about using Windows guests in VirtualBox.
kojam
Posts: 20
Joined: 19. Sep 2009, 22:08
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP

Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by kojam »

does anyone know?
My XP (GUEST) can surf the web wirelessly, however, my (HOST) Hackintosh (osx86, v10.5.7), cannot because there is no driver for my Acer Aspire One's wireless card.
So, I want the guest (XP) to share it's internet out to the host Hackintosh system so the HOST can surf wireless too.
does anyone know how to do this?
Been looking for 1 wk. can only find millions of sites that explain how to share out folders betwixt guest and host.
Bummer!
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by vbox4me2 »

You need Host only networking and then share the connection on the Guest for the Host, you might need to set the IP address on the Host/host only adapter fixed after sharing from the Guest.
kojam
Posts: 20
Joined: 19. Sep 2009, 22:08
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by kojam »

vbox4me2 wrote:You need Host only networking and then share the connection on the Guest for the Host, you might need to set the IP address on the Host/host only adapter fixed after sharing from the Guest.

Thanks much!
Could you provide a 'for dummies' step-by-step how to do this please?
I have 21month old twins, a sick wife, no help, and work 12hr shifts.
I barely have time to mess with this.
If not, could you point me out the section in the manuals that have the steps outlined?
Appreciate it!
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by vbox4me2 »

Look in the Manual how Bridge and Host only works, then look up internet sharing with Windows. There is more then one way to set this up, provided the Guest has internet access via usb.
kojam
Posts: 20
Joined: 19. Sep 2009, 22:08
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by kojam »

vbox4me2 wrote:Look in the Manual how Bridge and Host only works, then look up internet sharing with Windows. There is more then one way to set this up, provided the Guest has internet access via usb.
:oops: :cry:
Well, don't I feel stupid.
Just tried to follow the manual but got nowhere. I know how to implement ICS on Windows boxes (been doing it for a long time). Just can't get this host-only thing and bridge thing down. Maybe I'm just too tired ...

So, I'm using a USB wi-fi NIC for the guest to get it's internet....
Should I enable the host-only networking on the wi-fi NIC, or the 1st adapter (which must be the on-board NIC)? Also, it says to enable dhcpserver on this host-only adapter but what they state doesn't match up with my setup. They say to click File>>Settings>>Network, and I should see all 'host-only' networks presently in use...BUT I DON'T SEE IT, even after setting it up on the 1st adapter.

Darn!
I'm soooooo confused!
Whoa! Twin crying! :( Gotta run!!!
Will check back later (if I get the chance).

Thanks!
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by vbox4me2 »

Host only connects the Guest with the Host, once you share internet on the Guest side the Host / Host only adapter must be set to dhcp.
kojam
Posts: 20
Joined: 19. Sep 2009, 22:08
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by kojam »

vbox4me2 wrote:Host only connects the Guest with the Host, once you share internet on the Guest side the Host / Host only adapter must be set to dhcp.

Okay, this is all done...
I do not get an IP address on the host system though. From the host system, I can ping the DNS server that I found in the host-only adapter setting of virtualbox, however, I do not get an IP (am I supposed to see an IP?), and I cannot browse the web from the host. From the host system, I can ping the IP of the vbnetbox01 (can't recall the exact name) interface though.
One thing, when enabling ICS on the guest, Windows changes the IP of the nic that will be used for the host-only networking to 192.168.0.1, yet the DHCP server address listed in VB is not on the same subnet. Is that okay?
Maybe I should disable the ICS in windows, thus causing the NIC to go back to whatever the original IP was BEFORE ICS changed it to 192.168.0.1? That way, I can see if the host grabs an IP from the dhcp?
Can you follow what I'm trying to say/do?

Thanks.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by Sasquatch »

Keep the ICS on in the Guest. On the Host, set the following IP configuration on the Host-Only adapter. This should overwrite the VB settings, or put them in the VB config. The latter however, won't allow you to set a gateway and DNS server which are needed.

Host config:
IP address: 192.168.0.2 (or any other number than 1, but not higher than 254)
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS: whatever the Guest has

That should give you internet on the Host, through the Guest.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
kojam
Posts: 20
Joined: 19. Sep 2009, 22:08
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by kojam »

Sasquatch wrote:Keep the ICS on in the Guest. On the Host, set the following IP configuration on the Host-Only adapter. This should overwrite the VB settings, or put them in the VB config. The latter however, won't allow you to set a gateway and DNS server which are needed.

Host config:
IP address: 192.168.0.2 (or any other number than 1, but not higher than 254)
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS: whatever the Guest has

That should give you internet on the Host, through the Guest.

Thanks bud.
I've done this already a few times but still no go.
A question: "When the host-only networking is enabled on the host-only networking NIC in VB, is there a 'virtual' interface that is created on the host, or do I configure the actual ETHERNET that exists on the host already?
I've configured the ETHERNET (System Preferrences>>Networking) on my host with the config that you provided but when in Terminal and I issue 'ifconfig' i don't see that this config has been applied tot he ETHERNET. Am I doning something wrong? I'm totally new to OSX.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by Perryg »

Try leaving the gateway blank.
kojam
Posts: 20
Joined: 19. Sep 2009, 22:08
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by kojam »

Perryg wrote:Try leaving the gateway blank.

OSX doesn't have a 'gateway' field in the ETHERNET properties. There's a setting called 'Router' which I suppose is the same as 'gateway'. I tried to leave it blank, however, OSX won't allow you to leave that field blank.

I haven't don't any bridging being done. Do I need to set up some type of bridging on the GUEST (XP) system?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by Sasquatch »

The settings need to be set to the virtual interface, not the physical one. If you do it with the physical one, then you need to have an active link on it (either a loopback connector or a switch) and set the VM network to bridged.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
kojam
Posts: 20
Joined: 19. Sep 2009, 22:08
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by kojam »

Sasquatch wrote:The settings need to be set to the virtual interface, not the physical one. If you do it with the physical one, then you need to have an active link on it (either a loopback connector or a switch) and set the VM network to bridged.
Oh!
I thought it was something like that!
I'll have a poke around for the virtual interface ...
Thanks all for the wonderful help that you've been providing for this 'dumb' guy. My babies (and 10 years of marriage) ate my brain! :oops:
Hopefully, I'll be reporting back something good to you all soon.

Appreciate any more info that anyone has to offer ...
kojam
Posts: 20
Joined: 19. Sep 2009, 22:08
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by kojam »

Sasquatch wrote:Kojam, please stick to your own topic. Have you tried Bridged like I also suggested, instead of Host-Only? Reply in your own topic.
Sorry dude...
Desperation makes a feller do crazy things.
You're post has pulled me back to light though; it was the 'virtual' slap in the face that I needed to help me pull myself back together. I was becoming delirious. ...
I did try bridged.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Arg!!! Can GUEST (XP) give internet access to HOST (OSX)?

Post by vbox4me2 »

Its not all that difficult, I just finished a slimline vm router with xp, again simple.
To skip some stages with a router, add a Host only network to the VM that is having internet, inside the VM enable ICS between the lan adapter that is created via the usb stick and the Host only network adapter, this becomes 192.168.0.1 with dhcp, the Host-host only adapter is (pre)fixed so you need to change that to dhcp, thats all basicly.
Post Reply