- Log in to post comments
DOMAIN_NAME=torrent
xen-create-image --hostname=$DOMAIN_NAME --ip=192.168.1.123 --gateway=192.168.1.5 --netmask=255.255.255.0 \
--dir=/home/xen --dist=hardy --mirror=http://archive.ubuntu.com/ubuntu/ \
--size=4Gb --memory=128Mb --swap=128Mb
sed -i 's|file:|tap:aio:|g' /etc/xen/$DOMAIN_NAME.cfg
mv /etc/xen/$DOMAIN_NAME.cfg /etc/xen/$DOMAIN_NAME
apt-get install -y wget rtorrent
cat <> ~/.rtorrent.rc
upload_rate = 16
port_range = 7000-7200
EOF
# todo
mount /home/xen/domains/$DOMAIN_NAME/disk.img /mnt -o loop
chroot /mnt
umount /mnt/
cat ~/.rtorrent.rc
upload_rate = 32
port_range = 6890-6999