Re: Load grub from grub (XEN-PVH)

2022-03-03 Thread Andy Smith
Hi Shaun, On Thu, Mar 03, 2022 at 08:59:17PM +, Shaun Reitan wrote: > if I try to use a distro like CentOS 8 I run into problems because > they look to have patched in something called blscfg and what ends > up happening is I get the error /boot/grub/i386-xen_pvh/blscfg.mod > not found. I hav

Re: grub2 + xen + lz4 kernels

2021-11-29 Thread Andy Smith
Hi Shaun, On Mon, Nov 29, 2021 at 11:25:22PM +, Shaun Reitan wrote: > There are a few workarounds out their, most involve a hook that decompresses > the kernel after an update but I'm not wanting to add complexity to the > kernel update process. Another option is to switch the guest to Xen PV

Re: Grub xen_pvh platform does not seem to support uncompressed kernels

2020-11-02 Thread Andy Smith
Hi, On Mon, Nov 02, 2020 at 09:43:06AM +0100, Jürgen Groß wrote: > On 02.11.20 09:27, Andy Smith wrote: > >The decompressed kernel is generated like this: > > > ># extract-vmlinux /boot/vmlinuz-5.4.0-52-generic > > >/boot/vmlinuz-5.4.0-52-generic-decompressed >

Re: Grub xen_pvh platform does not seem to support uncompressed kernels

2020-11-02 Thread Andy Smith
Hi Jürgen, On Mon, Nov 02, 2020 at 08:43:24AM +0100, Jürgen Groß wrote: > On 02.11.20 07:22, Andy Smith wrote: > >I therefore can only conclude that PVH grub doesn't like kernels > >with no compression. Is that expected? > > Can you boot the decompressed kernel

Grub xen_pvh platform does not seem to support uncompressed kernels

2020-11-01 Thread Andy Smith
Hi, [ xen-users in CC as I know a few there are using a decompressed kernel workaround for LZ4 and might be hit by this too ] I'm currently evaluating switching from booting Xen guests with grub Xen PV (grub-mkimage -O x86_64-xen) to Xen PVH (grub-mkimage -O i386-xen_pvh). I've noticed that a d

Re: Confusion regarding LZ4-compressed kernel support and Xen (PV)

2020-04-25 Thread Andy Smith
On Sat, Apr 25, 2020 at 11:38:51PM +, Andy Smith wrote: > I see the error message comes from: > > grub-core/loader/i386/xen_file.c > 92: grub_error (GRUB_ERR_BAD_OS, "not xen image"); Some further investigation reveals that if I boot these kernels with the PVH image

Confusion regarding LZ4-compressed kernel support and Xen (PV)

2020-04-25 Thread Andy Smith
Hi, I am booting Xen PV guests using a grub image compiled as a PV guest and then having that parse the /boot/grub/grub.cfg from within the guest. When this encounters an LZ4-compressed kernel I get this: Loading Linux 5.4.0-26-generic ... error: not xen image.[ vmlinuz-5

Re: grub PVHv2 booting patch series - no block devices available in guest

2018-01-22 Thread Andy Smith
Hi Juergen, Thanks for replying so quickly! On Tue, Jan 23, 2018 at 08:28:19AM +0100, Juergen Gross wrote: > On 23/01/18 08:18, Andy Smith wrote: > > The selected kernel and initramfs are read and it does boot that > > but there do not appear to be any block devices so it ultimate

grub PVHv2 booting patch series - no block devices available in guest

2018-01-22 Thread Andy Smith
Hi Juergen, I am trying out your grub PVHv2 guest support patch series as found at I have a Xen 4.10.0 host on which I've cloned https://git.savannah.gnu.org/git/grub.git and applied your patch series. When the guest is booted

i386 target crashes under xen when booted with >= 3,928MiB memory

2018-01-20 Thread Andy Smith
Hi, I have a pvgrub image of grub (tip of https://git.savannah.gnu.org/git/grub.git) configured and built as follows: ./configure --prefix=/opt/grub --target=i386 --with-platform=xen && \ make && \ sudo make install && \ sudo /opt/grub/bin/grub-mkimage -O i386-xen \ -c /opt/grub/etc/grub-boot

Re: pvgrub2 legacy_configfile issues: /sbin/init exec error -8

2017-02-25 Thread Andy Smith
Hi Andrei, Vladimir, On Sat, Feb 25, 2017 at 08:27:55AM +0300, Andrei Borzenkov wrote: > 25.02.2017 02:22, Vladimir 'phcoder' Serbinenko пишет: > > diff --git a/grub-core/commands/legacycfg.c b/grub-core/commands/legacycfg.c > > index dd9d9f1..b32f3c7 100644 > > --- a/grub-core/commands/legacycfg.

Re: pvgrub2 legacy_configfile issues: /sbin/init exec error -8

2017-02-11 Thread Andy Smith
Hello, On Sat, Feb 11, 2017 at 03:26:43PM +, Andy Smith wrote: > Here is what the config looks like if I interrupt the boot and go to > edit it: > > set root='(hd0,1)'; set legacy_hdbias='0' > legacy_kernel '/boot/vmlinuz-3.16.0-4-amd64'

Re: pvgrub2 legacy_configfile issues: /sbin/init exec error -8

2017-02-11 Thread Andy Smith
Hi Andrei, On Sat, Feb 11, 2017 at 05:46:03PM +0300, Andrei Borzenkov wrote: > What happens if you load the same kernel manually in dom0? When I do: sudo /usr/lib/xen-4.4/bin/pygrub -n /dev/myvg/debtest1_xvda I get: linux (kernel '')(ramdisk '')(args 'root=UUID=38420e46-6123-477d-ba23-baeba8

pvgrub2 legacy_configfile issues: /sbin/init exec error -8

2017-02-11 Thread Andy Smith
Hi, I'm experimenting with pvgrub2 for the first time, and having some problems getting a grub-legacy menu.lst config to work. Using a Debian jessie Xen dom0 and guest. In dom0, grub is built from git: -- $ sudo apt-get build-de