debuggers.hg

view tools/examples/xmexample.vti @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children 5c0bf00e371d
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 = os.uname()[4]
11 arch_libdir = 'lib'
13 #----------------------------------------------------------------------------
14 # Kernel image file.
15 kernel = "/usr/lib/xen/boot/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 # enable spawning vncviewer for domain's console
99 # (only valid when vnc=1), default = 0
100 #vncconsole=0
102 #----------------------------------------------------------------------------
103 # set password for domain's VNC console
104 # default is depents on vncpasswd in xend-config.sxp
105 vncpasswd=''
107 #----------------------------------------------------------------------------
108 # no graphics, use serial port
109 #nographic=0
111 #----------------------------------------------------------------------------
112 # enable stdvga, default = 0 (use cirrus logic device model)
113 stdvga=0
115 #-----------------------------------------------------------------------------
116 # serial port re-direct to pty deivce, /dev/pts/n
117 # then xm console or minicom can connect
118 serial='pty'
120 #-----------------------------------------------------------------------------
121 # Qemu Monitor, default is disable
122 # Use ctrl-alt-2 to connect
123 #monitor=1
125 #-----------------------------------------------------------------------------
126 # enable sound card support, [sb16|es1370|all|..,..], default none
127 #soundhw='sb16'
129 #-----------------------------------------------------------------------------
130 # set the real time clock to local time [default=0 i.e. set to utc]
131 #localtime=1
133 #-----------------------------------------------------------------------------
134 # start in full screen
135 #full-screen=1 diff -r 42cab8724273 tools/libxc/xc_ia64_stubs.c
137 #-----------------------------------------------------------------------------
138 # Enable USB support (specific devices specified at runtime through the
139 # monitor window)
140 #usb=1
142 # Enable USB mouse support (only enable one of the following, `mouse' for
143 # PS/2 protocol relative mouse, `tablet' for
144 # absolute mouse)
145 #usbdevice='mouse'
146 #usbdevice='tablet'
148 #-----------------------------------------------------------------------------
149 # Set keyboard layout, default is en-us keyboard.
150 #keymap='ja'
152 #-----------------------------------------------------------------------------
153 # Enable optimization features for the specified OS type. (Specific to the
154 # OS running in the guest domain. Other OSes may not run correctly
155 # if the wrong OS type is specified.)
156 #
157 # Default is "default", which should work for all supported guest OSes.
158 #
159 # Known values:
160 # 'linux' - All Linux variants
161 # 'windows' - All Windows variants (Windows Server 2003/2008)
162 #
163 #guest_os_type='default'