[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] pvgrub2 is merged

On 13.11.2013 20:06, M A Young wrote:
> On Sun, 10 Nov 2013, Andrey Borzenkov wrote:
>> Ð Sat, 09 Nov 2013 21:52:20 +0100
>> Vladimir 'Ï-coder/phcoder' Serbinenko <phcoder@xxxxxxxxx> ÐÐÑÐÑ:
>>> 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 .
insmod part_msdos
insmod part_gpt
>     Michael Young

Attachment: signature.asc
Description: OpenPGP digital signature

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.