RH8 als DomU für Xen

Matthias Borrack mailingliste at sinath.de
Thu Jan 11 15:39:06 UTC 2007


Hallo zusammen,

ich vermute, ich bastel wieder an Dingen, die sowieso nicht gehen. Ich
habe eine Anwendung, die nur unter =< RH8 läuft. Derzeit in einer
VMWare. Ich wollte das ganze gerne in eine Xen DomU umziehen, scheiter
aber irgendwie daran.

Mein erstes Problem: Wie kann ich mit Xen so einen Guest von CD /
ISO-Image booten? Das Vorgehen für Windows ist leider nicht anwendbar.

Mein zweites Problem resultiert aus dem zweiten Weg. Ich habe die VMDK
per qemu-img in ein Raw-Image convertiert. Das Resultat sah an sich gut aus:

# file RHL8VMW.img
RHL8VMW.img: x86 boot sector, GRand Unified Bootloader; partition 1:
ID=0x83, active, starthead 1, startsector 63, 208782 sectors; partition
2: ID=0x82, starthead 0, startsector 208845, 530145 sectors; partition
3: ID=0x83, starthead 0, startsector 738990, 16032870 sectors, code
offset 0x48

Allerdings bekomme ich beim starten zwar Grub, so wie in der VMWare, nur
wenn grub weiter machen will:

# xm create -c RH8
Using config file "/etc/xen/RH8".
Going to boot Red Hat Linux (2.4.18-14)
  kernel: /vmlinuz-2.4.18-14
  initrd: /initrd-2.4.18-14.img
Error: (22, 'Invalid argument')

# tail /var/log/xen/xend-debug.log
ERROR: Unrecognized image format
ERROR: Error constructing guest OS


Also habe ich mir eine virtuelle Platte gebastelt:

# file RH8.img
RH8.img: x86 boot sector; partition 1: ID=0x83, active, starthead 1,
startsector 63, 273042 sectors; partition 2: ID=0x83, starthead 0,
startsector 273105, 20691720 sectors

# xm create -c RH8v
Using config file "/etc/xen/RH8v".
Going to boot RedHat 8
  kernel: /vmlinuz
  initrd: /initrd.img
Traceback (most recent call last):
  File "/usr/bin/pygrub", line 536, in ?
    kernel = fs.open_file(img.kernel[1],).read()
ValueError: unable to open file
No handlers could be found for logger "xend"
Error: Boot loader didn't return any data!


Sofern mein Vorhaben überhaupt umsetzbar ist, hoffe ich, dass mir jemand
von hier einen Hinweis geben kann ...


Danke und Gruß,
Matthias




More information about the Fedora-de-list mailing list