ia64/xen-unstable

view tools/examples/xmexample1 @ 2570:30a9b33481dc

bitkeeper revision 1.1159.90.2 (415be9d5hTw1zLV9fA-AYcekmwhMwg)

Discard devices early for local migrate.
author mjw@wray-m-3.hpl.hp.com
date Thu Sep 30 11:11:17 2004 +0000 (2004-09-30)
parents b1347b2eb538
children fddd7da6fe9a fd5c7fbfbd1d
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 #----------------------------------------------------------------------------
10 # Kernel image file.
11 kernel = "/boot/vmlinuz-2.4.26-xenU"
13 # Optional ramdisk.
14 #ramdisk = "/boot/initrd.gz"
16 # The domain build function. Default is 'linux'.
17 #builder='linux'
18 #builder='netbsd'
20 # Initial memory allocation (in megabytes) for the new domain.
21 memory = 64
23 # A name for your domain. All domains must have different names.
24 name = "ExampleDomain"
26 # Which CPU to start domain on?
27 #cpu = -1 # leave to Xen to pick
29 #----------------------------------------------------------------------------
30 # Define network interfaces.
32 # Number of network interfaces. Default is 1.
33 #nics=1
35 # Optionally define mac and/or bridge for the network interfaces.
36 # Random MACs are assigned if not given.
37 #vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ]
39 #----------------------------------------------------------------------------
40 # Define the disk devices you want the domain to have access to, and
41 # what you want them accessible as.
42 # Each disk entry is of the form phy:UNAME,DEV,MODE
43 # where UNAME is the device, DEV is the device name the domain will see,
44 # and MODE is r for read-only, w for read-write.
46 disk = [ 'phy:hda1,xda1,r' ]
48 #----------------------------------------------------------------------------
49 # Set the kernel command line for the new domain.
50 # You only need to define the IP parameters and hostname if the domain's
51 # IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
52 # You can use 'extra' to set the runlevel and custom environment
53 # variables used by custom rc scripts (e.g. VMID=, usr= ).
55 # Set if you want dhcp to allocate the IP address.
56 #dhcp="dhcp"
57 # Set netmask.
58 #netmask=
59 # Set default gateway.
60 #gateway=
61 # Set the hostname.
62 #hostname= "vm%d" % vmid
64 # Set root device.
65 root = "/dev/xda1 ro"
67 # Root device for nfs.
68 #root = "/dev/nfs"
69 # The nfs server.
70 #nfs_server = '169.254.1.0'
71 # Root directory on the nfs server.
72 #nfs_root = '/full/path/to/root/directory'
74 # Sets runlevel 4.
75 extra = "4"
77 #----------------------------------------------------------------------------
78 # Set according to whether you want the domain restarted when it exits.
79 # The default is 'onreboot', which restarts the domain when it shuts down
80 # with exit code reboot.
81 # Other values are 'always', and 'never'.
83 #restart = 'onreboot'
85 #============================================================================