[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] How can I boot using pv-grub?

Hi Joe,

On Sat, 2012-08-04 at 02:27 +0100, Joe Julian wrote:
> I'm trying to figure out how to get pv-grub to work in OpenStack on 
> Fedora 17's xen-4.1.2 packaging.

I don't know how many folks on this list are familiar with openstack,
you might have more luck on openstack@xxxxxxxxxxxxxxxxxxx /
http://wiki.openstack.org/MailingLists ?

>  I added pv-grub-x86_64.gz from the 
> package as a kernel in glance (becoming 
> /var/lib/nova/instances/instance-0000001b/kernel in this example). 
> OpenStack created this vm definition:
> <domain type='xen' id='21'>
>    <name>instance-0000001b</name>
>    <uuid>8a5231bc-6535-468e-8585-60a55c9073d9</uuid>
>    <memory unit='KiB'>2097152</memory>
>    <currentMemory unit='KiB'>2097152</currentMemory>
>    <vcpu>1</vcpu>
>    <bootloader></bootloader>
>    <os>
>      <type>linux</type>
>      <kernel>/var/lib/nova/instances/instance-0000001b/kernel</kernel>
>      <cmdline>root=/dev/xvda ro</cmdline>
>    <devices>
>      <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
>      <disk type='file' device='disk'>
>        <driver name='file'/>
>        <source file='/var/lib/nova/instances/instance-0000001b/disk'/>
>        <target dev='sda' bus='scsi'/>

sda here but xvda above? Maybe that's an OpenStack-ism though.

>      </disk>
>      <disk type='file' device='disk'>
>        <driver name='file'/>
>        <source file='/var/lib/nova/instances/instance-0000001b/disk.local'/>
>        <target dev='sdb' bus='scsi'/>
>      </disk>
> I boot to the console and see grub, but it doesn't recognize the 
> partition table on (hd0): "Error 5: Partition table invalid or corrupt", 
> nor the filesystem on (hd1): "Filesystem type unknown, using whole disk".
> The files are qcow2 images with raw backing files.

I don't see anything in the xml which tells the system that. Maybe with
OpenStack that's not necessary but if the backing files were being
treated as raw instead of qcow that might explain the symptoms you see.


Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.