- Log in to post comments
# configure domU
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=sid
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:d1:1a:00:00:00
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=1Gb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=4Gb
# create domU
xen-create-image --hostname=${DOMAIN_NAME} \
--dist=sid --lvm=vg1 --size=${DOMAIN_HDD} --fs=ext4 \
--memory=${DOMAIN_RAM} --swap=${DOMAIN_RAM} \
--dhcp --mac=${DOMAIN_MAC} --genpass=0 --password=terceS \
--vcpus $(cat /proc/cpuinfo | grep processor | wc -l)
# rename vm config
mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}
# OPTIONAL: add to autostart
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto
# start domU
xm create -c ${DOMAIN_NAME}
user: root
password: terceS