• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

openSuse10.2 -Gast VMWare-Gast bekommt keine IP-Adresse

Hey !

Ich habe ein OpenSuse 10.2 Gast auf einem openSuse10.3 Host unter VMWare-Server 1.0.4.

Unter dem OpenSuse10.3 ist KDE nicht installiert. Also nur Konsole.
Nun versuche die Gast zum laufen zu bringen.
Die Log-Datei erzählt mir auch das er gestartet wird bzw. gestartet ist. Doch es wird für diesen keine IP-Adresse vergeben. Jedenfalls steht nichts in der dhcpd.leases. Diese ist leer.
Wie kann ich nun den Host oder den Gast dazubringen, das dem Gast eine IP-Adresse im zugeteilten Adressraum zugeteilt wird und ich mir ssh darauf komme.
Gruß
Horst
 

towo

Moderator
Teammitglied
Welche Netzwerkconfig für die VM liegt denn vor?
Bridged? NAT? Host-Only?

Fragen über Fragen!
 

framp

Moderator
Teammitglied
1) VMWare hat dazu einen eigenen dhcp Server. Der schreibt Meldungen in /var/log/messages und dort findet man die DHCPREQUESTs. Irgendwelche Fehlermedungen dort?

2) Läuft der DHCP Server?
Code:
ps -ef|grep vmnet-dhcp
sollte 2 aktive Server für vmnet1 (host-only) und vmnet8 (nat) liefern.

3) Ist das host-only Interface in VMWare Console enabled?
 
OP
H

horst_skoff

Member
Hey !

Besser spät als gar nicht (musste leider eine kleine Auszeit nehmen)

Hier die Dateien:
1. instance_master.vmx
2. vmnet-dhcpd.conf
3. vmnet-nat.conf
4. die Processliste

zu 1) vmx
#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "4"
numvcpus = "2"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "1024"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "instance_master.vmdk"
scsi0:0.writeThrough = "TRUE"
ide1:0.present = "TRUE"
ide1:0.fileName = "/dev/sr0"
ide1:0.deviceType = "cdrom-raw"
floppy0.startConnected = "FALSE"
floppy0.fileName = "/dev/fd0"
Ethernet0.present = "TRUE"
Ethernet0.connectionType = "hostonly"
displayName = "instance_master"
guestOS = "suse"
priority.grabbed = "normal"
priority.ungrabbed = "normal"
powerType.powerOff = "hard"
powerType.powerOn = "hard"
powerType.suspend = "hard"
powerType.reset = "hard"

scsi0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d 85 24 60 a4 4b 94-b5 33 9f 5c aa f5 9e a4"
uuid.bios = "56 4d 85 24 60 a4 4b 94-b5 33 9f 5c aa f5 9e a4"
ethernet0.generatedAddress = "00:0c:29:f5:9e:a4"
ethernet0.generatedAddressOffset = "0"
----------------------------------------------------

zu 2) vmnet-dhcpd.conf
#
# Configuration file for ISC 2.0b6pl1 vmnet-dhcpd operating on %vmnet%.
#
# This file was automatically generated by the VMware configuration program.
# If you modify it, it will be backed up the next time you run the
# configuration program.
#
# We set domain-name-servers to make some DHCP clients happy
# (dhclient as configued in SuSE, TurboLinux, etc.).
# We also supply a domain name to make pump (Red Hat 6.x) happy.
#
allow unknown-clients;
default-lease-time 1800; # 30 minutes
max-lease-time 7200; # 2 hours

subnet %network% netmask %netmask% {
range %range_low% %range_high%;
option broadcast-address %broadcast%;
option domain-name-servers %hostaddr%;
option domain-name "localdomain";
%router_option%
}
-------------------------------------------------------------------------------------
zu 3) vmnet-nat.conf
# Linux NAT configuration file
[host]
# NAT gateway address
ip = %nataddr%
netmask = %netmask%
# or ip = %nataddr%/24

# enable configuration; disabled by default for security reasons
#configport = 33445

# VMnet device if not specified on command line
device = %vmnet%

# Allow PORT/EPRT FTP commands (they need incoming TCP stream...)
activeFTP = 1

# Allows the source to have any OUI. Turn this one if you change the OUI
# in the MAC address of your virtual machines.
#allowAnyOUI = 1

[udp]
# Timeout in seconds, 0 = no timeout, default = 60; real value might
# be up to 100% longer
timeout = 60

[incomingtcp]
# Use these with care - anyone can enter into your VM through these...

# FTP (both active and passive FTP is always enabled)
# ftp localhost 8887
#8887 = %sample%:21

# WEB (make sure that if you are using named webhosting, names point to
# your host, not to guest... And if you are forwarding port other
# than 80 make sure that your server copes with mismatched port
# number in Host: header)
# lynx http://localhost:8888
#8888 = %sample%:80

# SSH
# ssh -p 8889 root@localhost
#8889 = %sample%:22

[incomingudp]
# UDP port forwarding example
#6000 = %sample%:6001
---------------------------------------------------

4) die Processliste
root 14433 1 0 Jan22 ? 00:00:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1
root 23089 22558 0 09:46 pts/0 00:00:00 grep vmnet-dhcp
--------------------------------------------------



Vielleicht gibt es ja die Antwort auf meine fragen.

und

Gruß
Horst
 
OP
H

horst_skoff

Member
Gut vorläufig gelöst.

ich habe den Gast (Client) in ein Suse mit KDE gepackt und von dort aus gestartet.
Dann habe ich nur einmal im YAST die Netzkarte konfiguriert, einmal aufgerufen, und wieder beendet. Danach bekam ich meine Adresse zugewiesen. Wird wohl was gehakt haben!

Jemand ne Idee was?

Gruß
Host
 
Oben