ia64/xen-unstable

view tools/examples/xmexample.pv-grub @ 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 b51f9542ab14
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 # PV GRUB image file.
11 kernel = "pv-grub.gz"
13 # Optional provided menu.lst.
14 #ramdisk = "/boot/guests/menu.lst"
16 # Sets path to menu.lst
17 extra = "(hd0,0)/boot/grub/menu.lst"
18 # can be a TFTP-served path (DHCP will automatically be run)
19 # extra = "(nd)/netboot/menu.lst"
20 # can be configured automatically by GRUB's DHCP option 150 (see grub manual)
21 # extra = ""
23 # Initial memory allocation (in megabytes) for the new domain.
24 #
25 # WARNING: Creating a domain with insufficient memory may cause out of
26 # memory errors. The domain needs enough memory to boot kernel
27 # and modules. Allocating less than 32MBs is not recommended.
28 memory = 128
30 # A name for your domain. All domains must have different names.
31 name = "ExampleDomain"
33 # 128-bit UUID for the domain. The default behavior is to generate a new UUID
34 # on each call to 'xm create'.
35 #uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
37 # List of which CPUS this domain is allowed to use, default Xen picks
38 #cpus = "" # leave to Xen to pick
39 #cpus = "0" # all vcpus run on CPU0
40 #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5
41 #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3
43 # Number of Virtual CPUS to use, default is 1
44 #vcpus = 1
46 #----------------------------------------------------------------------------
47 # Define network interfaces.
49 # By default, no network interfaces are configured. You may have one created
50 # with sensible defaults using an empty vif clause:
51 #
52 # vif = [ '' ]
53 #
54 # or optionally override backend, bridge, ip, mac, script, type, or vifname:
55 #
56 # vif = [ 'mac=00:16:3e:00:00:11, bridge=xenbr0' ]
57 #
58 # or more than one interface may be configured:
59 #
60 # vif = [ '', 'bridge=xenbr1' ]
62 vif = [ '' ]
64 #----------------------------------------------------------------------------
65 # Define the disk devices you want the domain to have access to, and
66 # what you want them accessible as.
67 # Each disk entry is of the form phy:UNAME,DEV,MODE
68 # where UNAME is the device, DEV is the device name the domain will see,
69 # and MODE is r for read-only, w for read-write.
71 disk = [ 'phy:hda1,hda1,w' ]
73 #----------------------------------------------------------------------------
74 # Define frame buffer device.
75 #
76 # By default, no frame buffer device is configured.
77 #
78 # To create one using the SDL backend and sensible defaults:
79 #
80 # vfb = [ 'sdl=1' ]
81 #
82 # This uses environment variables XAUTHORITY and DISPLAY. You
83 # can override that:
84 #
85 # vfb = [ 'sdl=1,xauthority=/home/bozo/.Xauthority,display=:1' ]
86 #
87 # To create one using the VNC backend and sensible defaults:
88 #
89 # vfb = [ 'vnc=1' ]
90 #
91 # The backend listens on 127.0.0.1 port 5900+N by default, where N is
92 # the domain ID. You can override both address and N:
93 #
94 # vfb = [ 'vnc=1,vnclisten=127.0.0.1,vncdisplay=1' ]
95 #
96 # Or you can bind the first unused port above 5900:
97 #
98 # vfb = [ 'vnc=1,vnclisten=0.0.0.0,vncunused=1' ]
99 #
100 # You can override the password:
101 #
102 # vfb = [ 'vnc=1,vncpasswd=MYPASSWD' ]
103 #
104 # Empty password disables authentication. Defaults to the vncpasswd
105 # configured in xend-config.sxp.
107 #----------------------------------------------------------------------------
108 # Define to which TPM instance the user domain should communicate.
109 # The vtpm entry is of the form 'instance=INSTANCE,backend=DOM'
110 # where INSTANCE indicates the instance number of the TPM the VM
111 # should be talking to and DOM provides the domain where the backend
112 # is located.
113 # Note that no two virtual machines should try to connect to the same
114 # TPM instance. The handling of all TPM instances does require
115 # some management effort in so far that VM configration files (and thus
116 # a VM) should be associated with a TPM instance throughout the lifetime
117 # of the VM / VM configuration file. The instance number must be
118 # greater or equal to 1.
119 #vtpm = [ 'instance=1,backend=0' ]
121 #----------------------------------------------------------------------------
122 # Configure the behaviour when a domain exits. There are three 'reasons'
123 # for a domain to stop: poweroff, reboot, and crash. For each of these you
124 # may specify:
125 #
126 # "destroy", meaning that the domain is cleaned up as normal;
127 # "restart", meaning that a new domain is started in place of the old
128 # one;
129 # "preserve", meaning that no clean-up is done until the domain is
130 # manually destroyed (using xm destroy, for example); or
131 # "rename-restart", meaning that the old domain is not cleaned up, but is
132 # renamed and a new domain started in its place.
133 #
134 # In the event a domain stops due to a crash, you have the additional options:
135 #
136 # "coredump-destroy", meaning dump the crashed domain's core and then destroy;
137 # "coredump-restart', meaning dump the crashed domain's core and the restart.
138 #
139 # The default is
140 #
141 # on_poweroff = 'destroy'
142 # on_reboot = 'restart'
143 # on_crash = 'restart'
144 #
145 # For backwards compatibility we also support the deprecated option restart
146 #
147 # restart = 'onreboot' means on_poweroff = 'destroy'
148 # on_reboot = 'restart'
149 # on_crash = 'destroy'
150 #
151 # restart = 'always' means on_poweroff = 'restart'
152 # on_reboot = 'restart'
153 # on_crash = 'restart'
154 #
155 # restart = 'never' means on_poweroff = 'destroy'
156 # on_reboot = 'destroy'
157 # on_crash = 'destroy'
159 #on_poweroff = 'destroy'
160 #on_reboot = 'restart'
161 #on_crash = 'restart'
163 #-----------------------------------------------------------------------------
164 # Configure PVSCSI devices:
165 #
166 #vscsi=[ 'PDEV, VDEV' ]
167 #
168 # PDEV gives physical SCSI device to be attached to specified guest
169 # domain by one of the following identifier format.
170 # - XX:XX:XX:XX (4-tuples with decimal notation which shows
171 # "host:channel:target:lun")
172 # - /dev/sdxx or sdx
173 # - /dev/stxx or stx
174 # - /dev/sgxx or sgx
175 # - result of 'scsi_id -gu -s'.
176 # ex. # scsi_id -gu -s /block/sdb
177 # 36000b5d0006a0000006a0257004c0000
178 #
179 # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as
180 # which the specified guest domain recognize.
181 #
183 #vscsi = [ '/dev/sdx, 0:0:0:0' ]
185 #============================================================================