ia64/xen-unstable

view tools/examples/xmexample.hvm @ 8964:8946b6dcd49e

Fix x86_64 Xen build.

event_callback_cs and failsafe_callback_cs are x86_32 only.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Wed Feb 22 17:26:39 2006 +0000 (2006-02-22)
parents 991c4d62d392
children f9e912842006
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 if re.search('64', arch):
12 arch_libdir = 'lib64'
13 else:
14 arch_libdir = 'lib'
16 #----------------------------------------------------------------------------
17 # Kernel image file.
18 kernel = "/usr/lib/xen/boot/hvmloader"
20 # The domain build function. HVM domain uses 'hvm'.
21 builder='hvm'
23 # Initial memory allocation (in megabytes) for the new domain.
24 memory = 128
26 # A name for your domain. All domains must have different names.
27 name = "ExampleHVMDomain"
29 #-----------------------------------------------------------------------------
30 # the number of cpus guest platform has, default=1
31 #vcpus=1
33 # enable/disable HVM guest PAE, default=0 (disabled)
34 #pae=0
36 # enable/disable HVM guest ACPI, default=0 (disabled)
37 #acpi=0
39 # enable/disable HVM guest APIC, default=0 (disabled)
40 #apic=0
42 # List of which CPUS this domain is allowed to use, default Xen picks
43 #cpus = "" # leave to Xen to pick
44 #cpus = "0" # all vcpus run on CPU0
45 #cpus = "0-3,5,^1" # run on cpus 0,2,3,5
47 # Optionally define mac and/or bridge for the network interfaces.
48 # Random MACs are assigned if not given.
49 #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0' ]
50 # type=ioemu specify the NIC is an ioemu device not netfront
51 vif = [ 'type=ioemu, bridge=xenbr0' ]
53 #----------------------------------------------------------------------------
54 # Define the disk devices you want the domain to have access to, and
55 # what you want them accessible as.
56 # Each disk entry is of the form phy:UNAME,DEV,MODE
57 # where UNAME is the device, DEV is the device name the domain will see,
58 # and MODE is r for read-only, w for read-write.
60 #disk = [ 'phy:hda1,hda1,r' ]
61 disk = [ 'file:/var/images/min-el3-i386.img,ioemu:hda,w' ]
63 #----------------------------------------------------------------------------
64 # Configure the behaviour when a domain exits. There are three 'reasons'
65 # for a domain to stop: poweroff, reboot, and crash. For each of these you
66 # may specify:
67 #
68 # "destroy", meaning that the domain is cleaned up as normal;
69 # "restart", meaning that a new domain is started in place of the old
70 # one;
71 # "preserve", meaning that no clean-up is done until the domain is
72 # manually destroyed (using xm destroy, for example); or
73 # "rename-restart", meaning that the old domain is not cleaned up, but is
74 # renamed and a new domain started in its place.
75 #
76 # The default is
77 #
78 # on_poweroff = 'destroy'
79 # on_reboot = 'restart'
80 # on_crash = 'restart'
81 #
82 # For backwards compatibility we also support the deprecated option restart
83 #
84 # restart = 'onreboot' means on_poweroff = 'destroy'
85 # on_reboot = 'restart'
86 # on_crash = 'destroy'
87 #
88 # restart = 'always' means on_poweroff = 'restart'
89 # on_reboot = 'restart'
90 # on_crash = 'restart'
91 #
92 # restart = 'never' means on_poweroff = 'destroy'
93 # on_reboot = 'destroy'
94 # on_crash = 'destroy'
96 #on_poweroff = 'destroy'
97 #on_reboot = 'restart'
98 #on_crash = 'restart'
100 #============================================================================
102 # New stuff
103 device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
105 #-----------------------------------------------------------------------------
106 # Disk image for
107 #cdrom=
109 #-----------------------------------------------------------------------------
110 # boot on floppy (a), hard disk (c) or CD-ROM (d)
111 #boot=[a|c|d]
112 #-----------------------------------------------------------------------------
113 # write to temporary files instead of disk image files
114 #snapshot=1
116 #----------------------------------------------------------------------------
117 # enable SDL library for graphics, default = 0
118 sdl=0
120 #----------------------------------------------------------------------------
121 # enable VNC library for graphics, default = 1
122 vnc=1
124 #----------------------------------------------------------------------------
125 # enable spawning vncviewer(only valid when vnc=1), default = 1
126 vncviewer=1
128 #----------------------------------------------------------------------------
129 # no graphics, use serial port
130 #nographic=0
133 #-----------------------------------------------------------------------------
134 # serial port re-direct to pty deivce, /dev/pts/n
135 # then xm console or minicom can connect
136 serial='pty'
138 #----------------------------------------------------------------------------
139 # enable ne2000, default = 0(use pcnet)
140 ne2000=0
143 #-----------------------------------------------------------------------------
144 # enable audio support
145 #audio=1
148 #-----------------------------------------------------------------------------
149 # set the real time clock to local time [default=0 i.e. set to utc]
150 #localtime=1
153 #-----------------------------------------------------------------------------
154 # start in full screen
155 #full-screen=1