|
From Kerrighed
Virtual ImagesVirtual images are the fastest way to test Kerrighed. The first virtual machine boot a system with the Kerrighed kernel, share its root filesystem through NFS and setup a TFTP/PXE boot server. Then, you can boot up to 16 other diskless virtual machines through PXE and they will join the cluster. RequirementsHardware
Software
apt-get install libvirt-bin qemu-kvm
apt-get install kvm-pxe
apt-get install virt-manager
apt-get install bittorrent Quick InstallIf you never run libvirt on your system before, please ensure you have read the requirements chapter.
btdownloadcurses http://www.freetorrent.fr/download.php?id=2dec616bbc1cf7d48cb71de44f169d4cbd246a99&f=Kerrighed%20kvm%20image.torrent
wget http://download.kerlabs.com/kerrighed/libvirt-definitions.tar.bz2
sudo sh -c 'bzcat -c krg0_light.img.bz2 > /var/lib/libvirt/images/krg0.img'
sudo sh -c 'bzcat -c krg0_light.img.bz2 | cp --sparse=always /dev/stdin /var/lib/libvirt/images/krg0.img'
tar jxf libvirt-definitions.tar.bz2
sudo virsh net-create default.xml
sudo virsh define krg0.xml sudo virsh define krg1.xml sudo virsh define krg2.xml sudo virsh define krg3.xml
sudo virsh start krg0
sudo virsh start krg1 ... Please have a look at libvirt documentation for advanced usage of 'libvirt'. You may also want to use 'virt-manager' to start/stop the machines and other fancy stuff through a gui. LoginYou can access the machines through 'ssh' and with following login:password pairs: root: kerrighed kerrighed: kerrighed You can access the root container of each machine through ssh on port 2222. Kerrighed usageHave a look at 'krgadm(1)' manpage to see how to see cluster machines and add them to the cluster. |