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 | #============================================================================ |
---|
8 | |
---|
9 | import os, re |
---|
10 | arch = os.uname()[4] |
---|
11 | arch_libdir = 'lib' |
---|
12 | |
---|
13 | #---------------------------------------------------------------------------- |
---|
14 | # Kernel image file. |
---|
15 | kernel = "/usr/lib/xen/boot/guest_firmware.bin" |
---|
16 | |
---|
17 | # The domain build function. VTI domain uses 'hvm'. |
---|
18 | builder='hvm' |
---|
19 | |
---|
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 |
---|
26 | |
---|
27 | # A name for your domain. All domains must have different names. |
---|
28 | name = "ExampleVTIDomain" |
---|
29 | |
---|
30 | # the number of cpus guest platform has, default=1 |
---|
31 | #vcpus=1 |
---|
32 | |
---|
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" # run on cpus 0,2,3,5 |
---|
37 | |
---|
38 | # Optionally define mac and/or bridge for the network interfaces. |
---|
39 | # Random MACs are assigned if not given. |
---|
40 | #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=ne2k_pci' ] |
---|
41 | # type=ioemu specify the NIC is an ioemu device not netfront |
---|
42 | vif = [ 'type=ioemu, bridge=xenbr0' ] |
---|
43 | |
---|
44 | #---------------------------------------------------------------------------- |
---|
45 | # Define the disk devices you want the domain to have access to, and |
---|
46 | # what you want them accessible as. |
---|
47 | # Each disk entry is of the form phy:UNAME,DEV,MODE |
---|
48 | # where UNAME is the device, DEV is the device name the domain will see, |
---|
49 | # and MODE is r for read-only, w for read-write. |
---|
50 | |
---|
51 | #disk = [ 'phy:hda1,hda1,r' ] |
---|
52 | disk = [ 'file:/var/images/xenia64.img,hda,w', ',hdc:cdrom,r' ] |
---|
53 | |
---|
54 | #---------------------------------------------------------------------------- |
---|
55 | # Set according to whether you want the domain restarted when it exits. |
---|
56 | # The default is 'onreboot', which restarts the domain when it shuts down |
---|
57 | # with exit code reboot. |
---|
58 | # Other values are 'always', and 'never'. |
---|
59 | |
---|
60 | #restart = 'onreboot' |
---|
61 | |
---|
62 | #============================================================================ |
---|
63 | |
---|
64 | # New stuff |
---|
65 | device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' |
---|
66 | |
---|
67 | #----------------------------------------------------------------------------- |
---|
68 | # boot on floppy (a), hard disk (c) or CD-ROM (d) |
---|
69 | # default: hard disk, cd-rom, floppy |
---|
70 | #boot="cda" |
---|
71 | |
---|
72 | #----------------------------------------------------------------------------- |
---|
73 | # write to temporary files instead of disk image files |
---|
74 | #snapshot=1 |
---|
75 | |
---|
76 | #---------------------------------------------------------------------------- |
---|
77 | # enable SDL library for graphics, default = 0 |
---|
78 | sdl=1 |
---|
79 | |
---|
80 | #---------------------------------------------------------------------------- |
---|
81 | # enable VNC library for graphics, default = 1 |
---|
82 | vnc=0 |
---|
83 | |
---|
84 | #---------------------------------------------------------------------------- |
---|
85 | # set VNC display number, default = domid |
---|
86 | #vncdisplay=1 |
---|
87 | |
---|
88 | #---------------------------------------------------------------------------- |
---|
89 | # try to find an unused port for the VNC server, default = 1 |
---|
90 | #vncunused=1 |
---|
91 | |
---|
92 | #---------------------------------------------------------------------------- |
---|
93 | # enable spawning vncviewer for domain's console |
---|
94 | # (only valid when vnc=1), default = 0 |
---|
95 | #vncconsole=0 |
---|
96 | |
---|
97 | #---------------------------------------------------------------------------- |
---|
98 | # set password for domain's VNC console |
---|
99 | # default is depents on vncpasswd in xend-config.sxp |
---|
100 | vncpasswd='' |
---|
101 | |
---|
102 | #---------------------------------------------------------------------------- |
---|
103 | # no graphics, use serial port |
---|
104 | #nographic=0 |
---|
105 | |
---|
106 | #---------------------------------------------------------------------------- |
---|
107 | # enable stdvga, default = 0 (use cirrus logic device model) |
---|
108 | stdvga=0 |
---|
109 | |
---|
110 | #----------------------------------------------------------------------------- |
---|
111 | # serial port re-direct to pty deivce, /dev/pts/n |
---|
112 | # then xm console or minicom can connect |
---|
113 | serial='pty' |
---|
114 | |
---|
115 | #----------------------------------------------------------------------------- |
---|
116 | # Qemu Monitor, default is disable |
---|
117 | # Use ctrl-alt-2 to connect |
---|
118 | #monitor=1 |
---|
119 | |
---|
120 | #----------------------------------------------------------------------------- |
---|
121 | # enable sound card support, [sb16|es1370|all|..,..], default none |
---|
122 | #soundhw='sb16' |
---|
123 | |
---|
124 | #----------------------------------------------------------------------------- |
---|
125 | # set the real time clock to local time [default=0 i.e. set to utc] |
---|
126 | #localtime=1 |
---|
127 | |
---|
128 | #----------------------------------------------------------------------------- |
---|
129 | # start in full screen |
---|
130 | #full-screen=1 diff -r 42cab8724273 tools/libxc/xc_ia64_stubs.c |
---|
131 | |
---|
132 | #----------------------------------------------------------------------------- |
---|
133 | # Enable USB support (specific devices specified at runtime through the |
---|
134 | # monitor window) |
---|
135 | #usb=1 |
---|
136 | |
---|
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' |
---|
142 | |
---|
143 | #----------------------------------------------------------------------------- |
---|
144 | # Set keyboard layout, default is en-us keyboard. |
---|
145 | #keymap='ja' |
---|