|
From: | M A Young |
Subject: | Re: [Xen-devel] pvgrub2 is merged |
Date: | Wed, 13 Nov 2013 19:06:08 +0000 (GMT) |
User-agent: | Alpine 2.00 (DEB 1167 2008-08-23) |
On Sun, 10 Nov 2013, Andrey Borzenkov wrote:
В Sat, 09 Nov 2013 21:52:20 +0100 Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden> пишет:Hello, all. pvgrub2 has just became part of upstream grub as ports i386-xen and x86_64-xen. http://git.savannah.gnu.org/cgit/grub.git Documentation on its usage is missing for now but in short: ARCH=x86_64 ./autogen.sh ./configure --target=$ARCH --with-platform=xen make mkdir -p boot/grub/ cat > boot/grub/grub.cfg <<EOF search -s root -f /boot/grub/grub.cfg configfile /boot/grub/grub.cfg EOF ./grub-mkstandalone --grub-mkimage=./grub-mkimage -o grub.xen -O $ARCH-xen -d grub-core/ boot/grub/grub.cfgDo I understand it correctly that to use grub.xen it is enough to add kernel = "/path/to/grub.xen" to guest configuration?
I have found the following problems in doing this; The instructions are missing a step. You I found I had to do export pkgdatadir=.before running ./grub-mkstandalone as otherwise it looks for some files in the installed version of grub2 rather than the build location.
Your script search -s root -f /boot/grub/grub.cfg configfile /boot/grub/grub.cfgonly checks one location, and the grub.cfg file can be in other places such as /grub/grub.cfg if there is a separate boot partition, or /boot/grub2/grub.cfg for Fedora. For testing it can be set correctly by hand but more locations would need to be searched for general use.
It doesn't seem to understand sub-partitions. I can get it to work if the boot files are in /dev/xvda but not in /dev/xvda1 .
Michael Young
[Prev in Thread] | Current Thread | [Next in Thread] |