VMware Communities
chuikingman1
Contributor
Contributor

cannot ssh to the linux(vmware virtual machine)

Hi,

I install the vmware virtual machine in the win xp desktop.

I install the OS redhat linux into the vmware virutal machine .

After installation , I bootup the linux and I find the lan interface , eth0 ,eth1 ,eth2 cannot startup and failure ....

I cannot ssh from the XP to the linux vrtual machine ....

I have already create the eth adaptor in the virtual machine .

why ??? Is the lan card create wrong ???

What type of the lan card I need to create and use ???

any advice ???

Reply
0 Kudos
12 Replies
AWo
Immortal
Immortal

Welcome to the forums!

1. Have you assigned a virtual NIC to the guest?

2. Have you installed the VMWare Tools inside the guest? These contains beside other important things the appropriate drivers:

http://pubs.vmware.com/ws65_ace25/ws_user/new_guest_tools_ws.html


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
chuikingman1
Contributor
Contributor

Hi,

I have set the NIC already.

I have install the VMware tools already....

the lan interface eth0, eth1 ,eth2 cannot up ....

Why ???Any suggestion ....

The linux kernel version is 2.4 .......

Any advice ???

Reply
0 Kudos
AWo
Immortal
Immortal

So "ifconfig -a" doesn't show a LAN interface?

Which network card does "lspci" show?

Post the .vmx file of the guest.


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
chuikingman1
Contributor
Contributor

Hi,

where is *.vmx file in linux ???

The guest OS is linux , the host Os is win XP home edition .

I cannot find it out by command "find -name *.vmx" ....

Please advice the location .....

Reply
0 Kudos
chuikingman1
Contributor
Contributor

I get below output when type "lspci" .

00:11.0 Ehternet contorller: Advanced Micro Devbices 79c970 (rev 10)

00:12.0 Ehternet contorller: Advanced Micro Devbices 79c970 (rev 10)

00:13.0 Ehternet contorller: Advanced Micro Devbices 79c970 (rev 10)

I tyep ifconfig -a ...

All the interface ,eth0 ,eth1 ,eth2 have no IP address as it is not up

I attach the Red Hat Linux.vmx file in window XP , Host machine

Pleae advice how to fix it .......

Reply
0 Kudos
chuikingman1
Contributor
Contributor

I post the Red Hat Linux.vmx file in here again .

There is vmware tool installed .

Pleae advice how to fix the problem , why the lan interface cannot up ???

Reply
0 Kudos
AWo
Immortal
Immortal

Ahh, you found the .vmx file 8327_8327.gif

O.K., form reading your .vmx file the standard vNIC is used as there's no special entry regarding the type like "ethernet0.virtualDev = "". That means the AMD PCVnet32 adapter is emulated which should be run withe the appropriate driver "pcnet32". If you enter "lsmod" in the guest you should see "vmxnet" and "pcnet32" loaded. Is this the case?

Add the following line to your .vmx file: ethernet0.virtualDev = "vmxnet"

Start the guest and check with "lspci" if it has changed to: "Ethernet controller: VMware Inc Abstract Ethernet Controller (rev 10)"

Have you already gone through the network configuration within Redhat? I mean have you configured the vNIC's to use DHCP, for example?

What happens when you enter "/etc/init.d/network stop" and then "/etc/init.d/network start"?

AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
chuikingman1
Contributor
Contributor

In lsmod , there is only pcnet32 , there is no vmxnet

I add below line in the *.vmx file

ethernet0.virtualDev = "vmxnet"

But I get below line in "lspci"

Ethernet controller VMWare Inc: Unknown device 0720 (rev 10)

When I restart the network by command "network stop" , "network start" ....

Below is the ouput ......

Bringing up interface wth0 : pcnet32 device eth0 does not seem to be present , delaying initialization

I use kernel 2.4 ........

Please advice ...

Reply
0 Kudos
AWo
Immortal
Immortal

Let's start small.

From your .vmx file I see you have three custom vNIC's all connected to VMnet8. VMnet8 is the NAT virtual network, so I don't know why you did that, doesn't make sense to me. I would suggest that you start with one vNIC, connected to VMNet8 by using "NAT" not custom. You can configure that in the guest hardware editor (where you added the vNIC's).

Post the output of "lsmod | grep vm" and "ps -e | grep vm". As long as "lsmod" doesn't show teh "vmxnet" module it seems that the VMware Tools (which contain the drivers" are not installed correctly.


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

Edited by AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
chuikingman1
Contributor
Contributor

Belowos the command lsmod

Module Size Used by Tainted: PF

parport_pc 19076 1 (autoclean)

lp 8996 0 (autoclean)

parport 37056 1 (autoclean)

autofs 13268 0 (autoclean) (unused)

vmhgfs 38380 5

pcnet32 18240 0

mii 3976 0

ipt_REJECT 3928 6 (autoclean)

iptable_filter 2412 1 (autoclean)

ip_tables 15096 2

sg 36524 0 (autoclean)

sr_mod 18136 0 (autoclean)

ide-scsi 12208 0

ide-cd 35708 0

cdrom 33728 0

keybdev 2944 0 (unused)

mousedev 5492 0 (unused)

hid 22148 0 (unused)

input 5856 0

usb-uhci 26348 0 (unused)

usbcore 78784 1

ext3 70784 2

jbd 51892 2

BusLogic 100796 0 (unused)

sd_mod 13452 0 (unused)

scsi_mod 107128 5

Below is command "lsmod |grep vm "

vmhgfs 38380 4

below is command "ps -ef |grep vm"

root 1776 1 0 20:45 ? 00:00:00 /usr/sbin/vmware-guestd --background /var/run/vmware-guestd.pid

Please advice

Reply
0 Kudos
AWo
Immortal
Immortal

O.K., the VMware Tools are not installed correct. Several modules and processes are missing.

Please take the ".tar.gz" VMware Tools file and try to install that one. You need to have the Kernel source and the gcc compiler installed in your guest. Follow this manual for installation: http://pubs.vmware.com/ws65_ace25/ws_user/ws_newguest_tools_linux_2.html

When the process starts to compile the single modules (like vmxnet, vmhgfs, ....) check for errors or the statement that this module fits into the running kernel.

Reboot the guest and try again.

For a quick try you also can add the line ethernet0.virtualDev="vlance" to the guest .cmx file and use the AMD PCnet32 driver and see if the network comes up. You may have to go through the guest OS specific network configuration again.

But at the end you better have the VMware Tools running. Using the vlance adapter doesn't give you the full performance and other important things are missing without the VMware Tools. So you should replace "vlance" with "vmxnet" at the end.


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
DaveYostCom
Contributor
Contributor

Seems to be a big in the vmware-tools installer. I had to do this:

sudo chmod -R a+rX /usr/lib/vmware-tools
sudo chmod -R a+rX /etc/vmware-tools   

Reply
0 Kudos