Create XEN Windows XP Domain

#### lvm ####
lvcreate --name xp-disk --size 8G vg1
dd if=/dev/zero of=/dev/vg1/xp-disk
 
# installation
cat <<EOF> /etc/xen/xp-inst
kernel='/usr/lib/xen-4.1/boot/hvmloader'
builder='hvm'
memory='2048'
name='xp-inst'
device_model='/usr/lib/xen-default/bin/qemu-dm'
boot='d'
disk=['phy:/dev/vg1/xp-disk,ioemu:hda,w', 'file:/mnt/winxp.iso,hdc:cdrom,r']
vnc=1
vncviewer=1
vncpasswd="xp"
vif=['type=ioemu, bridge=eth0, mac=00:00:00:55:00:00']
usbdevice='tablet'
vnclisten='0.0.0.0'
EOF
 
# start VM
xm create xp-inst
 
# connect to VM from client
vinagre YOUR_XEN_Dom0_IP
 
# xp
cat <<EOF> /etc/xen/xp
kernel='/usr/lib/xen-4.1/boot/hvmloader'
builder='hvm'
memory='2048'
name='xp'
device_model='/usr/lib/xen-default/bin/qemu-dm'
disk=['phy:/dev/vg1/xp-disk,ioemu:hda,w']
vnc=1
vncviewer=1
vncpasswd="xp"
vif=['type=ioemu, bridge=eth0, mac=00:00:00:55:00:00']
usbdevice='tablet'
vnclisten='0.0.0.0'
EOF
 
# create xp domain
xm create xp
 
# optional, backup
dd if=/dev/vg1/xp-disk | gzip -9 > xp-disk.dd.gz
 
 
 
 
 
# windows driver
http://www.meadowcourt.org/downloads/
http://wiki.xensource.com/xenwiki/XenWindowsGplPv - XEN Windows driver
 
 
# rdesktop on client
http://www.raneri.it/blog/eng/index.php/2006/04/24/windows-xp-multiuser-remote-desktop/
sudo aptitude install rdesktop
rdesktop -E -u admin -p terceS 192.168.1.175 -g 1024x768
rdesktop -E -u xp -p xp 192.168.1.175 -f
 
 
# Links
 
 
 
http://www.jolokianetworks.com/
http://www.thomas-krenn.com/de/wiki/CD_Laufwerk_f%C3%BCr_domU_konfigurieren