Skip to content

Instantly share code, notes, and snippets.

@shimarin
Created December 16, 2008 05:42
Show Gist options
  • Save shimarin/36335 to your computer and use it in GitHub Desktop.
Save shimarin/36335 to your computer and use it in GitHub Desktop.
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 = 2048
name = "kagami"
vcpus=2
pae=0
vif = [ 'bridge=eth0.254','bridge=eth0.61' ]
disk = [ 'phy:/dev/disk/by-path/ip-169.254.0.1:3260-iscsi-iqn.1986-03.com.sun:02:fcac26ec-b0eb-66d8-e2b7-a58c664071b5-lun-0,hda,w']
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot='cd'
sdl=0
vnc=1
vnclisten='0.0.0.0'
vncviewer=0
stdvga=0
serial='pty'
ne2000=0
audio=0
localtime=1
usb=1
usbdevice='tablet'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment