| View previous topic :: View next topic |
| Author |
Message |
mistermax n00b


Joined: 03 May 2005 Posts: 59
|
Posted: Sat Jan 07, 2006 10:41 pm Post subject: [SOLVED] vmware-workstation 5.5.1.19175 and NAT for XP Pro |
|
|
Dear all,
maybe I'm so stupid but I am not able to make the Network running for my Guest XP Pro.
Under Gentoo all works nicely, and /sbin/ifconfig show the following:
| Code: | eth0 Link encap:Ethernet HWaddr 00:30:84:3F:21:91
inet addr:10.0.0.7 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:67828 errors:0 dropped:0 overruns:0 frame:0
TX packets:58302 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63508666 (60.5 Mb) TX bytes:4605842 (4.3 Mb)
Interrupt:5 Base address:0xc400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:830 errors:0 dropped:0 overruns:0 frame:0
TX packets:830 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX byteAnyway nos:44160 (43.1 Kb) TX bytes:44160 (43.1 Kb)
|
On vmware the same Ethernet card (connected to the Corega Router ADSL) is configured as NAT,
and for Windows I made the internet connection as a LAN using the DHCP service, as suggested by
a lot of posts here.
But unfortunately the network doesn't work at all.
Any idea?
Tnx to all,
MrMax
Last edited by mistermax on Mon Jan 09, 2006 8:05 am; edited 1 time in total |
|
| Back to top |
|
 |
agent_jdh Veteran

Joined: 08 Aug 2002 Posts: 1767 Location: Scotland
|
Posted: Sun Jan 08, 2006 1:49 am Post subject: |
|
|
If you want it to get a seperate ip address from your router, you should set up vmware to use bridged networking. If you set it up as NAT, it will use internal NAT-ing through the ip of your host machine's ethernet adapter. _________________ Jingle Jangle Jewellery |
|
| Back to top |
|
 |
mistermax n00b


Joined: 03 May 2005 Posts: 59
|
Posted: Sun Jan 08, 2006 10:47 am Post subject: |
|
|
Hi agent_jdh,
Many thanks for your answer.
I switchet to NAT because of when the Ethernet is set for bridget networking, VmWare prompts the
error:
| Code: | Could not open /dev/vmnet0: No such file or directory
Virtual device Ethernet0 will start disconnected. |
After that XPPro boots normally but the Ethernet card still disabled.
I'm sure that all the modules are loaded before launching vmware, as we can see with lsmod:
| Code: |
Module Size Used by
8139cp 17408 0
aic7xxx 184020 0
nvidia 4084752 12
snd_intel8x0 30304 2
snd_ac97_codec 93820 1 snd_intel8x0
snd_ac97_bus 2048 1 snd_ac97_codec
ehci_hcd 30088 0
usbhid 28676 0
uhci_hcd 31376 0
vmnet 36004 0 <---
vmmon 106860 6 <---
8139too 22528 0
|
Have you an idea?
Thanks |
|
| Back to top |
|
 |
agent_jdh Veteran

Joined: 08 Aug 2002 Posts: 1767 Location: Scotland
|
Posted: Sun Jan 08, 2006 12:55 pm Post subject: |
|
|
When you ran /opt/vmware/workstation/bin/vmware-config.pl, what networking options did you select? Sounds like you didn't build bridged networking support. Re-run that script, and when it asks you if you want to keep your networking settings, select no, and then select the wizard. Answer 'yes' to bridged networking, and NAT as well just in case you want to switch at any point.
You should then be able to use bridged networking in your virtual machine's configuration (it will let you select bridged, even if you've not built support for it). _________________ Jingle Jangle Jewellery |
|
| Back to top |
|
 |
mistermax n00b


Joined: 03 May 2005 Posts: 59
|
Posted: Sun Jan 08, 2006 1:29 pm Post subject: |
|
|
Ok, let me show you what I'm configuring with
the /opt/vmware/workstation/bin/vmware-config.pl -skipstopstart command:
| Code: |
Configuring fallback GTK+ 2.4 libraries.
Trying to find a suitable vmmon module for your running kernel.
None of the pre-built vmmon modules for VMware Workstation is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.14-gentoo-r5/build/include]
Extracting the sources of the vmmon module.
Building the vmmon module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.14-gentoo-r5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.14-gentoo-r5'
CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config3/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config3/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config3/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config3/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config3/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config3/vmmon-only/common/task.o
CC [M] /tmp/vmware-config3/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config3/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config3/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST
CC /tmp/vmware-config3/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config3/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.14-gentoo-r5'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config3/vmmon-only'
The module loads perfectly in the running kernel.
You have already setup networking.
Would you like to skip networking setup and keep your old settings as they are?
(yes/no) [no]
Do you want networking for your virtual machines? (yes/no/help) [yes]
Would you prefer to modify your existing networking configuration using the
wizard or the editor? (wizard/editor/help) [wizard]
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
All your ethernet interfaces are already bridged.
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] yes
The following NAT networks have been defined:
. vmnet8 is a NAT network on private subnet 172.16.150.0.
Do you wish to configure another NAT network? (yes/no) [no]
Do you want to be able to use host-only networking in your virtual machines?
[yes]
The following host-only networks have been defined:
. vmnet1 is a host-only network on private subnet 192.168.165.0.
Do you wish to configure another host-only network? (yes/no) [no]
Extracting the sources of the vmnet module.
Building the vmnet module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmnet-only'
make -C /lib/modules/2.6.14-gentoo-r5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.14-gentoo-r5'
CC [M] /tmp/vmware-config3/vmnet-only/driver.o
CC [M] /tmp/vmware-config3/vmnet-only/hub.o
CC [M] /tmp/vmware-config3/vmnet-only/userif.o
CC [M] /tmp/vmware-config3/vmnet-only/netif.o
CC [M] /tmp/vmware-config3/vmnet-only/bridge.o
CC [M] /tmp/vmware-config3/vmnet-only/procfs.o
CC [M] /tmp/vmware-config3/vmnet-only/smac_compat.o
SHIPPED /tmp/vmware-config3/vmnet-only/smac_linux.x386.o
LD [M] /tmp/vmware-config3/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST
CC /tmp/vmware-config3/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-config3/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/linux-2.6.14-gentoo-r5'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config3/vmnet-only'
The module loads perfectly in the running kernel.
The configuration of VMware Workstation 5.5.1 build-19175 for Linux for this
running kernel completed successfully.
You can now run VMware Workstation by invoking the following command:
"/opt/vmware/workstation/bin/vmware".
Enjoy,
--the VMware team
|
That's all!
No way to do better for me
Tnks for your help! |
|
| Back to top |
|
 |
agent_jdh Veteran

Joined: 08 Aug 2002 Posts: 1767 Location: Scotland
|
Posted: Sun Jan 08, 2006 1:36 pm Post subject: |
|
|
I've never used -skipstopstart. Using that kind of defeats the purpose of rebuilding the modules unless you reboot. What's the output of ls -l /dev/vm* ? _________________ Jingle Jangle Jewellery |
|
| Back to top |
|
 |
mistermax n00b


Joined: 03 May 2005 Posts: 59
|
Posted: Sun Jan 08, 2006 1:56 pm Post subject: |
|
|
I think this undocumented option is for starting without troubles the /etc/init.d/vmware service with the newest version of vmware (See http://forums.gentoo.org/viewtopic-t-395972-highlight-skipstopstart.html).
Here the output you like to see:
ls -l /dev/vm*
| Code: |
crw-rw---- 1 root vmware 10, 165 Jan 8 13:30 /dev/vmmon
crw------- 1 root root 119, 0 Jan 8 13:25 /dev/vmnet0
crw------- 1 root root 119, 1 Jan 8 13:25 /dev/vmnet1
crw------- 1 root root 119, 2 Jan 8 13:25 /dev/vmnet2
crw------- 1 root root 119, 3 Jan 8 13:25 /dev/vmnet3
crw------- 1 root root 119, 4 Jan 8 13:25 /dev/vmnet4
crw------- 1 root root 119, 5 Jan 8 13:25 /dev/vmnet5
crw------- 1 root root 119, 6 Jan 8 13:25 /dev/vmnet6
crw------- 1 root root 119, 7 Jan 8 13:25 /dev/vmnet7
crw------- 1 root root 119, 8 Jan 8 13:25 /dev/vmnet8
crw------- 1 root root 119, 9 Jan 8 13:25 /dev/vmnet9
|
Really this annoyng trouble make me crazy!
C U
MrMax |
|
| Back to top |
|
 |
agent_jdh Veteran

Joined: 08 Aug 2002 Posts: 1767 Location: Scotland
|
Posted: Sun Jan 08, 2006 2:01 pm Post subject: |
|
|
Never had that problem. It's always worked here on ~x86. I've always used bridged networking as well.
Interesting, /dev/vmnet0 is there - is vmware still complaining about it not being there after you select bridged networking in your virtual XP configuration? _________________ Jingle Jangle Jewellery |
|
| Back to top |
|
 |
mistermax n00b


Joined: 03 May 2005 Posts: 59
|
Posted: Sun Jan 08, 2006 2:17 pm Post subject: |
|
|
I tried so many time to restart the system as well the Guest OS...
The modules are on, as shown by modinfo vmmon vmnet :
| Code: | filename: /lib/modules/2.6.14-gentoo-r5/misc/vmmon.ko
vermagic: 2.6.14-gentoo-r5 preempt PENTIUM4 gcc-3.3
depends:
filename: /lib/modules/2.6.14-gentoo-r5/misc/vmnet.ko
vermagic: 2.6.14-gentoo-r5 preempt PENTIUM4 gcc-3.3
|
May be a wrong setting of the ADSL Router Ethernet?
That's sound strange here because of Linux in on the net , as shown by ifconfig:
| Code: | eth0 Link encap:Ethernet HWaddr 00:30:84:3F:21:91
inet addr:10.0.0.7 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:211380 errors:0 dropped:0 overruns:0 frame:0
TX packets:177054 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:230046808 (219.3 Mb) TX bytes:12852039 (12.2 Mb)
Interrupt:5 Base address:0xc400
|
I don't know what I have to do now
MrMax |
|
| Back to top |
|
 |
mistermax n00b


Joined: 03 May 2005 Posts: 59
|
Posted: Mon Jan 09, 2006 8:15 am Post subject: |
|
|
With this sequence of commands vmware works perfectly as well as the bridge ethernet for the Guest XP Pro:
rmmod vmmon vmnet
/etc/init.d/vmware start
| Code: |
* Re-caching dependency info (mtimes differ)...
* Starting VMware services: [ ok ]
* Virtual machine monitor [ ok ]
* Virtual ethernet [ ok ]
* Bridged networking on /dev/vmnet0 [ ok ]
* Host-only networking on /dev/vmnet1 (background) [ ok ]
* Host-only networking on /dev/vmnet8 (background) [ ok ]
* NAT service on /dev/vmnet8 [ ok ]
|
/opt/vmware/workstation/bin/vmware-config.pl
(this time without -skipstopstart and proceeding as the same...)
MrMax |
|
| Back to top |
|
 |
|