1. install required packages
a. apt-get install ubuntu-xen-server
b. apt-get install vnc4server
2. configure win01.cfg
kernel='/usr/lib/xen/boot/hvmloader'
builder='hvm'
memory='1024'
device_model='/usr/lib/xen/bin/qemu-dm'
# since xen3.2, file:/ is obseleted.
disk=['phy:/dev/loop0,ioemu:hda,w',
'phy:/dev/loop1,ioemu:hdc:cdrom,r']
name='win01'
vif=['type=ioemu,bridge=eth0']
# boot from cdrom
boot='d'
vnc=1
vnclisten='0.0.0.0'
vncviewer=1
sdl=0
# usb mouse
usb=1
usbdevice='tablet'
3. create disk
dd if=/dev/zero of=/home/xen/disk.img bs=1M count=8192
losetup /dev/loop0 /home/xen/disk.img
losetup /dev/loop1 /home/xen/w2k3.iso
4. xm create win01.cfg