ia64/xen-unstable

view tools/examples/xmexample1 @ 19835:edfdeb150f27

Fix buildsystem to detect udev > version 124

udev removed the udevinfo symlink from versions higher than 123 and
xen's build-system could not detect if udev is in place and has the
required version.

Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:02:37 2009 +0100 (2009-06-25)
parents 0942baa2a088
children
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 # 128-bit UUID for the domain. The default behavior is to generate a new UUID
30 # on each call to 'xm create'.
31 #uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
33 # List of which CPUS this domain is allowed to use, default Xen picks
34 #cpus = "" # leave to Xen to pick
35 #cpus = "0" # all vcpus run on CPU0
36 #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5
37 #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3
39 # Number of Virtual CPUS to use, default is 1
40 #vcpus = 1
42 #----------------------------------------------------------------------------
43 # Define network interfaces.
45 # By default, no network interfaces are configured. You may have one created
46 # with sensible defaults using an empty vif clause:
47 #
48 # vif = [ '' ]
49 #
50 # or optionally override backend, bridge, ip, mac, script, type, or vifname:
51 #
52 # vif = [ 'mac=00:16:3e:00:00:11, bridge=xenbr0' ]
53 #
54 # or more than one interface may be configured:
55 #
56 # vif = [ '', 'bridge=xenbr1' ]
58 vif = [ '' ]
60 #----------------------------------------------------------------------------
61 # Define the disk devices you want the domain to have access to, and
62 # what you want them accessible as.
63 # Each disk entry is of the form phy:UNAME,DEV,MODE
64 # where UNAME is the device, DEV is the device name the domain will see,
65 # and MODE is r for read-only, w for read-write.
67 disk = [ 'phy:hda1,hda1,w' ]
69 #----------------------------------------------------------------------------
70 # Define frame buffer device.
71 #
72 # By default, no frame buffer device is configured.
73 #
74 # To create one using the SDL backend and sensible defaults:
75 #
76 # vfb = [ 'sdl=1' ]
77 #
78 # This uses environment variables XAUTHORITY and DISPLAY. You
79 # can override that:
80 #
81 # vfb = [ 'sdl=1,xauthority=/home/bozo/.Xauthority,display=:1' ]
82 #
83 # To create one using the VNC backend and sensible defaults:
84 #
85 # vfb = [ 'vnc=1' ]
86 #
87 # The backend listens on 127.0.0.1 port 5900+N by default, where N is
88 # the domain ID. You can override both address and N:
89 #
90 # vfb = [ 'vnc=1,vnclisten=127.0.0.1,vncdisplay=1' ]
91 #
92 # Or you can bind the first unused port above 5900:
93 #
94 # vfb = [ 'vnc=1,vnclisten=0.0.0.0,vncunused=1' ]
95 #
96 # You can override the password:
97 #
98 # vfb = [ 'vnc=1,vncpasswd=MYPASSWD' ]
99 #
100 # Empty password disables authentication. Defaults to the vncpasswd
101 # configured in xend-config.sxp.
103 #----------------------------------------------------------------------------
104 # Define to which TPM instance the user domain should communicate.
105 # The vtpm entry is of the form 'instance=INSTANCE,backend=DOM'
106 # where INSTANCE indicates the instance number of the TPM the VM
107 # should be talking to and DOM provides the domain where the backend
108 # is located.
109 # Note that no two virtual machines should try to connect to the same
110 # TPM instance. The handling of all TPM instances does require
111 # some management effort in so far that VM configration files (and thus
112 # a VM) should be associated with a TPM instance throughout the lifetime
113 # of the VM / VM configuration file. The instance number must be
114 # greater or equal to 1.
115 #vtpm = [ 'instance=1,backend=0' ]
117 #----------------------------------------------------------------------------
118 # Set the kernel command line for the new domain.
119 # You only need to define the IP parameters and hostname if the domain's
120 # IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
121 # You can use 'extra' to set the runlevel and custom environment
122 # variables used by custom rc scripts (e.g. VMID=, usr= ).
124 # Set if you want dhcp to allocate the IP address.
125 #dhcp="dhcp"
126 # Set netmask.
127 #netmask=
128 # Set default gateway.
129 #gateway=
130 # Set the hostname.
131 #hostname= "vm%d" % vmid
133 # Set root device.
134 root = "/dev/hda1 ro"
136 # Root device for nfs.
137 #root = "/dev/nfs"
138 # The nfs server.
139 #nfs_server = '192.0.2.1'
140 # Root directory on the nfs server.
141 #nfs_root = '/full/path/to/root/directory'
143 # Sets runlevel 4.
144 extra = "4"
146 #----------------------------------------------------------------------------
147 # Configure the behaviour when a domain exits. There are three 'reasons'
148 # for a domain to stop: poweroff, reboot, and crash. For each of these you
149 # may specify:
150 #
151 # "destroy", meaning that the domain is cleaned up as normal;
152 # "restart", meaning that a new domain is started in place of the old
153 # one;
154 # "preserve", meaning that no clean-up is done until the domain is
155 # manually destroyed (using xm destroy, for example); or
156 # "rename-restart", meaning that the old domain is not cleaned up, but is
157 # renamed and a new domain started in its place.
158 #
159 # In the event a domain stops due to a crash, you have the additional options:
160 #
161 # "coredump-destroy", meaning dump the crashed domain's core and then destroy;
162 # "coredump-restart', meaning dump the crashed domain's core and the restart.
163 #
164 # The default is
165 #
166 # on_poweroff = 'destroy'
167 # on_reboot = 'restart'
168 # on_crash = 'restart'
169 #
170 # For backwards compatibility we also support the deprecated option restart
171 #
172 # restart = 'onreboot' means on_poweroff = 'destroy'
173 # on_reboot = 'restart'
174 # on_crash = 'destroy'
175 #
176 # restart = 'always' means on_poweroff = 'restart'
177 # on_reboot = 'restart'
178 # on_crash = 'restart'
179 #
180 # restart = 'never' means on_poweroff = 'destroy'
181 # on_reboot = 'destroy'
182 # on_crash = 'destroy'
184 #on_poweroff = 'destroy'
185 #on_reboot = 'restart'
186 #on_crash = 'restart'
188 #-----------------------------------------------------------------------------
189 # Configure PVSCSI devices:
190 #
191 #vscsi=[ 'PDEV, VDEV' ]
192 #
193 # PDEV gives physical SCSI device to be attached to specified guest
194 # domain by one of the following identifier format.
195 # - XX:XX:XX:XX (4-tuples with decimal notation which shows
196 # "host:channel:target:lun")
197 # - /dev/sdxx or sdx
198 # - /dev/stxx or stx
199 # - /dev/sgxx or sgx
200 # - result of 'scsi_id -gu -s'.
201 # ex. # scsi_id -gu -s /block/sdb
202 # 36000b5d0006a0000006a0257004c0000
203 #
204 # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as
205 # which the specified guest domain recognize.
206 #
208 #vscsi = [ '/dev/sdx, 0:0:0:0' ]
210 #============================================================================