From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ccZZZ-0000VK-7J for mharc-grub-devel@gnu.org; Sat, 11 Feb 2017 10:26:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccZZW-0000VE-VD for grub-devel@gnu.org; Sat, 11 Feb 2017 10:26:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccZZV-0002wc-I8 for grub-devel@gnu.org; Sat, 11 Feb 2017 10:26:46 -0500 Received: from mail.bitfolk.com ([2001:ba8:1f1:f019::25]:36554) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccZZV-0002wC-7b for grub-devel@gnu.org; Sat, 11 Feb 2017 10:26:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bitfolk.com; s=alpha; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=iAcy6HnnskgPLyCG/XcqiyoKRTyobuZ7ZDSQkVMVRhM=; b=UJFGwQSEAnG8PJi0yq2CGgAaFL1PajB2kEKXvu5LtuneUhrJU3PGnzmTAgpw5BDrZJ5Y70DVvPMYYKWclgDqwd0w6s+LEq8xmw/4xhnPvyoA4dMwDwullWCyP/hg1sHM//VEHwQYCVwt6mvGmCLEsCO/vVnG9VyYoI1FiAh7z/QhoToXP+PL9xHyhgBWvNOu44RgwZ/RK6z/rNWxw59d4a1/Zq5zCtyKz8ZQPBZrvkL0POnAp2NCBlaIiw5scw3Y0hDgv7N4M62xj/7YOZmtIHDed4AiOycTjeXavougXf26ew9P+vEMXaJkDEcB0BJq7wb0Y52RgPbbMyta3kpdNQ==; Received: from andy by mail.bitfolk.com with local (Exim 4.72) (envelope-from ) id 1ccZZT-00045t-VG; Sat, 11 Feb 2017 15:26:43 +0000 Date: Sat, 11 Feb 2017 15:26:43 +0000 From: Andy Smith To: Andrei Borzenkov Cc: The development of GNU GRUB Subject: Re: pvgrub2 legacy_configfile issues: /sbin/init exec error -8 Message-ID: <20170211152643.GH1804@bitfolk.com> References: <20170211135314.GY21587@bitfolk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: OpenPGP: id=BF15490B; url=http://strugglers.net/~andy/pubkey.asc X-URL: http://strugglers.net/wiki/User:Andy User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: andy@strugglers.net X-SA-Exim-Scanned: No (on mail.bitfolk.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:ba8:1f1:f019::25 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2017 15:26:48 -0000 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-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