ia64/xen-unstable

view tools/examples/xmexample.hvm @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
parents f1b361b05bf3
children da6297243495
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 ACPI, default=0 (disabled)
34 #acpi=0
36 # enable/disable HVM guest APIC, default=0 (disabled)
37 #apic=0
39 # List of which CPUS this domain is allowed to use, default Xen picks
40 #cpus = "" # leave to Xen to pick
41 #cpus = "0" # all vcpus run on CPU0
42 #cpus = "0-3,5,^1" # run on cpus 0,2,3,5
44 # Optionally define mac and/or bridge for the network interfaces.
45 # Random MACs are assigned if not given.
46 #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0' ]
47 # type=ioemu specify the NIC is an ioemu device not netfront
48 vif = [ 'type=ioemu, bridge=xenbr0' ]
50 #----------------------------------------------------------------------------
51 # Define the disk devices you want the domain to have access to, and
52 # what you want them accessible as.
53 # Each disk entry is of the form phy:UNAME,DEV,MODE
54 # where UNAME is the device, DEV is the device name the domain will see,
55 # and MODE is r for read-only, w for read-write.
57 #disk = [ 'phy:hda1,hda1,r' ]
58 disk = [ 'file:/var/images/min-el3-i386.img,ioemu:hda,w' ]
60 #----------------------------------------------------------------------------
61 # Configure the behaviour when a domain exits. There are three 'reasons'
62 # for a domain to stop: poweroff, reboot, and crash. For each of these you
63 # may specify:
64 #
65 # "destroy", meaning that the domain is cleaned up as normal;
66 # "restart", meaning that a new domain is started in place of the old
67 # one;
68 # "preserve", meaning that no clean-up is done until the domain is
69 # manually destroyed (using xm destroy, for example); or
70 # "rename-restart", meaning that the old domain is not cleaned up, but is
71 # renamed and a new domain started in its place.
72 #
73 # The default is
74 #
75 # on_poweroff = 'destroy'
76 # on_reboot = 'restart'
77 # on_crash = 'restart'
78 #
79 # For backwards compatibility we also support the deprecated option restart
80 #
81 # restart = 'onreboot' means on_poweroff = 'destroy'
82 # on_reboot = 'restart'
83 # on_crash = 'destroy'
84 #
85 # restart = 'always' means on_poweroff = 'restart'
86 # on_reboot = 'restart'
87 # on_crash = 'restart'
88 #
89 # restart = 'never' means on_poweroff = 'destroy'
90 # on_reboot = 'destroy'
91 # on_crash = 'destroy'
93 #on_poweroff = 'destroy'
94 #on_reboot = 'restart'
95 #on_crash = 'restart'
97 #============================================================================
99 # New stuff
100 device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
102 #-----------------------------------------------------------------------------
103 # Disk image for
104 #cdrom=
106 #-----------------------------------------------------------------------------
107 # boot on floppy (a), hard disk (c) or CD-ROM (d)
108 #boot=[a|c|d]
109 #-----------------------------------------------------------------------------
110 # write to temporary files instead of disk image files
111 #snapshot=1
113 #----------------------------------------------------------------------------
114 # enable SDL library for graphics, default = 0
115 sdl=0
117 #----------------------------------------------------------------------------
118 # enable VNC library for graphics, default = 1
119 vnc=1
121 #----------------------------------------------------------------------------
122 # enable spawning vncviewer(only valid when vnc=1), default = 1
123 vncviewer=1
125 #----------------------------------------------------------------------------
126 # no graphics, use serial port
127 #nographic=0
130 #-----------------------------------------------------------------------------
131 # serial port re-direct to pty deivce, /dev/pts/n
132 # then xm console or minicom can connect
133 #serial='pty'
135 #----------------------------------------------------------------------------
136 # enable ne2000, default = 0(use pcnet)
137 ne2000=0
140 #-----------------------------------------------------------------------------
141 # enable audio support
142 #audio=1
145 #-----------------------------------------------------------------------------
146 # set the real time clock to local time [default=0 i.e. set to utc]
147 #localtime=1
150 #-----------------------------------------------------------------------------
151 # start in full screen
152 #full-screen=1