On Sun, 10 Nov 2013, Andrey Borzenkov wrote:
В Sat, 09 Nov 2013 21:52:20 +0100
Vladimir 'φ-coder/phcoder' Serbinenko <phco...@gmail.com> пишет:
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.cfg
Do 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.cfg
only 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
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel