From: Fabio Fantoni Subject: Re: [PATCH OSSTEST v2 00/15] add distro domU testing flight Date: Mon, 28 Apr 2014 14:59:05 +0200 Message-ID: <535E5099.7030908@m2r.biz> References: <1398681672.29700.55.camel@kazak.uk.xensource.com> <535E3BD4.2030900@m2r.biz> <1398684768.29700.73.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398684768.29700.73.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Ian Jackson , xen-devel List-Id: xen-devel@lists.xenproject.org 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 > -------------------------