[Fedora-xen] Createing/working with disk images

Lamont Peterson lamont at gurulabs.com
Fri Mar 30 18:50:48 UTC 2007


On Tuesday 27 March 2007 06:52pm, Andrew Cathrow wrote:
> Yep,
>
> It's referenced in the quickstart
>
> http://fedoraproject.org/wiki/FedoraXenQuickstartFC6

Doh, I read through that part and didn't register the section that combined 
losetup & kpartx.

At this point, the RHEL5 guests (I'm working on that distro first) won't boot.  
Here's what I'm getting:

-----
Going to boot Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
  kernel: /boot/vmlinuz-2.6.18-8.el5xen
  initrd: /boot/initrd-2.6.18-8.el5xen.img
Started domain guru1
rtc: IRQ 8 is not free.
rtc: IRQ 8 is not free.
i8042.c: No controller found.
Red Hat nash version 5.1.19.6 starting
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
-----
BTW, the GRUB config was edited to specify /dev/xvda1 as the root partition on 
the kernel command line.

After modifying the initrd image in the guest to not load some drivers, to 
load the xenblk.ko driver, add the xenblk.ko driver and change the device ID 
in the resume mkrootdev command, I get this:
-----
Going to boot Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
  kernel: /boot/vmlinuz-2.6.18-8.el5xen
  initrd: /boot/initrd-2.6.18-8.el5xen.img
Started domain guru1
rtc: IRQ 8 is not free.
rtc: IRQ 8 is not free.
i8042.c: No controller found.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
-----
Here is (part of) what the "init" nash script in the initrd looks like after 
my edits:
-----
echo Setting up hotplug.
hotplug
echo Creating block device nodes.
mkblkdevs
echo "Loading uhci-hcd.ko module"
insmod /lib/uhci-hcd.ko
echo "Loading ohci-hcd.ko module"
insmod /lib/ohci-hcd.ko
echo "Loading ehci-hcd.ko module"
insmod /lib/ehci-hcd.ko
mount -t usbfs /proc/bus/usb /proc/bus/usb
echo "Loading jbd.ko module"
insmod /lib/jbd.ko
echo "Loading ext3.ko module"
insmod /lib/ext3.ko
echo "Loading xenblk.ko module"
insmod /lib/xenblk.ko
mkblkdevs
resume /dev/xvda2
echo Creating root device.
mkrootdev -t ext3 -o defaults,ro xvda1
echo Mounting root filesystem.
mount /sysroot
echo Setting up other filesystems.
setuproot
-----
What do I need to do to create (or edit) a working initrd for the guest?
-- 
Lamont Peterson <lamont at gurulabs.com>
Senior Instructor
Guru Labs, L.C. [ http://www.GuruLabs.com/ ]

NOTE:  All messages from this email address should be digitally signed with my
       0xDC0DD409 GPG key. It is available on the pgp.mit.edu keyserver as
       well as other keyservers that sync with MIT's.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-xen/attachments/20070330/30953b4f/attachment.sig>


More information about the Fedora-xen mailing list