- Log in to post comments
# configure domU
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=lenny
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:00:aa:bb
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=512Mb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=4Gb
# create domU
xen-create-image --hostname=${DOMAIN_NAME} --dhcp --mac=${DOMAIN_MAC} \
--lvm=vg01 --dist=lenny --role=udev --size=${DOMAIN_HDD} --memory=${DOMAIN_RAM} --swap=${DOMAIN_RAM}
# rename vm config
mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}
# post config domU
mount /dev/vg01/${DOMAIN_NAME}-disk /mnt/
sed -i 's|tty1|hvc0|g' /mnt/etc/inittab
chroot /mnt/ sh -c "echo root:terceS | chpasswd"
umount /mnt
### old, hetzner
#
# lenny
#
# test # --mirror=ftp://mirror.hetzner.de/debian/packages --debootstrap --passwd
xen-create-image --hostname=${DOMAIN_NAME} --netmask=255.255.255.192 --gateway=178.63.46.213 --ip=${DOMAIN_IP} --lvm=vg0 --dist=lenny --size=4Gb --memory=2Gb --swap=2Gb --role udev
echo "extra = 'console=hvc0 xencons=tty'" >> /etc/xen/${DOMAIN_NAME}
mount /dev/vg0/${DOMAIN_NAME}-disk /mnt/
sed -i 's|tty1|hvc0|g' /mnt/etc/inittab
umount /mnt
## test ###
Edit and add the following line to /etc/fstab (At the domU Console):
cat <> /etc/fstab
none /dev/pts devpts defaults 0 0
EOF
execute:
mkdir /dev/pts
mount -a