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