Create XEN image without xen-create-image
- Read more about Create XEN image without xen-create-image
- Log in to post comments
#!/bin/bash
if [ $# -eq 0 ]; then
echo "USAGE $0 XEN_NAME DISK_SIZE RAM_SIZE DIST_NAME"
echo "Example: $0 srv1 4096 256 edgy"
exit
fi
XEN_NAME=$1
DISK_SIZE=$2
RAM_SIZE=$3
DIST_NAME=$4
# prepare directories
if [ ! -d /home/xen ]; then
mkdir /home/xen
fi
if [ ! -d /home/xen/domains ]; then
mkdir /home/xen/domains
fi
if [ !