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

[libvirt] Problem with fullyvirtualized guest direct kernel boot



Hi All,

I am trying to use fullyvirtualized guest direct kernel boot, but all I see is the following error:
libvir: Xen Daemon error : POST operation failed: (xend.err 'Error creating domain: (2, \'Invalid kernel\', "elf_xen_note_check: ERROR: Not a Xen-ELF image: No ELF notes or \'__xen_guest\' section found.\\n")')

Kernel, initrd and root file system are extracted from working Fedora 9 disk image without any additional tinkering. Guest Fedora is clean and was installed from scratch. Wh
en I use this whole disk image with fullyvirtualized guest BIOS boot with, everything works fine. I also tried paravirtualized guest bootloader with another linux kernel and it also works fine. Xen version is 3.2.1-rc1-pre. Host OS is Ubuntu Hardy.

Here is the libvirt config for direct kernel boot:
<domain type='xen' id='18'>
    <name>test1</name>
    <uuid>4dea22b31d52d8f32516782e98ab3fa0</uuid>
    <os>
        <type>linux</type>
        <loader>/usr/lib/xen/boot/hvmloader</loader>
        <kernel>/tmp/vmlinuz-2.6.25-14.fc9.i686</kernel>
        <initrd>/tmp/initrd-2.6.25-14.fc9.i686.img</initrd>
        <root>/dev/sda1</root>
        <cmdline>ro</cmdline>
    </os>
    <memory>524288</memory>
    <vcpu>1</vcpu>
    <devices>
        <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
        <disk type='file'>
            <driver name="tap" type="aio"/>
            <source file='/tmp/f9_disassembled/root.img'/>
            <target dev='sda1'/>
        </disk>
        <disk type='file'>
            <driver name="tap" type="aio"/>
            <source file='/tmp/swap'/>
            <target dev='sda3'/>
        </disk>
        <interface type='bridge'>
            <source bridge='eth0'/>
            <mac address='00:16:3e:5d:c7:9e'/>
            <script path='/etc/xen/scripts/vif-bridge'/>
        </interface>
        <graphics type='vnc' port='5904'/>
    </devices>
</domain>


What do you think can be the cause of this issue?

--
Thanks, Max

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