PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Xen-Gast-Problem (Cannot open root device)



uzarath99
05.06.07, 00:13
Hallo,

seit einigen Tagen versuche ich fertige Xen-Gast-"Maschinen" zum laufen zu bringen. Doch ich bekomme es einfach nicht hin.
Ich versuche mal mein Vorgehen zu beschreiben:

Ich habe ein SuSE 10.2 AMD 64 (voll aktualisiert).
Nachträglich habe ich alle notwendigen Pakete für XEN installiert (Yast2).
Domain 0 startet korrekt ohne Fehlermeldung.
Danach habe ich ein fertiges Xen-Image runtergeladen:
wget http://buch.eisxen.org/fileadmin/xim/debian.disk.bz2
Nun habe ich das Image entpackt und gemoutet.
bunzip2 debian.disk.bz2
mv debian.disk /home/xen
mount -o loop /home/xen/debian.disk /mnt
Anschließend kopierte ich die zum Kernel für Gastmaschine gehörenden Kernel-Module (/lib/modules/2.6.18.8-0.3-xen) aus Domain 0

in das Root-Verzeichnis des Gastes.
cp -ax /lib/modules/2.6.18.8-0.3-xen /mnt/lib/modules
Letztendlich habe ich das Image wieder ausgehängt.

Meine Xen-Konfiguration-Datei unter /etc/xen/debian sieht wie folgt aus:
kernel = "/boot/vmlinuz-xen"
memory = 128
vif = [ '' ]
disk = [ 'file:/backup/xen/debian.disk,hda2,w' ]
root = "/dev/hda2 ro"
extra = "3"

Die /etc/fstab des Gastes habe ich auch darauf angepasst (habe auch andere Geräte probiert z.B. sd1 usw.):
-- schnipp --
/dev/hda2 / ext3 defaults 1 1
-- schnapp --


Sobald ich vm starte
xm create debian -c

bekomme ich folgende Fehlermeldung in der Konsole:

-- schnipp --
VFS: Cannot open root device "hda2" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
-- schnapp --

meine /var/log/xen/xend.log spuckt folgendes aus:

-- schnipp --
[2007-06-02 18:39:21 xend.XendDomainInfo 5406] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:143) Waiting for devices vif.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:149) Waiting for 0.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/6/0/hotplug-status.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/6/0/hotplug-status.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:478) hotplugStatusCallback 1.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:143) Waiting for devices usb.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:143) Waiting for devices vbd.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:149) Waiting for 770.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vbd/6/770/hotplug-

status.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:478) hotplugStatusCallback 1.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:143) Waiting for devices irq.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:143) Waiting for devices pci.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:143) Waiting for devices ioports.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:143) Waiting for devices tap.
[2007-06-02 18:39:21 xend 5406] DEBUG (DevController:143) Waiting for devices vtpm.
[2007-06-02 18:39:21 xend 5406] INFO (XendDomain:370) Domain debian.conf (6) unpaused.
-- schnapp --


Irgendwie bekomme ich es nicht hin. Was mache ich bloß falsch?

Gruß
Ulli