Eine flüchtige Anleitung für die Benutzung der Xen-Tools.
Neues image erstellen:
xen-create-image --hostname=vm01 --dir=/home/xen \
--size=2Gb --swap=128Mb --memory=64Mb \
--ip=192.168.0.200 --gateway=192.168.0.1 --netmask=255.255.255.0Erstelltes oder vorhandenes image anpassen:
mkdir /mnt/tmp
mount -t ext3 -o loop /etc/xen/domains/vm01/disk.img /mnt/tmp
chroot /mnt/tmp /bin/bash
# Änderungen vornehmen
exit
umount /mnt/tmpNeue Instanz starten:
xm create vm01.cfg -cVorhandenes image duplizieren:
xen-duplicate-image --dir=/home/xen \
--from=vm01 --hostname=vm02 \
--ip=192.168.0.201 --gateway=192.168.0.1 --netmask=255.255.255.0Alle vorhandenen images anzeigen:
xen-list-images --dir=/home/xenVorhandenes image löschen:
xen-delete-image --dir=/home/xen vm01Image updaten:
xen-update-image --dir=/home/xen vm01Ach übrigens:
On Debian systems, you
edit /etc/modules.conf and add "options loop max_loop=64", and "rmmod loop"
"modprobe loop" .Ausführlichere Informationen auf http://www.steve.org.uk/Software/xen-tools/
Auch interessant:
http://www.xensource.com/
http://julien.danjou.info/xen.html
http://www.enomalism.com/
http://www.howtoforge.com/perfect_xen_setup_debian_ubuntu
http://lists.xensource.com/archives/html/xen-users/2006-01/msg01301.html
Post new comment