From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OSstx-0008On-U2 for mharc-grub-devel@gnu.org; Sun, 27 Jun 2010 10:32:06 -0400 Received: from [140.186.70.92] (port=51537 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSstu-0008LW-1d for grub-devel@gnu.org; Sun, 27 Jun 2010 10:32:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSsts-000703-Pk for grub-devel@gnu.org; Sun, 27 Jun 2010 10:32:01 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:50732) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSsts-0006zn-Jy for grub-devel@gnu.org; Sun, 27 Jun 2010 10:32:00 -0400 Received: by bwz9 with SMTP id 9so311782bwz.0 for ; Sun, 27 Jun 2010 07:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=9B19MmlBt57BLVRVndI/+F7fYuFmMQLjd+fxLO0jy6g=; b=SSbFx9ntY38ZV6javWDFHxWrXHTTHhqz2uoxk6pZmieBy0E5L2ShDB6a7KwQ0BMYY+ C9+77bFHIYE+1DkSlj5kyJLdFrrpLYyXNPI1EGrGryisjouutwi+IO9cCgXJyBKq0DtS AjCeSGNUjo2WwA4Z1hY/Tj7cc/UC6iTpWKGDQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=u06oFB0QPiq5g1D8n0ogC5q9cn5sxzuU1DRB/IjnVqubZwFB6CvugT0lU16M0eONov lb7eBIW620gK0nmI+ehJ5/D6dkji9BfgPjNl4X+gVmKQJEvi6dCEhoM8j4RoXJ9ngdXV sLCM2USHGldyvhg7ccr69mLmrGlmZb0zG3kLQ= Received: by 10.204.133.87 with SMTP id e23mr2484549bkt.182.1277649118743; Sun, 27 Jun 2010 07:31:58 -0700 (PDT) Received: from debian.bg45.phnet (126.89.202.62.cust.bluewin.ch [62.202.89.126]) by mx.google.com with ESMTPS id g16sm13857254bks.11.2010.06.27.07.31.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 27 Jun 2010 07:31:57 -0700 (PDT) Message-ID: <4C2760D4.2020200@gmail.com> Date: Sun, 27 Jun 2010 16:31:48 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 MIME-Version: 1.0 To: grub-devel@gnu.org References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig5AE294537A411114CCF099D6" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Changes to 10_linux (based on grub2 1.98) to generate boot stanza for Xen hypervisor (fix for bug #30257) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Sun, 27 Jun 2010 14:32:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5AE294537A411114CCF099D6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/26/2010 02:34 AM, Dante Cinco wrote: > > I have attached a patch that will add the capability in the 10_linux > grub2 script to detect and generate boot stanzas in grub.cfg for Xen > hypervisors (if present). It relies on the presence of > CONFIG_XEN_DOM0=3Dy to identify dom0 kernels and pairs them with each > version of the hypervisor that is present. It uses the multiboot > command for the Xen hypervisor image and the module command for the > vmlinuz kernel and initrd.img. It also explicitly sources > /etc/default/grub to define a new Xen-only variable called > GRUB_CMDLINE_XEN_DEFAULT. The alternative is to export this in > /usr/sbin/grub-mkconfig like the other GRUB variables. It will also > generate a boot stanza for the dom0 kernel without the hypervisor (in > case the hypervisor is broken). There is a patch on ML already, it has some problems but they are likely to affect any other approach. I won't even have a look at any alternative patches unless a good reason for it is given. > > There is a GNU GRUB bug filed on this which is bug #30257: 10_linux > ignores xen hypervisor entries and dom0 kernels. > > Here's an example of an actual Xen boot stanza. The dummy=3Ddummy in th= e > vmlinuz line is needed due to some bug in GRUB or Xen. Without it, the > boot will hang or stop and hit the initramfs (BusyBox) prompt. > > /boot/grub/grub.cfg: > > menuentry 'xen-4.0 osa-dom0 , with Linux 2.6.32.15-xen' --class > osa-dom0 --class gnu-linux --class gnu --class os { > recordfail > insmod lvm > insmod ext2 > set root=3D'(system-dom0_0)' > search --no-floppy --fs-uuid --set cc290394-fa2a-4e13-9024-3bc5a5b9215d= > multiboot /boot/xen-4.0.gz com1=3D115200,8n1 console=3Dcom1 dom0_mem=3D= 512M > dom0_max_vcpus=3D1 dom0_vcpus_pin=3Dtrue iommu=3D1,passthrough,no-intr= emap > loglvl=3Dall loglvl_guest=3Dall loglevl=3D10 debug apic=3Don > apic_verbosity=3Dverbose extra_guest_irqs=3D80 acpi=3Dforce numa=3Don > module /boot/vmlinuz-2.6.32.15-xen dummy=3Ddummy > root=3D/dev/mapper/system-dom0_0 ro quiet earlyprintk=3Dxen loglevel=3D= 10 > debug acpi=3Dforce console=3Dhvc0,115200n8 > module /boot/initrd.img-2.6.32.15-xen > } > > /etc/default/grub: > > GRUB_CMDLINE_XEN_DEFAULT=3D" com1=3D115200,8n1 console=3Dcom1 dom0_mem=3D= 512M > dom0_max_vcpus=3D1 dom0_vcpus_pin=3Dtrue iommu=3D1,passthrough,no-intr= emap > loglvl=3Dall loglvl_guest=3Dall loglevl=3D10 debug apic=3Don > apic_verbosity=3Dverbose extra_guest_irqs=3D80 acpi=3Dforce numa=3Don"= > > - Dante Cinco > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig5AE294537A411114CCF099D6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkwnYNwACgkQNak7dOguQgk4gQEApUyLIbuZof+GsT7LutSYA1eJ ZxgVKcrHuC6f73FpPPEA+gL+KlyoSHcMObjlpqzOF3XhTiHXpVsBNceiWwwlMfFR =ScNl -----END PGP SIGNATURE----- --------------enig5AE294537A411114CCF099D6--