ia64/xen-unstable

view tools/examples/xmexample1 @ 4895:24dfd18ea63e

bitkeeper revision 1.1159.258.120 (42848bfe8kMyWWcBA64rq7h7l7AyoA)

Shadow code bug fix (found by Ian) that was breaking refcounts, and subsequently
causing migration problems.
author mafetter@fleming.research
date Fri May 13 11:14:06 2005 +0000 (2005-05-13)
parents 4576c7b7063b
children 0914061e11ca 0dc3b8b8c298
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.6.10-xenU"
13 # Optional ramdisk.
14 #ramdisk = "/boot/initrd.gz"
16 # The domain build function. Default is 'linux'.
17 #builder='linux'
19 # Initial memory allocation (in megabytes) for the new domain.
20 memory = 64
22 # A name for your domain. All domains must have different names.
23 name = "ExampleDomain"
25 # Which CPU to start domain on?
26 #cpu = -1 # leave to Xen to pick
28 #----------------------------------------------------------------------------
29 # Define network interfaces.
31 # Number of network interfaces. Default is 1.
32 #nics=1
34 # Optionally define mac and/or bridge for the network interfaces.
35 # Random MACs are assigned if not given.
36 #vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ]
38 #----------------------------------------------------------------------------
39 # Define the disk devices you want the domain to have access to, and
40 # what you want them accessible as.
41 # Each disk entry is of the form phy:UNAME,DEV,MODE
42 # where UNAME is the device, DEV is the device name the domain will see,
43 # and MODE is r for read-only, w for read-write.
45 disk = [ 'phy:hda1,hda1,w' ]
47 #----------------------------------------------------------------------------
48 # Set the kernel command line for the new domain.
49 # You only need to define the IP parameters and hostname if the domain's
50 # IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
51 # You can use 'extra' to set the runlevel and custom environment
52 # variables used by custom rc scripts (e.g. VMID=, usr= ).
54 # Set if you want dhcp to allocate the IP address.
55 #dhcp="dhcp"
56 # Set netmask.
57 #netmask=
58 # Set default gateway.
59 #gateway=
60 # Set the hostname.
61 #hostname= "vm%d" % vmid
63 # Set root device.
64 root = "/dev/hda1 ro"
66 # Root device for nfs.
67 #root = "/dev/nfs"
68 # The nfs server.
69 #nfs_server = '169.254.1.0'
70 # Root directory on the nfs server.
71 #nfs_root = '/full/path/to/root/directory'
73 # Sets runlevel 4.
74 extra = "4"
76 #----------------------------------------------------------------------------
77 # Set according to whether you want the domain restarted when it exits.
78 # The default is 'onreboot', which restarts the domain when it shuts down
79 # with exit code reboot.
80 # Other values are 'always', and 'never'.
82 #restart = 'onreboot'
84 #============================================================================