ia64/xen-unstable

view tools/examples/xmexample1 @ 2799:3f929065a1d1

bitkeeper revision 1.1159.1.316 (418580d5gYF87eBU_ebP1s7cMleu3g)

Merge ssh://srg//auto/groups/xeno/BK/xeno.bk
into anvil.research:/home/irchomes/mwilli2/xen-dmesg-clear.bk
author mwilli2@anvil.research
date Mon Nov 01 00:18:29 2004 +0000 (2004-11-01)
parents 71ca04e8f096
children fe33dd531fd0
line source
1 # -*- mode: python; -*-
2 #============================================================================
3 # Python configuration setup for 'xm create'.
4 # This script sets the parameters used when a domain is created using 'xm create'.
5 # You use a separate script for each domain you want to create, or
6 # you can set the parameters for the domain on the xm command line.
7 #============================================================================
9 #----------------------------------------------------------------------------
10 # Kernel image file.
11 kernel = "/boot/vmlinuz-2.6.8.1-xenU"
13 # Optional ramdisk.
14 #ramdisk = "/boot/initrd.gz"
16 # The domain build function. Default is 'linux'.
17 #builder='linux'
19 # Initial memory allocation (in megabytes) for the new domain.
20 memory = 64
22 # A name for your domain. All domains must have different names.
23 name = "ExampleDomain"
25 # Which CPU to start domain on?
26 #cpu = -1 # leave to Xen to pick
28 #----------------------------------------------------------------------------
29 # Define network interfaces.
31 # Number of network interfaces. Default is 1.
32 #nics=1
34 # Optionally define mac and/or bridge for the network interfaces.
35 # Random MACs are assigned if not given.
36 #vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ]
38 #----------------------------------------------------------------------------
39 # Define the disk devices you want the domain to have access to, and
40 # what you want them accessible as.
41 # Each disk entry is of the form phy:UNAME,DEV,MODE
42 # where UNAME is the device, DEV is the device name the domain will see,
43 # and MODE is r for read-only, w for read-write.
45 disk = [ 'phy:hda1,hda1,r' ]
47 #----------------------------------------------------------------------------
48 # Set the kernel command line for the new domain.
49 # You only need to define the IP parameters and hostname if the domain's
50 # IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
51 # You can use 'extra' to set the runlevel and custom environment
52 # variables used by custom rc scripts (e.g. VMID=, usr= ).
54 # Set if you want dhcp to allocate the IP address.
55 #dhcp="dhcp"
56 # Set netmask.
57 #netmask=
58 # Set default gateway.
59 #gateway=
60 # Set the hostname.
61 #hostname= "vm%d" % vmid
63 # Set root device.
64 root = "/dev/hda1 ro"
66 # Root device for nfs.
67 #root = "/dev/nfs"
68 # The nfs server.
69 #nfs_server = '169.254.1.0'
70 # Root directory on the nfs server.
71 #nfs_root = '/full/path/to/root/directory'
73 # Sets runlevel 4.
74 extra = "4"
76 #----------------------------------------------------------------------------
77 # Set according to whether you want the domain restarted when it exits.
78 # The default is 'onreboot', which restarts the domain when it shuts down
79 # with exit code reboot.
80 # Other values are 'always', and 'never'.
82 #restart = 'onreboot'
84 #============================================================================