direct-io.hg

view tools/examples/xmexample.hvm @ 9683:bdcc838b9a72

Add small memory warning message to domain configuration examples.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author stekloff@dyn9047022152.beaverton.ibm.com
date Wed Apr 19 22:58:24 2006 +0100 (2006-04-19)
parents f9e912842006
children 6a285d7d7b39
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 #
25 # WARNING: Creating a domain with insufficient memory may cause out of
26 # memory errors. The domain needs enough memory to boot kernel
27 # and modules. Allocating less than 32MBs is not recommended.
28 memory = 128
30 # A name for your domain. All domains must have different names.
31 name = "ExampleHVMDomain"
33 #-----------------------------------------------------------------------------
34 # the number of cpus guest platform has, default=1
35 #vcpus=1
37 # enable/disable HVM guest PAE, default=0 (disabled)
38 #pae=0
40 # enable/disable HVM guest ACPI, default=0 (disabled)
41 #acpi=0
43 # enable/disable HVM guest APIC, default=0 (disabled)
44 #apic=0
46 # List of which CPUS this domain is allowed to use, default Xen picks
47 #cpus = "" # leave to Xen to pick
48 #cpus = "0" # all vcpus run on CPU0
49 #cpus = "0-3,5,^1" # run on cpus 0,2,3,5
51 # Optionally define mac and/or bridge for the network interfaces.
52 # Random MACs are assigned if not given.
53 #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0' ]
54 # type=ioemu specify the NIC is an ioemu device not netfront
55 vif = [ 'type=ioemu, bridge=xenbr0' ]
57 #----------------------------------------------------------------------------
58 # Define the disk devices you want the domain to have access to, and
59 # what you want them accessible as.
60 # Each disk entry is of the form phy:UNAME,DEV,MODE
61 # where UNAME is the device, DEV is the device name the domain will see,
62 # and MODE is r for read-only, w for read-write.
64 #disk = [ 'phy:hda1,hda1,r' ]
65 disk = [ 'file:/var/images/min-el3-i386.img,ioemu:hda,w' ]
67 #----------------------------------------------------------------------------
68 # Configure the behaviour when a domain exits. There are three 'reasons'
69 # for a domain to stop: poweroff, reboot, and crash. For each of these you
70 # may specify:
71 #
72 # "destroy", meaning that the domain is cleaned up as normal;
73 # "restart", meaning that a new domain is started in place of the old
74 # one;
75 # "preserve", meaning that no clean-up is done until the domain is
76 # manually destroyed (using xm destroy, for example); or
77 # "rename-restart", meaning that the old domain is not cleaned up, but is
78 # renamed and a new domain started in its place.
79 #
80 # The default is
81 #
82 # on_poweroff = 'destroy'
83 # on_reboot = 'restart'
84 # on_crash = 'restart'
85 #
86 # For backwards compatibility we also support the deprecated option restart
87 #
88 # restart = 'onreboot' means on_poweroff = 'destroy'
89 # on_reboot = 'restart'
90 # on_crash = 'destroy'
91 #
92 # restart = 'always' means on_poweroff = 'restart'
93 # on_reboot = 'restart'
94 # on_crash = 'restart'
95 #
96 # restart = 'never' means on_poweroff = 'destroy'
97 # on_reboot = 'destroy'
98 # on_crash = 'destroy'
100 #on_poweroff = 'destroy'
101 #on_reboot = 'restart'
102 #on_crash = 'restart'
104 #============================================================================
106 # New stuff
107 device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
109 #-----------------------------------------------------------------------------
110 # Disk image for
111 #cdrom=
113 #-----------------------------------------------------------------------------
114 # boot on floppy (a), hard disk (c) or CD-ROM (d)
115 #boot=[a|c|d]
116 #-----------------------------------------------------------------------------
117 # write to temporary files instead of disk image files
118 #snapshot=1
120 #----------------------------------------------------------------------------
121 # enable SDL library for graphics, default = 0
122 sdl=0
124 #----------------------------------------------------------------------------
125 # enable VNC library for graphics, default = 1
126 vnc=1
128 #----------------------------------------------------------------------------
129 # enable spawning vncviewer(only valid when vnc=1), default = 1
130 vncviewer=1
132 #----------------------------------------------------------------------------
133 # no graphics, use serial port
134 #nographic=0
136 #----------------------------------------------------------------------------
137 # enable stdvga, default = 0 (use cirrus logic device model)
138 stdvga=0
140 #-----------------------------------------------------------------------------
141 # serial port re-direct to pty deivce, /dev/pts/n
142 # then xm console or minicom can connect
143 serial='pty'
145 #----------------------------------------------------------------------------
146 # enable ne2000, default = 0(use pcnet)
147 ne2000=0
150 #-----------------------------------------------------------------------------
151 # enable audio support
152 #audio=1
155 #-----------------------------------------------------------------------------
156 # set the real time clock to local time [default=0 i.e. set to utc]
157 #localtime=1
160 #-----------------------------------------------------------------------------
161 # start in full screen
162 #full-screen=1