Create XEN Windows XP Domain

#### lvm ####
lvcreate --name xp-disk --size 8G vg1
dd if=/dev/zero of=/dev/vg1/xp-disk

# installation
cat < /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
c

Create XEN GeeXboX Dev Domain

# set domU parameter
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=builder32
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:00:0b:32
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=256Mb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=8Gb

xen-create-image --hostname=${DOMAIN_NAME} --dhcp --mac=${DOMAIN_MAC} --lvm=vg01 \
--dist=maverick --mirror=http://archive.ubuntu.com/ubuntu --size=${DOMAIN_HDD} \
--memory=${DOMAIN_RAM} --swap=${DOMAIN_RAM} --arch=i386

# create domU
http://www.panticz.de/Xen-domU-ubuntu-jaunty

# add to autostart (optional)
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto

# create lvm for home
lvcreat

Create XEN LTSP Domain

### new
http://www.panticz.de/Ubuntu-Trusty-domU

# install ltsp
http://www.panticz.de/install-ltsp

### old

# set domU name
DOMAIN_NAME=ts

# create domU
xen-create-image --hostname=${DOMAIN_NAME} --dhcp --mac=00:11:22:7a:7b:7c \
--lvm=vg01 --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu/ --size=8Gb --memory=2Gb --swap=2Gb

# lucid test
# xen-create-image --hostname=${DOMAIN_NAME} --dhcp --mac=${DOMAIN_MAC} \
--lvm=vg01 --dist=lucid --mirror=http://archive.ubuntu.com/ubuntu --size=${DOMAIN_HDD} --memory=${DOMAIN_RAM} --swap=${DOMAIN_RAM} --arch=i386

# rena

Create XEN Endian Firewall Domain (old)

#!/bin/sh

# filename: createXenImageEndian.sh

# download endian
wget http://downloads.sourceforge.net/efw/EFW-COMMUNITY-2.1.2-200707101220.iso -P /tmp

# lvm version
losetup /dev/loop0 /tmp/EFW-COMMUNITY-2.1.2-200707101220.iso

# create image for endian
mkdir -p /home/xen/domains/fw
dd if=/dev/zero of=/home/xen/domains/fw/disc.img bs=1G count=4

# creae endian installation config
cat < /etc/xen/fw-inst
kernel='/usr/lib/xen-ioemu-3.1/boot/hvmloader'
builder='hvm'
memory='128'
name='fw-inst'
device_model='/usr/lib/xen-ioemu-3.1/bin/qemu-dm'
boot='d'
disk=['file:/home