ia64/xen-unstable

annotate tools/examples/xmexample.pv-grub @ 19615:13a4f4e6d0a3

x86 hvm: Correctly emulate task switches into vm86 mode.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 19 02:12:04 2009 +0100 (2009-05-19)
parents 0942baa2a088
children b51f9542ab14
rev   line source
keir@18256 1 # -*- mode: python; -*-
keir@18256 2 #============================================================================
keir@18256 3 # Python configuration setup for 'xm create'.
keir@18256 4 # This script sets the parameters used when a domain is created using 'xm create'.
keir@18256 5 # You use a separate script for each domain you want to create, or
keir@18256 6 # you can set the parameters for the domain on the xm command line.
keir@18256 7 #============================================================================
keir@18256 8
keir@18256 9 #----------------------------------------------------------------------------
keir@18256 10 # PV GRUB image file.
keir@18256 11 kernel = "/usr/lib/xen/boot/pv-grub.gz"
keir@18256 12
keir@18256 13 # Optional provided menu.lst.
keir@18256 14 #ramdisk = "/boot/guests/menu.lst"
keir@18256 15
keir@18256 16 # Sets path to menu.lst
keir@18256 17 extra = "(hd0,0)/boot/grub/menu.lst"
keir@18256 18 # can be a TFTP-served path (DHCP will automatically be run)
keir@18256 19 # extra = "(nd)/netboot/menu.lst"
keir@18256 20 # can be configured automatically by GRUB's DHCP option 150 (see grub manual)
keir@18256 21 # extra = ""
keir@18256 22
keir@18256 23 # Initial memory allocation (in megabytes) for the new domain.
keir@18256 24 #
keir@18256 25 # WARNING: Creating a domain with insufficient memory may cause out of
keir@18256 26 # memory errors. The domain needs enough memory to boot kernel
keir@18256 27 # and modules. Allocating less than 32MBs is not recommended.
keir@18411 28 memory = 128
keir@18256 29
keir@18256 30 # A name for your domain. All domains must have different names.
keir@18256 31 name = "ExampleDomain"
keir@18256 32
keir@18256 33 # 128-bit UUID for the domain. The default behavior is to generate a new UUID
keir@18256 34 # on each call to 'xm create'.
keir@18256 35 #uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
keir@18256 36
keir@18256 37 # List of which CPUS this domain is allowed to use, default Xen picks
keir@18256 38 #cpus = "" # leave to Xen to pick
keir@18256 39 #cpus = "0" # all vcpus run on CPU0
keir@18256 40 #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5
keir@18256 41 #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3
keir@18256 42
keir@18256 43 # Number of Virtual CPUS to use, default is 1
keir@18256 44 #vcpus = 1
keir@18256 45
keir@18256 46 #----------------------------------------------------------------------------
keir@18256 47 # Define network interfaces.
keir@18256 48
keir@18256 49 # By default, no network interfaces are configured. You may have one created
keir@18256 50 # with sensible defaults using an empty vif clause:
keir@18256 51 #
keir@18256 52 # vif = [ '' ]
keir@18256 53 #
keir@18256 54 # or optionally override backend, bridge, ip, mac, script, type, or vifname:
keir@18256 55 #
keir@18256 56 # vif = [ 'mac=00:16:3e:00:00:11, bridge=xenbr0' ]
keir@18256 57 #
keir@18256 58 # or more than one interface may be configured:
keir@18256 59 #
keir@18256 60 # vif = [ '', 'bridge=xenbr1' ]
keir@18256 61
keir@18256 62 vif = [ '' ]
keir@18256 63
keir@18256 64 #----------------------------------------------------------------------------
keir@18256 65 # Define the disk devices you want the domain to have access to, and
keir@18256 66 # what you want them accessible as.
keir@18256 67 # Each disk entry is of the form phy:UNAME,DEV,MODE
keir@18256 68 # where UNAME is the device, DEV is the device name the domain will see,
keir@18256 69 # and MODE is r for read-only, w for read-write.
keir@18256 70
keir@18256 71 disk = [ 'phy:hda1,hda1,w' ]
keir@18256 72
keir@18256 73 #----------------------------------------------------------------------------
keir@18256 74 # Define frame buffer device.
keir@18256 75 #
keir@18256 76 # By default, no frame buffer device is configured.
keir@18256 77 #
keir@18256 78 # To create one using the SDL backend and sensible defaults:
keir@18256 79 #
keir@19287 80 # vfb = [ 'sdl=1' ]
keir@18256 81 #
keir@18256 82 # This uses environment variables XAUTHORITY and DISPLAY. You
keir@18256 83 # can override that:
keir@18256 84 #
keir@19287 85 # vfb = [ 'sdl=1,xauthority=/home/bozo/.Xauthority,display=:1' ]
keir@18256 86 #
keir@18256 87 # To create one using the VNC backend and sensible defaults:
keir@18256 88 #
keir@19287 89 # vfb = [ 'vnc=1' ]
keir@18256 90 #
keir@18256 91 # The backend listens on 127.0.0.1 port 5900+N by default, where N is
keir@18256 92 # the domain ID. You can override both address and N:
keir@18256 93 #
keir@19287 94 # vfb = [ 'vnc=1,vnclisten=127.0.0.1,vncdisplay=1' ]
keir@18256 95 #
keir@18256 96 # Or you can bind the first unused port above 5900:
keir@18256 97 #
keir@19287 98 # vfb = [ 'vnc=1,vnclisten=0.0.0.0,vncunused=1' ]
keir@18256 99 #
keir@18256 100 # You can override the password:
keir@18256 101 #
keir@19287 102 # vfb = [ 'vnc=1,vncpasswd=MYPASSWD' ]
keir@18256 103 #
keir@18256 104 # Empty password disables authentication. Defaults to the vncpasswd
keir@18256 105 # configured in xend-config.sxp.
keir@18256 106
keir@18256 107 #----------------------------------------------------------------------------
keir@18256 108 # Define to which TPM instance the user domain should communicate.
keir@18256 109 # The vtpm entry is of the form 'instance=INSTANCE,backend=DOM'
keir@18256 110 # where INSTANCE indicates the instance number of the TPM the VM
keir@18256 111 # should be talking to and DOM provides the domain where the backend
keir@18256 112 # is located.
keir@18256 113 # Note that no two virtual machines should try to connect to the same
keir@18256 114 # TPM instance. The handling of all TPM instances does require
keir@18256 115 # some management effort in so far that VM configration files (and thus
keir@18256 116 # a VM) should be associated with a TPM instance throughout the lifetime
keir@18256 117 # of the VM / VM configuration file. The instance number must be
keir@18256 118 # greater or equal to 1.
keir@18256 119 #vtpm = [ 'instance=1,backend=0' ]
keir@18256 120
keir@18256 121 #----------------------------------------------------------------------------
keir@18256 122 # Configure the behaviour when a domain exits. There are three 'reasons'
keir@18256 123 # for a domain to stop: poweroff, reboot, and crash. For each of these you
keir@18256 124 # may specify:
keir@18256 125 #
keir@18256 126 # "destroy", meaning that the domain is cleaned up as normal;
keir@18256 127 # "restart", meaning that a new domain is started in place of the old
keir@18256 128 # one;
keir@18256 129 # "preserve", meaning that no clean-up is done until the domain is
keir@18256 130 # manually destroyed (using xm destroy, for example); or
keir@18256 131 # "rename-restart", meaning that the old domain is not cleaned up, but is
keir@18256 132 # renamed and a new domain started in its place.
keir@18256 133 #
keir@18256 134 # In the event a domain stops due to a crash, you have the additional options:
keir@18256 135 #
keir@18256 136 # "coredump-destroy", meaning dump the crashed domain's core and then destroy;
keir@18256 137 # "coredump-restart', meaning dump the crashed domain's core and the restart.
keir@18256 138 #
keir@18256 139 # The default is
keir@18256 140 #
keir@18256 141 # on_poweroff = 'destroy'
keir@18256 142 # on_reboot = 'restart'
keir@18256 143 # on_crash = 'restart'
keir@18256 144 #
keir@18256 145 # For backwards compatibility we also support the deprecated option restart
keir@18256 146 #
keir@18256 147 # restart = 'onreboot' means on_poweroff = 'destroy'
keir@18256 148 # on_reboot = 'restart'
keir@18256 149 # on_crash = 'destroy'
keir@18256 150 #
keir@18256 151 # restart = 'always' means on_poweroff = 'restart'
keir@18256 152 # on_reboot = 'restart'
keir@18256 153 # on_crash = 'restart'
keir@18256 154 #
keir@18256 155 # restart = 'never' means on_poweroff = 'destroy'
keir@18256 156 # on_reboot = 'destroy'
keir@18256 157 # on_crash = 'destroy'
keir@18256 158
keir@18256 159 #on_poweroff = 'destroy'
keir@18256 160 #on_reboot = 'restart'
keir@18256 161 #on_crash = 'restart'
keir@18256 162
keir@18256 163 #-----------------------------------------------------------------------------
keir@18256 164 # Configure PVSCSI devices:
keir@18256 165 #
keir@18256 166 #vscsi=[ 'PDEV, VDEV' ]
keir@18256 167 #
keir@18256 168 # PDEV gives physical SCSI device to be attached to specified guest
keir@18256 169 # domain by one of the following identifier format.
keir@18256 170 # - XX:XX:XX:XX (4-tuples with decimal notation which shows
keir@18256 171 # "host:channel:target:lun")
keir@18256 172 # - /dev/sdxx or sdx
keir@18256 173 # - /dev/stxx or stx
keir@18256 174 # - /dev/sgxx or sgx
keir@18256 175 # - result of 'scsi_id -gu -s'.
keir@18256 176 # ex. # scsi_id -gu -s /block/sdb
keir@18256 177 # 36000b5d0006a0000006a0257004c0000
keir@18256 178 #
keir@18256 179 # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as
keir@18256 180 # which the specified guest domain recognize.
keir@18256 181 #
keir@18256 182
keir@18256 183 #vscsi = [ '/dev/sdx, 0:0:0:0' ]
keir@18256 184
keir@18256 185 #============================================================================
keir@18256 186