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

Re: [Xen-devel] [PATCH OSSTEST v2 00/15] add distro domU testing flight



Il 28/04/2014 13:32, Ian Campbell ha scritto:
On Mon, 2014-04-28 at 13:30 +0200, Fabio Fantoni wrote:
Is there some "special" reason to install domUs starting with pygrub
instead of directly?
I'm only doing this for netinst tests which use pygrub to extract the
kernel from the ISO image in a convenient way.

For netboot tests it does indeed download the kernel and boot it
directly.

Thanks for your reply.


Since last year with recents grub2 of Sid the domUs don't boot anymore
with pygrub and I use pvgrub2 instead, I haven't tried installation from
pygrub instead of directly but perharps it has the same problem.
Is pvgrub2 test now missing on osstest?
Nobody has contributed one yet.

Ian.


These are my notes about the preparation and tests done of pvgrub2 (which I'm also using on the new systems in productionwith Wheezy as dom0), maybe it can be useful for those who want to use it:

-------------------------
PVGRUB2 upstream
---
aptitude install autogen libdevmapper-dev libfuse-dev unifont # some are optionals but useful (other requirements if I am not mistaken are included in the preparation of xen and qemu from source)
git clone git://git.sv.gnu.org/grub.git
./autogen.sh
./configure --target=x86_64 --with-platform=xen
make
mkdir -p boot/grub/
cat > boot/grub/grub.cfg <<'EOF'
insmod lvm
insmod ext2
insmod part_msdos
insmod part_gpt
insmod btrfs
insmod xzio

insmod regexp
for dev in (*); do
    # $device: parenthesis removed from $dev
    regexp -s device '\((.*)\)' $dev
    set root=$device
    for file in /boot/vmlinuz-* /boot/linux-*; do
        if test -f $file; then
            set saved_root=$root
        fi
    done
done
set root=$saved_root

if test -f /boot/grub2/grub.cfg ; then
    configfile /boot/grub2/grub.cfg
elif test -f /boot/grub/grub.cfg ; then
    configfile /boot/grub/grub.cfg
fi
EOF
pkgdatadir=. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -o pvgrub2.xen -O x86_64-xen -d grub-core/ boot/grub/grub.cfg
mv pvgrub2.xen /boot
---
Note: it works only with domUs that have grub2, old domUs with grub1 must use pygrub instead
-------------------------


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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