ia64/xen-unstable

view tools/examples/xmexample.vti @ 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 import os, re
10 arch_libdir = 'lib'
11 arch = os.uname()[4]
13 #----------------------------------------------------------------------------
14 # Kernel image file.
15 kernel = "guest_firmware.bin"
17 # The domain build function. VTI domain uses 'hvm'.
18 builder='hvm'
20 # Initial memory allocation (in megabytes) for the new domain.
21 #
22 # WARNING: Creating a domain with insufficient memory may cause out of
23 # memory errors. The domain needs enough memory to boot kernel
24 # and modules. Allocating less than 32MBs is not recommended.
25 memory = 256
27 # A name for your domain. All domains must have different names.
28 name = "ExampleVTIDomain"
30 # the number of cpus guest platform has, default=1
31 #vcpus=1
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 # Log2 of VHPT size, default=23 (8MB), minimum=15 (32KB).
40 # In Windows OS, smaller size shows better performance.
41 #vhpt = 23
43 # Optionally define mac and/or bridge for the network interfaces.
44 # Random MACs are assigned if not given.
45 #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=ne2k_pci' ]
46 # type=ioemu specify the NIC is an ioemu device not netfront
47 vif = [ 'type=ioemu, bridge=xenbr0' ]
49 #----------------------------------------------------------------------------
50 # Define the disk devices you want the domain to have access to, and
51 # what you want them accessible as.
52 # Each disk entry is of the form phy:UNAME,DEV,MODE
53 # where UNAME is the device, DEV is the device name the domain will see,
54 # and MODE is r for read-only, w for read-write.
56 #disk = [ 'phy:hda1,hda1,r' ]
57 disk = [ 'file:/var/images/xenia64.img,hda,w', ',hdc:cdrom,r' ]
59 #----------------------------------------------------------------------------
60 # Set according to whether you want the domain restarted when it exits.
61 # The default is 'onreboot', which restarts the domain when it shuts down
62 # with exit code reboot.
63 # Other values are 'always', and 'never'.
65 #restart = 'onreboot'
67 #============================================================================
69 # New stuff
70 device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
72 #-----------------------------------------------------------------------------
73 # boot on floppy (a), hard disk (c) or CD-ROM (d)
74 # default: hard disk, cd-rom, floppy
75 #boot="cda"
77 #-----------------------------------------------------------------------------
78 # write to temporary files instead of disk image files
79 #snapshot=1
81 #----------------------------------------------------------------------------
82 # enable SDL library for graphics, default = 0
83 sdl=1
85 #----------------------------------------------------------------------------
86 # enable VNC library for graphics, default = 1
87 vnc=0
89 #----------------------------------------------------------------------------
90 # set VNC display number, default = domid
91 #vncdisplay=1
93 #----------------------------------------------------------------------------
94 # try to find an unused port for the VNC server, default = 1
95 #vncunused=1
97 #----------------------------------------------------------------------------
98 # set password for domain's VNC console
99 # default is depents on vncpasswd in xend-config.sxp
100 vncpasswd=''
102 #----------------------------------------------------------------------------
103 # no graphics, use serial port
104 #nographic=0
106 #----------------------------------------------------------------------------
107 # enable stdvga, default = 0 (use cirrus logic device model)
108 stdvga=0
110 #-----------------------------------------------------------------------------
111 # serial port re-direct to pty deivce, /dev/pts/n
112 # then xm console or minicom can connect
113 serial='pty'
115 #-----------------------------------------------------------------------------
116 # Qemu Monitor, default is disable
117 # Use ctrl-alt-2 to connect
118 #monitor=1
120 #-----------------------------------------------------------------------------
121 # enable sound card support, [sb16|es1370|all|..,..], default none
122 #soundhw='sb16'
124 #-----------------------------------------------------------------------------
125 # set the real time clock to local time [default=0 i.e. set to utc]
126 #localtime=1
128 #-----------------------------------------------------------------------------
129 # start in full screen
130 #full-screen=1 diff -r 42cab8724273 tools/libxc/xc_ia64_stubs.c
132 #-----------------------------------------------------------------------------
133 # Enable USB support (specific devices specified at runtime through the
134 # monitor window)
135 #usb=1
137 # Enable USB mouse support (only enable one of the following, `mouse' for
138 # PS/2 protocol relative mouse, `tablet' for
139 # absolute mouse)
140 #usbdevice='mouse'
141 #usbdevice='tablet'
143 #-----------------------------------------------------------------------------
144 # Set keyboard layout, default is en-us keyboard.
145 #keymap='ja'
147 #-----------------------------------------------------------------------------
148 # Enable optimization features for the specified OS type. (Specific to the
149 # OS running in the guest domain. Other OSes may not run correctly
150 # if the wrong OS type is specified.)
151 #
152 # Default is "default", which should work for all supported guest OSes.
153 #
154 # Known values:
155 # 'linux' - All Linux variants
156 # 'windows' - All Windows variants (Windows Server 2003/2008)
157 #
158 #guest_os_type='default'
160 #-----------------------------------------------------------------------------
161 # Configure PVSCSI devices:
162 #
163 #vscsi=[ 'PDEV, VDEV' ]
164 #
165 # PDEV gives physical SCSI device to be attached to specified guest
166 # domain by one of the following identifier format.
167 # - XX:XX:XX:XX (4-tuples with decimal notation which shows
168 # "host:channel:target:lun")
169 # - /dev/sdxx or sdx
170 # - /dev/stxx or stx
171 # - /dev/sgxx or sgx
172 # - result of 'scsi_id -gu -s'.
173 # ex. # scsi_id -gu -s /block/sdb
174 # 36000b5d0006a0000006a0257004c0000
175 #
176 # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as
177 # which the specified guest domain recognize.
178 #
180 #vscsi = [ '/dev/sdx, 0:0:0:0' ]