swapToFile.sh

#!/bin/bash
 
dd if=/dev/zero of=/swap.file bs=1G count=1
chmod 0600 /swap.file
mkswap /swap.file
 
cat <<EOF>> /etc/fstab
/swap.file      none    swap    sw              0       0
EOF

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
c

ARTEC ULTIMA 2000 (MEDION MD/LT 9385/9375)

Device ID
Bus 003 Device 004: ID 05d8:4002 Ultima Electronics Corp. Artec Ultima 2000 (GT6801 based)/Lifetec LT9385 Scanner

Download firmware
wget http://download2.medion.com/downloads/treiber/sca9385win9xp.exe -P /tmp
unzip /tmp/sca9385win9xp.exe -d /tmp/
sudo mkdir -p /usr/share/sane/gt68xx/
sudo cp /tmp/DRIVER/SETUPEXT/GT/WINX/gt680xfw.usb /usr/share/sane/gt68xx/

Configure sane
sudo sed -i '61s|#override "artec-ultima-2000"|override "artec-ultima-2000"|g' /etc/sane.d/gt68xx.conf

Create XEN VirtualBox Domain

#!/bin/bash
 
# filename: createXenImageVirtualbox.sh
 
# !!!

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 <<EOF> /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
Syndicate content