ia64/xen-unstable

view tools/examples/xmexample.vmx @ 6946:e703abaf6e3d

Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
author emellor@ewan
date Sun Sep 18 14:42:13 2005 +0100 (2005-09-18)
parents 3233e7ecfa9f
children 21e7935b2025 55fc0ecc19c3
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/vmxloader"
20 # The domain build function. VMX domain uses 'vmx'.
21 builder='vmx'
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 = "ExampleVMXDomain"
29 # Which CPU to start domain on?
30 #cpu = -1 # leave to Xen to pick
32 # Optionally define mac and/or bridge for the network interfaces.
33 # Random MACs are assigned if not given.
34 #vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ]
36 #----------------------------------------------------------------------------
37 # Define the disk devices you want the domain to have access to, and
38 # what you want them accessible as.
39 # Each disk entry is of the form phy:UNAME,DEV,MODE
40 # where UNAME is the device, DEV is the device name the domain will see,
41 # and MODE is r for read-only, w for read-write.
43 #disk = [ 'phy:hda1,hda1,r' ]
44 disk = [ 'file:/var/images/min-el3-i386.img,ioemu:hda,w' ]
46 #----------------------------------------------------------------------------
47 # Set according to whether you want the domain restarted when it exits.
48 # The default is 'onreboot', which restarts the domain when it shuts down
49 # with exit code reboot.
50 # Other values are 'always', and 'never'.
52 #restart = 'onreboot'
54 #============================================================================
56 # New stuff
57 device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
59 # Advanced users only. Don't touch if you don't know what you're doing
60 memmap = '/usr/lib/xen/boot/mem-map.sxp'
62 #-----------------------------------------------------------------------------
63 # Disk image for
64 #cdrom=
66 #-----------------------------------------------------------------------------
67 # boot on floppy (a), hard disk (c) or CD-ROM (d)
68 #boot=[a|c|d]
69 #-----------------------------------------------------------------------------
70 # write to temporary files instead of disk image files
71 #snapshot=1
73 #----------------------------------------------------------------------------
74 # enable SDL library for graphics, default = 0
75 sdl=0
77 #----------------------------------------------------------------------------
78 # enable VNC library for graphics, default = 1
79 vnc=1
81 #----------------------------------------------------------------------------
82 # enable spawning vncviewer(only valid when vnc=1), default = 1
83 vncviewer=1
85 #----------------------------------------------------------------------------
86 # no graphics, use serial port
87 #nographic=0
90 #-----------------------------------------------------------------------------
91 # enable audio support
92 #enable-audio=1
95 #-----------------------------------------------------------------------------
96 # set the real time clock to local time [default=0 i.e. set to utc]
97 #localtime=1
100 #-----------------------------------------------------------------------------
101 # start in full screen
102 #full-screen=1