Page 1 of 3

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

Posted: 20. Sep 2009, 05:15
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!

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

Posted: 20. Sep 2009, 16:31
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.

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

Posted: 20. Sep 2009, 23:09
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!

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

Posted: 20. Sep 2009, 23:12
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.

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

Posted: 21. Sep 2009, 04:50
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!

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

Posted: 21. Sep 2009, 09:01
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.

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

Posted: 21. Sep 2009, 19:36
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.

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

Posted: 21. Sep 2009, 19:50
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.

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

Posted: 22. Sep 2009, 03:11
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.

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

Posted: 22. Sep 2009, 03:18
by Perryg
Try leaving the gateway blank.

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

Posted: 22. Sep 2009, 04:34
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?

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

Posted: 22. Sep 2009, 09:16
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.

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

Posted: 22. Sep 2009, 14:12
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 ...

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

Posted: 23. Sep 2009, 17:06
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.

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

Posted: 23. Sep 2009, 21:39
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.