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

Re: [Xen-devel] strange behavior with Multiboot2 on EFI

What I did so far:
Installed Arch Linux inside of Qemu virtual machine.

Inside of virtual machine I added these lines to /etc/default/grub

GRUB_SERIAL_COMMAND="serial --speed=9600 --unit=0 --word=8 --parity=no --stop=1"

and called grub-mkconfig -o /boot/grub/grub.cfg

Now when I boot my virtual machine the Grub2 uses serial console.

I mounted EFI partition of virtual machine and copied into it Xen
kernel with multiboot2 support, and added following lines to

menuentry 'Xen kernel' {
        set root='(hd0,1)'
        multiboot2 /xen

Now I am ready to launch Xen kernel inside my virtual machine.

I launch virtual machine with following command:

sudo qemu-system-x86_64 \
       -hda linux.img \
       -bios OVMF-pure-efi.fd \
       -m 4096 \
       -debugcon file:debug.log -global isa-debugcon.iobase=0x402

After choosing Xen kernel entry the following output goes to serial console:
error: no suitable video mode found.

Here is the tail of debug.log file:

 [Bds]Booting GRUB
 FSOpen: Open '\EFI\GRUB\grubx64.efi' Success
 [Bds] Expand 
 [Security] 3rd party image[0] can be loaded after EndOfDxe:
 InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B BF2216C0
 Loading driver at 0x000BE5CF000 EntryPoint=0x000BE5CF400
 InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF BF29B518
 ProtectUefiImageCommon - 0xBF2216C0
   - 0x00000000BE5CF000 - 0x000000000001DC00
CR has Bad Signature

Qemu version is fresh enough:
$ qemu-system-x86_64 --version
QEMU emulator version 2.12.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

I tried to debug Qemu and it didn't even break in 0x3fd05e, the entry
point of Xen kernel.

Maybe I should recompile Grub2 myself instead using the one supplied
by Arch Linux?

Xen-devel mailing list



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