导入ubuntu虚机配置,基于XEN4.0

import os, re
arch='i686'
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'


name='convirt_appliance'

kernel='/usr/lib/xen/boot/hvmloader'
builder='hvm'


memory=2048
shadow_memory=10
#vcpus=1 # number of vcpu's
#cpus = "0" # all vcpus run on CPU0

pae=1
acpi=1
apic=1

vif=['mac=00:16:3e:20:d4:44,bridge=br0']
disk=['file:/vm/iaas/con-vm/c2_appliance.disk.xm,hda,w']

device_model='/usr/lib/xen/bin/qemu-dm'

# Boots from CDROM.
# Change to 'c' after Linux installation in order to boot from disk.
boot='c'
#boot='c'

sdl=0
vnc=1
vncunused=1
stdvga=1
extra=''
on_reboot='restart'
on_shutdown=''
ramdisk=''
image_name='Ubuntu_JeOS'
on_crash='destroy'
bootloader=''
vcpus=2
root=''
platform='kvm'
network_mode='tap'
arch_libdir='lib'

你可能感兴趣的:(ubuntu)