vmware on ubuntu 6.06

Discussion in 'HOWTO-Related Questions' started by jhz, Jul 30, 2006.

  1. jhz

    jhz New Member

    I've carefully followed the excellent tutorial, and I've been able to set-up the vmware server, the MUI and the console client (Linux version).
    I have encountered few problems, only the last remaining still unsolved yet.
    1. I didn't have the right headers for my kernel ===> solved
    2. httpd.vmware didn't restart at reboot ===> solved
    3. Networking dosn't work in the vm I've set-up.
    My guest OS is win XP. The networking is bridged.
    Nothing happens under XP (IP address is in the same network as that of the host OS).
    I've googled a bit, but without success yet.
    I've noticed that /dev/vmnet0 doesn't appear in ifconfig -a
    By the way, here's what "ifconfig -a" replies :

    eth0 Lien encap:Ethernet HWaddr 00:40:F4:6B:72:38
    inet adr:192.168.0.1 Bcast:192.168.0.255 Masque:255.255.255.0
    adr inet6: fe80::240:f4ff:fe6b:7238/64 Scope:Lien
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Packets reçus:190535 erreurs:0 :0 overruns:0 frame:0
    TX packets:119125 errors:5 dropped:0 overruns:5 carrier:5
    collisions:0 lg file transmission:1000
    Octets reçus:274434270 (261.7 MiB) Octets transmis:8213351 (7.8 MiB)
    Interruption:3 Adresse de base:0xa000

    lo Lien encap:Boucle locale
    inet adr:127.0.0.1 Masque:255.0.0.0
    adr inet6: ::1/128 Scope:Hôte
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    Packets reçus:88028 erreurs:0 :0 overruns:0 frame:0
    TX packets:88028 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:0
    Octets reçus:6324831 (6.0 MiB) Octets transmis:6324831 (6.0 MiB)

    sit0 Lien encap:IPv6-dans-IPv4
    NOARP MTU:1480 Metric:1
    Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:0
    Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)

    vmnet1 Lien encap:Ethernet HWaddr 00:50:56:C0:00:01
    inet adr:172.16.142.1 Bcast:172.16.142.255 Masque:255.255.255.0
    adr inet6: fe80::250:56ff:fec0:1/64 Scope:Lien
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:1000
    Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)

    vmnet8 Lien encap:Ethernet HWaddr 00:50:56:C0:00:08
    inet adr:172.16.56.1 Bcast:172.16.56.255 Masque:255.255.255.0
    adr inet6: fe80::250:56ff:fec0:8/64 Scope:Lien
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 lg file transmission:1000
    Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)

    No vmnet0. Is it supposed to appear here, or being bridged with eth0 its absence is normal ?
    How can I verify , both on the host and on the guest sides that things work as expected ?
    Thanks.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    The ifconfig output looks ok, I'd say. Can you open a command shell on your XP box and run
    Code:
    ipconfig
    ? What's the output?
     
  3. jhz

    jhz New Member

    Thanks for the answer.
    Here's "ipconfig" output on the guest OS (XP):
    C:\Documents and Settings\Administrateur>ipconfig
    Configuration IP de Windows
    Carte Ethernet Connexion au réseau local:
    Suffixe DNS propre à la connexion :
    Adresse IP. . . . . . . . . . . . : 192.168.0.11
    Masque de sous-réseau . . . . . . : 255.255.255.0
    Passerelle par défaut . . . . . . : 192.168.0.254
    C:\Documents and Settings\Administrateur>ping 192.168.0.1
    Envoi d'une requête 'ping' sur 192.168.0.1 avec 32 octets de données :
    Délai d'attente de la demande dépassé.
    Délai d'attente de la demande dépassé.
    Statistiques Ping pour 192.168.0.1:
    Paquets : envoyés = 2, reçus = 0, perdus = 2 (perte 100%),
    Ctrl+C

    You'll note that I have set the guest IP adress in the same network than the host (no DHCP).
    Should I have let the system set it automatically (use DHCP) ?
    Oh, and I've verified that vm0 seems bridged with eth0, as expected, because this process is running on the host :
    4964 ? S 0:00 /usr/bin/vmnet-bridge -d /var/run/vmnet-bridge-0.pid /dev/vmnet0 eth0
    Any idea ?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Try DHCP. XP's IP address should be in the 172.16.142.0 or 172.16.56.0 subnet.
     
  5. jhz

    jhz New Member

    Ok, I've tried DHCP.
    Here are the results:
    First I've just changed my TCP/IP properties (in XP) to use DHCP.
    The address didn't change (it remained what I had previously manually set-up:192.168.0.11), but the gateway address was no longer set (the field was empty).
    Then I rebooted XP, and noticed several strange things. Address and netmask were both set to 0.0.0.0 (and the gateway field remained empty).
    And I discovered the vmware tools service was not automatically started at boot time (services.msc showed that the service was configured to start automatically, but it didn't). I was able to start it manually (but on subsequent reboots, I always had to start the service manually).
    I've also noticed that copy/paste between host and guest don't work (menu items are greyed). I suppose it *could* be related to the network configuration problem.
    All in all, very little progress.
    I'll try a repair on the XP side, with the installation CD, just in case...
     
  6. falko

    falko Super Moderator ISPConfig Developer

    I think you have to install the VMware tools for this.
     
  7. jhz

    jhz New Member

    But the vmware tools are installed.
    Just, the service isn't started at boot as it should. I have to start it manually.

    I have also tried to reinstall XP, but no way, still no network nor cut and paste.

    Is there somewhere an explanation of the different network modes a vmware server can provide to a guest OS ?
    I mean, depending upon my choice (bridged, NAT...), how does it relate to the network configuration of the guest OS ?
     

Share This Page