WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] PV-GRUB: fix example file [Was: PV Grub Questions]

To: Todd Deshane <deshantm@xxxxxxxxx>
Subject: [Xen-devel] [PATCH] PV-GRUB: fix example file [Was: PV Grub Questions]
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Thu, 28 Aug 2008 16:27:37 +0100
Cc: xen-devel mailing list <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 28 Aug 2008 08:28:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1e16a9ed0808280813o298372d8i54ed0946082d1945@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, Todd Deshane <deshantm@xxxxxxxxx>, xen-devel mailing list <xen-devel@xxxxxxxxxxxxxxxxxxx>
References: <1e16a9ed0808261257p763cb14uc6a3b28513cf94d2@xxxxxxxxxxxxxx> <20080828144305.GA11437@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1e16a9ed0808280813o298372d8i54ed0946082d1945@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
Todd Deshane, le Thu 28 Aug 2008 11:13:10 -0400, a écrit :
> On Thu, Aug 28, 2008 at 10:43 AM, Samuel Thibault
> <samuel.thibault@xxxxxxxxxxxxx> wrote:
> > Todd Deshane, le Tue 26 Aug 2008 15:57:50 -0400, a écrit :
> >> extra = "(hd0,1)/boot/grub/menu.lst"
> >> memory = 64
> >> vif = [ '' ]
> >> disk = [ 'tap:aio:/root/benchvm/bin/img-xen-guest/image-0.img,hda,w' ]
> >> root = "/dev/hda2 ro"
> >
> > Oh, that root option is the cause of the menu not showing up.  That
> > shouldn't be here, since it's in menu.lst itself.
> 
> Cool, that is the first step on the way. I think that should be changed in the
> xmexample.pv-grub file,

Gargl, I thought I had tested that file, but apparently not...  Should
be applied to the 3.3 tree too of course.

Samuel



pv-grub: fix example file
Apparently 64MB is too short for the domain builder.
No kernel option should be passed, as they are provided by menu.lst, and
would only confuse grub.

diff -r 51f868f2a29f tools/examples/xmexample.pv-grub
--- a/tools/examples/xmexample.pv-grub  Thu Aug 28 13:01:25 2008 +0100
+++ b/tools/examples/xmexample.pv-grub  Thu Aug 28 16:23:26 2008 +0100
@@ -25,7 +25,7 @@ extra = "(hd0,0)/boot/grub/menu.lst"
 # WARNING: Creating a domain with insufficient memory may cause out of
 #          memory errors. The domain needs enough memory to boot kernel
 #          and modules. Allocating less than 32MBs is not recommended.
-memory = 64
+memory = 128
 
 # A name for your domain. All domains must have different names.
 name = "ExampleDomain"
@@ -119,32 +119,6 @@ disk = [ 'phy:hda1,hda1,w' ]
 #vtpm = [ 'instance=1,backend=0' ]
 
 #----------------------------------------------------------------------------
-# Set the kernel command line for the new domain.
-# You only need to define the IP parameters and hostname if the domain's
-# IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
-# You can use 'extra' to set the runlevel and custom environment
-# variables used by custom rc scripts (e.g. VMID=, usr= ).
-
-# Set if you want dhcp to allocate the IP address.
-#dhcp="dhcp"
-# Set netmask.
-#netmask=
-# Set default gateway.
-#gateway=
-# Set the hostname.
-#hostname= "vm%d" % vmid
-
-# Set root device.
-root = "/dev/hda1 ro"
-
-# Root device for nfs.
-#root = "/dev/nfs"
-# The nfs server.
-#nfs_server = '192.0.2.1'  
-# Root directory on the nfs server.
-#nfs_root   = '/full/path/to/root/directory'
-
-#----------------------------------------------------------------------------
 # Configure the behaviour when a domain exits.  There are three 'reasons'
 # for a domain to stop: poweroff, reboot, and crash.  For each of these you
 # may specify:

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>