All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Smith <andy@strugglers.net>
To: Andrei Borzenkov <arvidjaar@gmail.com>
Cc: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: pvgrub2 legacy_configfile issues: /sbin/init exec error -8
Date: Sat, 11 Feb 2017 15:26:43 +0000	[thread overview]
Message-ID: <20170211152643.GH1804@bitfolk.com> (raw)
In-Reply-To: <ea0a82ac-4879-df9c-8f00-64901dd4dbd6@gmail.com>

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 '<kernel:/boot/vmlinuz-3.16.0-4-amd64>')(ramdisk '<ramdisk:/boot/initrd.img-3.16.0-4-amd64>')(args 'root=UUID=38420e46-6123-477d-ba23-baeba8ac0d59 ro')

(as mentioned, if I boot it with pygrub then it works)

Putting that directly in a Xen guest config file like:

$ sudo kpartx -va /dev/mapper/myvg-debtest1_xvda add map myvg-debtest1_xvda1 (253:29): 0 10483712 linear /dev/mapper/myvg-debtest1_xvda 2048
$ sudo mount /dev/mapper/myvg-debtest1_xvda1 /mnt/xen
$ sudo cp /mnt/xen/boot/vmlinuz-3.16.0-4-amd64 /tmp/kernel
$ sudo cp /mnt/xen/boot/initrd.img-3.16.0-4-amd64 /tmp/initrd
$ cat /etc/xen/debtest1.conf
name       = "debtest1"
memory     = 1024
vcpus      = 2
vif        = [ … ]
kernel     = '/tmp/kernel'
ramdisk    = '/tmp/initrd'
extra      = 'root=UUID=38420e46-6123-477d-ba23-baeba8ac0d59 ro'
disk       = [ "phy:/dev/myvg/debtest1_xvda,xvda,w",
               "phy:/dev/myvg/debtest1_xvdb,xvdb,w",
               "phy:/dev/myvg/debtest1_xvdc,xvdc,w" ]
on_poweroff = "preserve"
on_reboot   = "preserve"
on_crash    = "preserve"

This boots fine.

What also works with the configuration in dom0 as described in
previous email:

- Installing grub-xen in guest and chainloading to that

- Installing grub-pc in guest and using "configfile
  /boot/grub/grub.cfg"

The only thing that I can't get working is "legacy_configfile
/boot/grub/menu.lst"

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' '/boot/vmlinuz-3.16.0-4-amd64' 'root=UUID=38420e46-6123-477d-ba23-baeba8ac0d59' 'ro'
legacy_initrd '/boot/initrd.img-3.16.0-4-amd64' '/boot/initrd.img-3.16.0-4-amd64'

Cheers,
Andy


  reply	other threads:[~2017-02-11 15:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-11 13:53 pvgrub2 legacy_configfile issues: /sbin/init exec error -8 Andy Smith
2017-02-11 14:46 ` Andrei Borzenkov
2017-02-11 15:26   ` Andy Smith [this message]
2017-02-11 17:19     ` Andy Smith
2017-02-11 18:45       ` Andrei Borzenkov
2017-02-11 21:07         ` Vladimir 'phcoder' Serbinenko
2017-02-11 23:36           ` Vladimir 'phcoder' Serbinenko
2017-02-12  7:06           ` Andrei Borzenkov
2017-02-12 10:52             ` Vladimir 'phcoder' Serbinenko
2017-02-24 23:22               ` Vladimir 'phcoder' Serbinenko
2017-02-25  5:27                 ` Andrei Borzenkov
2017-02-25 12:19                   ` Andy Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170211152643.GH1804@bitfolk.com \
    --to=andy@strugglers.net \
    --cc=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.