source: trunk/packages/xen-3.1/xen-3.1/tools/examples/xmexample.vti @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 5.3 KB
Line 
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#============================================================================
8
9import os, re
10arch = os.uname()[4]
11arch_libdir = 'lib'
12
13#----------------------------------------------------------------------------
14# Kernel image file.
15kernel = "/usr/lib/xen/boot/guest_firmware.bin"
16
17# The domain build function. VTI domain uses 'hvm'.
18builder='hvm'
19
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.
25memory = 256
26
27# A name for your domain. All domains must have different names.
28name = "ExampleVTIDomain"
29
30# the number of cpus guest platform has, default=1
31#vcpus=1
32
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" # run on cpus 0,2,3,5
37
38# Optionally define mac and/or bridge for the network interfaces.
39# Random MACs are assigned if not given.
40#vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=ne2k_pci' ]
41# type=ioemu specify the NIC is an ioemu device not netfront
42vif = [ 'type=ioemu, bridge=xenbr0' ]
43
44#----------------------------------------------------------------------------
45# Define the disk devices you want the domain to have access to, and
46# what you want them accessible as.
47# Each disk entry is of the form phy:UNAME,DEV,MODE
48# where UNAME is the device, DEV is the device name the domain will see,
49# and MODE is r for read-only, w for read-write.
50
51#disk = [ 'phy:hda1,hda1,r' ]
52disk = [ 'file:/var/images/xenia64.img,hda,w', ',hdc:cdrom,r' ]
53
54#----------------------------------------------------------------------------
55# Set according to whether you want the domain restarted when it exits.
56# The default is 'onreboot', which restarts the domain when it shuts down
57# with exit code reboot.
58# Other values are 'always', and 'never'.
59
60#restart = 'onreboot'
61
62#============================================================================
63
64# New stuff
65device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
66
67#-----------------------------------------------------------------------------
68# boot on floppy (a), hard disk (c) or CD-ROM (d)
69# default: hard disk, cd-rom, floppy
70#boot="cda"
71
72#-----------------------------------------------------------------------------
73#  write to temporary files instead of disk image files
74#snapshot=1
75
76#----------------------------------------------------------------------------
77# enable SDL library for graphics, default = 0
78sdl=1
79
80#----------------------------------------------------------------------------
81# enable VNC library for graphics, default = 1
82vnc=0
83
84#----------------------------------------------------------------------------
85# set VNC display number, default = domid
86#vncdisplay=1
87
88#----------------------------------------------------------------------------
89# try to find an unused port for the VNC server, default = 1
90#vncunused=1
91
92#----------------------------------------------------------------------------
93# enable spawning vncviewer for domain's console
94# (only valid when vnc=1), default = 0
95#vncconsole=0
96
97#----------------------------------------------------------------------------
98# set password for domain's VNC console
99# default is depents on vncpasswd in xend-config.sxp
100vncpasswd=''
101
102#----------------------------------------------------------------------------
103# no graphics, use serial port
104#nographic=0
105
106#----------------------------------------------------------------------------
107# enable stdvga, default = 0 (use cirrus logic device model)
108stdvga=0
109
110#-----------------------------------------------------------------------------
111#   serial port re-direct to pty deivce, /dev/pts/n
112#   then xm console or minicom can connect
113serial='pty'
114
115#-----------------------------------------------------------------------------
116#   Qemu Monitor, default is disable
117#   Use ctrl-alt-2 to connect
118#monitor=1
119
120#-----------------------------------------------------------------------------
121#   enable sound card support, [sb16|es1370|all|..,..], default none
122#soundhw='sb16'
123
124#-----------------------------------------------------------------------------
125#    set the real time clock to local time [default=0 i.e. set to utc]
126#localtime=1
127
128#-----------------------------------------------------------------------------
129#    start in full screen
130#full-screen=1   diff -r 42cab8724273 tools/libxc/xc_ia64_stubs.c
131
132#-----------------------------------------------------------------------------
133#   Enable USB support (specific devices specified at runtime through the
134#           monitor window)
135#usb=1
136
137#   Enable USB mouse support (only enable one of the following, `mouse' for
138#                 PS/2 protocol relative mouse, `tablet' for
139#                 absolute mouse)
140#usbdevice='mouse'
141#usbdevice='tablet'
142
143#-----------------------------------------------------------------------------
144#   Set keyboard layout, default is en-us keyboard.
145#keymap='ja'
Note: See TracBrowser for help on using the repository browser.