From mboxrd@z Thu Jan 1 00:00:00 1970 From: M A Young Subject: Re: pvgrub2 is merged Date: Wed, 13 Nov 2013 19:06:08 +0000 (GMT) Message-ID: References: <527EA084.6000706@gmail.com> <20131110084753.540b0107@opensuse.site> Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-914645422-1384369568=:27356" Return-path: In-Reply-To: <20131110084753.540b0107@opensuse.site> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: phcoder@gmail.com Cc: The development of GNU GRUB , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-914645422-1384369568=:27356 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Sun, 10 Nov 2013, Andrey Borzenkov wrote: > В Sat, 09 Nov 2013 21:52:20 +0100 > Vladimir 'φ-coder/phcoder' Serbinenko пишет: > >> 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 <> 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 --8323329-914645422-1384369568=:27356 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --8323329-914645422-1384369568=:27356-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VggoV-0002dW-Fz for mharc-grub-devel@gnu.org; Wed, 13 Nov 2013 15:13:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgfm1-0002pT-R9 for grub-devel@gnu.org; Wed, 13 Nov 2013 14:06:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgflv-00010s-I1 for grub-devel@gnu.org; Wed, 13 Nov 2013 14:06:45 -0500 Received: from hermes1.dur.ac.uk ([129.234.248.1]:46470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgflv-0000uZ-8P for grub-devel@gnu.org; Wed, 13 Nov 2013 14:06:39 -0500 Received: from smtphost4.dur.ac.uk (smtphost4.dur.ac.uk [129.234.252.4]) by hermes1.dur.ac.uk (8.14.4/8.14.4) with ESMTP id rADJ6BkE019257; Wed, 13 Nov 2013 19:06:15 GMT Received: from procyon.dur.ac.uk (procyon.dur.ac.uk [129.234.250.129]) by smtphost4.dur.ac.uk (8.14.4/8.14.4) with ESMTP id rADJ68BX027769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Nov 2013 19:06:08 GMT Received: from procyon.dur.ac.uk (localhost [127.0.0.1]) by procyon.dur.ac.uk (8.14.3/8.11.1) with ESMTP id rADJ68Qc020237; Wed, 13 Nov 2013 19:06:08 GMT Received: from localhost (dcl0may@localhost) by procyon.dur.ac.uk (8.14.3/8.14.3/Submit) with ESMTP id rADJ685c020233; Wed, 13 Nov 2013 19:06:08 GMT Date: Wed, 13 Nov 2013 19:06:08 +0000 (GMT) From: M A Young To: phcoder@gmail.com Subject: Re: [Xen-devel] pvgrub2 is merged In-Reply-To: <20131110084753.540b0107@opensuse.site> Message-ID: References: <527EA084.6000706@gmail.com> <20131110084753.540b0107@opensuse.site> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-914645422-1384369568=:27356" X-DurhamAcUk-MailScanner: Found to be clean, Found to be clean X-DurhamAcUk-MailScanner-ID: rADJ6BkE019257 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 129.234.248.1 X-Mailman-Approved-At: Wed, 13 Nov 2013 15:13:22 -0500 Cc: The development of GNU GRUB , "xen-devel@lists.xen.org" X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2013 19:06:52 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-914645422-1384369568=:27356 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by hermes1.dur.ac.uk id rADJ6BkE019257 On Sun, 10 Nov 2013, Andrey Borzenkov wrote: > =D0=92 Sat, 09 Nov 2013 21:52:20 +0100 > Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0= =B8=D1=88=D0=B5=D1=82: > >> Hello, all. pvgrub2 has just became part of upstream grub as ports i38= 6-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=3Dx86_64 >> ./autogen.sh >> ./configure --target=3D$ARCH --with-platform=3Dxen >> make >> mkdir -p boot/grub/ >> cat > boot/grub/grub.cfg <> search -s root -f /boot/grub/grub.cfg >> configfile /boot/grub/grub.cfg >> EOF >> ./grub-mkstandalone --grub-mkimage=3D./grub-mkimage -o grub.xen -O $AR= CH-xen -d grub-core/ boot/grub/grub.cfg >> > > Do I understand it correctly that to use grub.xen it is enough to add > > kernel =3D "/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=3D. before running ./grub-mkstandalone as otherwise it looks for some files i= n=20 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=20 such as /grub/grub.cfg if there is a separate boot partition, or=20 /boot/grub2/grub.cfg for Fedora. For testing it can be set correctly by=20 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=20 the boot files are in /dev/xvda but not in /dev/xvda1 . Michael Young --8323329-914645422-1384369568=:27356--