[Fedora-xen] Createing/working with disk images

Lamont Peterson lamont at gurulabs.com
Fri Mar 30 23:01:55 UTC 2007


Apologies for self replying.

On Friday 30 March 2007 12:50pm, Lamont Peterson wrote:
[snip]
> -----
> 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)
> ----- 
[snip]

OK.  With more research, I've identified that the disk device isn't visible in 
the guest, and that's what's causing the error at boot time.  Here's the disk 
line from the guest config:

disk = [ 'tap:aio:/var/lib/xen/images/machinename-xvda,xvda,w' ]

I was able to get virt-install to create a working guest after turning off 
SELinux.  I'll turn it back on later and try to find the policy problem, but 
it must be dontaudit'ed as I'm not seeing any audit messages for startup, 
though I do see one when it crashes and tries to write a fail log entry.

Comparing the differences in the initrd image inside the working guest disk 
image and the one inside the images I'm creating, I'm not seeing any 
significant different.  Both list the same drivers and the same parameters to 
things like the "mkrootdev" command.  The list of files in the initrd image 
is identical except for a couple of extra drivers in lib/ on my image's 
initrd (that are not being loaded).

The xvda device is not showing up in the guests, so I get a kernel panic 
during boot.  The same thing was happening trying to use 
virt-inatll/virt-manager, preventing those installations from working 
(couldn't get past the partitioning screen without any disks).

I've checked file permissions, SELinux contexts, etc.  Everything looks good.  
The only obvious difference between my guest config and the one created by 
virt-install is that mine do not have uuid lines.

Any ideas?
-- 
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/4445c0bc/attachment.sig>


More information about the Fedora-xen mailing list