Re: VMware: Linux (host) / XP (guest)

From: Douglas Mayne (doug_at_slackware-3.localnet)
Date: 06/07/05


Date: Tue, 07 Jun 2005 09:36:20 -0600

On Mon, 06 Jun 2005 19:03:50 +0200, Bruno wrote:

> Hello,
>
> how to concretely setup Windows XP (guest) to connect to Internet from Linux
> (host) ?
> I use a xDSL connection in Linux and already have interfaces setup (see
> hereafter ifconfig) and ping (to/from) between guest and host working.
> So now what it is the next step ? Gateway ? Routing ?
> Thanks.
>
>
> eth0 Link encap:Ethernet HWaddr 00:50:BA:2A:64:82
> inet6 addr: fe80::250:baff:fe2a:6482/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:8801 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6605 errors:0 dropped:0 overruns:0 carrier:0
> collisions:3 txqueuelen:1000
> RX bytes:3987069 (3.8 MiB) TX bytes:437800 (427.5 KiB)
> Interrupt:50 Base address:0x6c00
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:1673 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1673 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:1574890 (1.5 MiB) TX bytes:1574890 (1.5 MiB)
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:83.134.237.86 P-t-P:83.134.237.1 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
> RX packets:5437 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3236 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:3665537 (3.4 MiB) TX bytes:265253 (259.0 KiB)
>
> vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
> inet addr:192.168.213.1 Bcast:192.168.213.255 Mask:255.255.255.0
> inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>
> vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
> inet addr:172.16.192.1 Bcast:172.16.192.255 Mask:255.255.255.0
> inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:629 errors:0 dropped:0 overruns:0 frame:0
> TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>
> Thanks,
> Bruno
>
When you "build" a virtual machine to boot with VMWare, there is a dialog
where networking is selected. The networking choices are
bridged, NAT, or host-only. Either bridged or NAT will give your box
access to the same network as your VMWare host. I have only used NAT, but
I think bridged networking should give the virtual box more direct
access to other computers on the same subnet.

It looks like you have properly installed VMWare (vmnetxx interfaces are
running.) Does your virtual box get assigned an address? Are you using
dialup (the ppp0 interface)? If so, double check the routing table.
Also, I could be wrong, but you may have to restart vmware
services after a establishing a dialup link or otherwise changing your
routing table.

BTW: I have used VMWare running on a Linux host for a W2k guest.
The iptables firewall is a better firewall than possible with any firewall
running on top of windows, IMHO.