- Log in to post comments
### 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
# rename config file
mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}
# set root password
mount /dev/vg01/${DOMAIN_NAME}-disk /mnt/
chroot /mnt/
echo root:terceS | chpasswd
exit
umount /mnt/
# enable smp support
echo "vcpus=$(cat /proc/cpuinfo | grep processor | wc -l)" >> /etc/xen/${DOMAIN_NAME}
# add to autostart
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto
# start domU
xm create -c ${DOMAIN_NAME}