# -*- mode: python; -*- #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' kernel = "/usr/lib/xen/boot/hvmloader" builder='hvm' # memory in MB memory = 2048 # A name for your domain. All domains must have different names. name = "win1" # The number of cpus guest platform has, default=1 vcpus=2 # List of which CPUS this domain is allowed to use, default Xen picks #cpus = "" # leave to Xen to pick #cpus = "0" # all vcpus run on CPU0 #cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5 #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3 #cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3 # network card #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=e1000' ] vif = [ 'type=ioemu, model=e1000' ] # HDD/cdrom #disk = [ 'tap2:tapdisk:aio:/dev/sda9,hda,w', 'tap2:tapdisk:aio:/root/win7.iso,hdc:cdrom,r' ] disk = [ 'tap2:tapdisk:aio:/dev/sda9,hda,w', 'tap2:tapdisk:aio:/dev/sda10,hdc,w' ] #---------------------------------------------------------------------------- # Configure the behaviour when a domain exits. There are three 'reasons' # for a domain to stop: poweroff, reboot, and crash. For each of these you # may specify: # # "destroy", meaning that the domain is cleaned up as normal; # "restart", meaning that a new domain is started in place of the old # one; # "preserve", meaning that no clean-up is done until the domain is # manually destroyed (using xm destroy, for example); or # "rename-restart", meaning that the old domain is not cleaned up, but is # renamed and a new domain started in its place. # # In the event a domain stops due to a crash, you have the additional options: # # "coredump-destroy", meaning dump the crashed domain's core and then destroy; # "coredump-restart', meaning dump the crashed domain's core and the restart. # # The default is # # on_poweroff = 'destroy' # on_reboot = 'restart' # on_crash = 'restart' # #on_poweroff = 'preserve' #on_reboot = 'preserve' #on_crash = 'preserve' #============================================================================ # Device Model to be used device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' #----------------------------------------------------------------------------- # boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot="dc" vnc=1 vnclisten="0.0.0.0" vncdisplay=0 vncunused=0 vncpasswd='' stdvga=0 serial='pty' localtime=1 # in der Sommerzeit -7200 sonst -3600 rtc_timeoffset=-7200 viridian=1 keymap='de' usbdevice='tablet'