#!/usr/bin/python import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' name = "YYY" memory = "512" vcpus = 2 vif = [ 'mac=00:16:3e:YYY,ip=YYY,bridge=xenbr0', ] # Don't restart during installation #on_reboot = 'destroy' #on_crash = 'destroy' on_reboot = 'restart' on_crash = 'restart' # HVM builder = "hvm" device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' kernel = "/usr/lib/xen/boot/hvmloader" disk = [ 'file:/var/lib/xen/images/YYY/disk0.img,hda,w', # 'file:/root/centos5-x86-64-install-boot.iso,hdc:cdrom,r', ] boot = 'cd' apic = 1 acpi = 1 pae = 1 serial = 'pty' vnc = 1 vncdisplay = 13 keymap = "de" # XenPV #bootloader="/usr/bin/pygrub" #disk = [ 'tap:aio:/var/lib/xen/images/YYY/disk0.img,xvda,w', ] # XenPV - Install #kernel = "/root/vmlinuz-centos-xen-install" #ramdisk = "/root/initrd-centos-xen-install"