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

Re: [Xen-devel] [PATCH] Add xl domUs default configuration file

To: Fabio Fantoni <fantonifabio@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Add xl domUs default configuration file
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Mon, 6 Jun 2011 14:30:21 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 06 Jun 2011 06:28:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DECB9C6.2040208@xxxxxxxxxx>
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>
References: <4DECB9C6.2040208@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Mon, 6 Jun 2011, Fabio Fantoni wrote:
> This patch add xl domUs default configuration file, must be improved and 
> implemented in the core xl.
> About implementation on core i try but fail, about this configuration 
> file i start from other xm, removed some unnecessary things or specific 
> such as name and uuid missed in xl and add other, some description need 
> to be improved.

What do you mean? Xl already provides defaults for almost everything...
In any case the idea of a default xl config file is not bad.


> # HG changeset patch
> # User Fabio Fantoni
> # Date 1307358064 -7200
> # Node ID b94e5d172a99a89e2bf1570ded6e41051ef81052
> # Parent  0c0884fd8b494932a4b707e339cbe1b881d09103
> Add xl domUs default configuration file, must be improved and 
> implemented in the core xl
> 
> Signed-off-by: Fabio Fantoni <fabio.fantoni@xxxxxxxxxx>
> 
> diff -r 0c0884fd8b49 -r b94e5d172a99 tools/examples/Makefile
> --- a/tools/examples/Makefile    Fri Jun 03 21:39:00 2011 +0100
> +++ b/tools/examples/Makefile    Mon Jun 06 13:01:04 2011 +0200
> @@ -22,6 +22,7 @@
>   XEN_CONFIGS += xend-pci-quirks.sxp
>   XEN_CONFIGS += xend-pci-permissive.sxp
>   XEN_CONFIGS += xl.conf
> +XEN_CONFIGS += xl-domu-default.conf
>   XEN_CONFIGS += cpupool
> 
>   .PHONY: all
> diff -r 0c0884fd8b49 -r b94e5d172a99 tools/examples/xl-domu-default.conf
> --- /dev/null    Thu Jan 01 00:00:00 1970 +0000
> +++ b/tools/examples/xl-domu-default.conf    Mon Jun 06 13:01:04 2011 +0200
> @@ -0,0 +1,243 @@
> +#============================================================================
>  
> 
> +# Xl configuration default for domU setting on 'xl create'.
> +# This conf sets the defaults parameters used when a domain is created
> +# using 'xl create' instead those in the core if not existing in the
> +# domU config specific.
> +#============================================================================
>  
> 
> +
> +#----------------------------------------------------------------------------
>  
> 
> +# Kernel image file.
> +# kernel = "/path/to/domU/kernel"
> +
> +# Ramdisk.
> +# ramdisk = "/boot/initrd.gz"
> +
> +# The domain build function. HVM domain uses 'hvm'.
> +# builder='hvm'
> +
> +# Initial memory allocation (in megabytes) for the new domain.
> +#
> +# 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 = 128
> +
> +# Shadow pagetable memory for the domain, in MB.
> +# If not explicictly set, xend will pick an appropriate value.
> +# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
> +# shadow_memory = 8

I would remove shadow_memory completely, it is better to let libxl do
the calculations.


> +
> +#-----------------------------------------------------------------------------
>  
> 
> +# The number of cpus guest platform has, default=1
> +# vcpus=1
> +
> +# Enable/disable HVM guest PAE, default=1 (enabled)
> +# pae=1
> +
> +# Enable/disable HVM guest ACPI, default=1 (enabled)
> +# acpi=1
> +
> +# Enable/disable HVM APIC mode, default=1 (enabled)
> +# Note that this option is ignored if vcpus > 1
> +# apic=1
> +
> +# Enable/disable HVM guest ACPI, default=1 (enabled)
> +# acpi=1
> +
> +# Enable/disable HVM guest nx, default=1
> +# nx=1
> +
> +# Enable/disable HVM guest viridian, default=0
> +# viridian=1
> +
> +# Enable/disable HVM guest hpet, default=1
> +# hpet=1
> +
> +# Enable/disable HVM guest vpt_align, default=1
> +# vpt_align=1
> +
> +# Enable/disable HVM guest nestedhvm, default=0
> +# nestedhvm=1
> +
> +# HVM guest video ram in megabyte, default 8
> +# videoram=8
> +
> +# HVM guest timer_mode, default=1
> +# timer_mode=1
> +
> +#----------------------------------------------------------------------------
>  
> 
> +# Network configuration
> +# type=ioemu specify the NIC is an ioemu device not netfront
> +# vif = [ 'type=ioemu, bridge=xenbr0' ]
> +
> +#----------------------------------------------------------------------------
>  
> 
> +# Define the disk devices you want the domain to have access to, and
> +# what you want them accessible as.
> +# For example can be put here a default installation cd.
> +# disk = [ 'tap2:aio:/var/images/min-el3-i386.img,hdc:cdrom,r' ]

tap2 shouldn't be the default, probably is better to specify just file: here

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