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

Re: [OSSTEST PATCH 22/38] buster: Extend guest bootloader workaround



Hi,

On 28/05/2020 15:53, Ian Jackson wrote:
Julien Grall writes ("Re: [OSSTEST PATCH 22/38] buster: Extend guest bootloader 
workaround"):
On 20/05/2020 15:57, Ian Jackson wrote:
Julien Grall writes ("Re: [OSSTEST PATCH 22/38] buster: Extend guest bootloader 
workaround"):
On 19/05/2020 20:02, Ian Jackson wrote:
        # Debian doesn't currently know what bootloader to install in
        # a Xen guest on ARM. We install pv-grub-menu above which

OOI, what does Debian install for x86 HVM guest? Is there any ticket
tracking this issue?

On x86, it installes grub.  (grub2, x86, PC, to be precise.)

I have just realized that on x86 you will always have a firmware in the
guest. On Arm we commonly boot the kernel directly.

Yes.  At leave, for HVM.

So maybe we are closer to PV here. Do you also install GRUB in that case?

It's Complicated.  There are several options, but the usual ones are:

1. pygrub: Install some version of grub, which generates
    /boot/grub.cfg.  It doesn't matter very much which version of grub
    because grub.cfg is read by pygrub in dom0 and that fishes out the
    kernel and initrd.  Many of osstest's tests do this.

2. host kernel: Simply pass the dom0 kernel *and initramfs* as the
    kernel image to the guest.  This works if the kernel has the right
    modules for the guest storage, which it can easily do.  On x86 an
    amd64 kernel can run an i386 userland.

3. pvgrub.

Thanks for the explanation. How do you select it in the Osstest today?

Is it a option for the debian installer or you do it manually as part
of your install script?
Note that we do support EDK2 at least on Arm64. It would be nice to get
some tests for it in Osstest in the future.

Is this the same as "EADK" ?  I'm afraid I don't follow...

Sorry, I should have been more precise. I meant that we are able to boot a Arm guest using UEFI as we added support in EDK2 (I think in Xen we use the term ovmf).

When using EFI, the guest can boot exactly the same way as it would on baremetal. The toolstack is just loading the firmware in the guest memory.

IIRC we have already regular EFI testing on x86 in Osstest. I am thinking to extend them to Arm at some point.


I'm not aware of any ticket or bug about this.

It might be worth creating one then.

Where should I do that ?  I guess I mean, in which bugtracker ?

From the comment in the code, I would assume this is a bug/enhancement against the Debian installer. But I may have misundertood it.

Cheers,

--
Julien Grall



 


Rackspace

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