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

Re: [PATCH XEN] tools: Update files examples PV&PVH with pygrub.



Le 13/01/2026 à 07:15, Juergen Gross a écrit :
On 12.01.26 23:44, Alexandre GRIVEAUX wrote:
Update files exemples PV&PVH for non direct kernel boot with pygrub.

Signed-off-by: Alexandre GRIVEAUX <agriveaux@xxxxxxxxxxxx>
---
  tools/examples/xlexample.pvhlinux | 3 +++
  tools/examples/xlexample.pvlinux  | 3 +++
  2 files changed, 6 insertions(+)

diff --git a/tools/examples/xlexample.pvhlinux b/tools/examples/xlexample.pvhlinux
index 18305b80af..2bdd43c2c5 100644
--- a/tools/examples/xlexample.pvhlinux
+++ b/tools/examples/xlexample.pvhlinux
@@ -25,6 +25,9 @@ kernel = "/boot/vmlinuz"
  # Kernel command line options
  extra = "root=/dev/xvda1"
  +# Enable to use a grub2 emulation inside guest instead of direct kernel boot.

I don't think this is correct.

pygrub is running in dom0, not in the guest.


Juergen

Hello,


I doesn't understand your reply, yes pygrub is running on the Dom0, and this goal is to behave like there is a grub2 on the DomU.


My wording seem too confuse for you ? You would like this:

Enable to use a "grub2 emulation inside guest" instead of direct kernel boot.

Or

Enable to use a emulation of grub2 inside guest instead of direct kernel boot.

Or

Enable to use a emulation of grub2 for guest instead of direct kernel boot.


For me, using wiktionary:

emulate (computing <https://en.wiktionary.org/wiki/computing#Noun>) of a program or device: to imitate another program or device


And according to man page of xl.cfg:

*bootloader="PROGRAM"* <https://manpages.debian.org/trixie/xen-utils-common/xl.cfg.5.en.html#bootloader=_PROGRAM_>
    Run "PROGRAM" to find the kernel image and ramdisk to use.
    Normally "PROGRAM" would be "pygrub", which is an emulation of
    grub/grub2/syslinux. Either *kernel* or *bootloader* must be
specified for PV guests.

And when using it like with a lx start -c <name>.cfg, one of the screen will welcome an user with pygrub.

Thanks.




 


Rackspace

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