direct-io.hg

view tools/examples/xmexample1 @ 9683:bdcc838b9a72

Add small memory warning message to domain configuration examples.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author stekloff@dyn9047022152.beaverton.ibm.com
date Wed Apr 19 22:58:24 2006 +0100 (2006-04-19)
parents 55d464295da3
children 6a285d7d7b39
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.10-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 #
21 # WARNING: Creating a domain with insufficient memory may cause out of
22 # memory errors. The domain needs enough memory to boot kernel
23 # and modules. Allocating less than 32MBs is not recommended.
24 memory = 64
26 # A name for your domain. All domains must have different names.
27 name = "ExampleDomain"
29 # List of which CPUS this domain is allowed to use, default Xen picks
30 #cpus = "" # leave to Xen to pick
31 #cpus = "0" # all vcpus run on CPU0
32 #cpus = "0-3,5,^1" # run on cpus 0,2,3,5
34 # Number of Virtual CPUS to use, default is 1
35 #vcpus = 1
37 #----------------------------------------------------------------------------
38 # Define network interfaces.
40 # By default, no network interfaces are configured. You may have one created
41 # with sensible defaults using an empty vif clause:
42 #
43 # vif = [ '' ]
44 #
45 # or optionally override backend, bridge, ip, mac, script, type, or vifname:
46 #
47 # vif = [ 'mac=00:16:3e:00:00:11, bridge=xenbr0' ]
48 #
49 # or more than one interface may be configured:
50 #
51 # vif = [ '', 'bridge=xenbr1' ]
53 vif = [ '' ]
55 #----------------------------------------------------------------------------
56 # Define the disk devices you want the domain to have access to, and
57 # what you want them accessible as.
58 # Each disk entry is of the form phy:UNAME,DEV,MODE
59 # where UNAME is the device, DEV is the device name the domain will see,
60 # and MODE is r for read-only, w for read-write.
62 disk = [ 'phy:hda1,hda1,w' ]
64 #----------------------------------------------------------------------------
65 # Define to which TPM instance the user domain should communicate.
66 # The vtpm entry is of the form 'instance=INSTANCE,backend=DOM'
67 # where INSTANCE indicates the instance number of the TPM the VM
68 # should be talking to and DOM provides the domain where the backend
69 # is located.
70 # Note that no two virtual machines should try to connect to the same
71 # TPM instance. The handling of all TPM instances does require
72 # some management effort in so far that VM configration files (and thus
73 # a VM) should be associated with a TPM instance throughout the lifetime
74 # of the VM / VM configuration file. The instance number must be
75 # greater or equal to 1.
76 #vtpm = [ 'instance=1,backend=0' ]
78 #----------------------------------------------------------------------------
79 # Set the kernel command line for the new domain.
80 # You only need to define the IP parameters and hostname if the domain's
81 # IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
82 # You can use 'extra' to set the runlevel and custom environment
83 # variables used by custom rc scripts (e.g. VMID=, usr= ).
85 # Set if you want dhcp to allocate the IP address.
86 #dhcp="dhcp"
87 # Set netmask.
88 #netmask=
89 # Set default gateway.
90 #gateway=
91 # Set the hostname.
92 #hostname= "vm%d" % vmid
94 # Set root device.
95 root = "/dev/hda1 ro"
97 # Root device for nfs.
98 #root = "/dev/nfs"
99 # The nfs server.
100 #nfs_server = '169.254.1.0'
101 # Root directory on the nfs server.
102 #nfs_root = '/full/path/to/root/directory'
104 # Sets runlevel 4.
105 extra = "4"
107 #----------------------------------------------------------------------------
108 # Configure the behaviour when a domain exits. There are three 'reasons'
109 # for a domain to stop: poweroff, reboot, and crash. For each of these you
110 # may specify:
111 #
112 # "destroy", meaning that the domain is cleaned up as normal;
113 # "restart", meaning that a new domain is started in place of the old
114 # one;
115 # "preserve", meaning that no clean-up is done until the domain is
116 # manually destroyed (using xm destroy, for example); or
117 # "rename-restart", meaning that the old domain is not cleaned up, but is
118 # renamed and a new domain started in its place.
119 #
120 # The default is
121 #
122 # on_poweroff = 'destroy'
123 # on_reboot = 'restart'
124 # on_crash = 'restart'
125 #
126 # For backwards compatibility we also support the deprecated option restart
127 #
128 # restart = 'onreboot' means on_poweroff = 'destroy'
129 # on_reboot = 'restart'
130 # on_crash = 'destroy'
131 #
132 # restart = 'always' means on_poweroff = 'restart'
133 # on_reboot = 'restart'
134 # on_crash = 'restart'
135 #
136 # restart = 'never' means on_poweroff = 'destroy'
137 # on_reboot = 'destroy'
138 # on_crash = 'destroy'
140 #on_poweroff = 'destroy'
141 #on_reboot = 'restart'
142 #on_crash = 'restart'
144 #============================================================================