Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

Ganeti Hands-on Walk-thru (part 2) -- LinuxCon 2012

Ganeti is a robust cluster virtualization management software tool. It’s built on top of existing virtualization technologies such as Xen and KVM and other Open Source software. Its integration with various technologies such as DRBD and LVM results in a cheaper High Availability infrastructure and linear scaling.

This hands-on tutorial will cover a basic overview of Ganeti, the step-by-step install & setup of a single-node and multi-node Ganeti cluster, operating the cluster, and some best practices of Ganeti.

If attendees want to participate in the optional hands-on portions of the tutorial, there will be virtual machine images available online and at the tutorial itself. We’ll be using VirtualBox and Vagrant to deploy Ganeti on two to three Ubuntu nodes.

4.
Repo & Vagrant SetupMake sure you have hardware virtualization enabled inyour BIOS prior to running VirtualBox. You will get an errorfrom VirtualBox while starting the VM if you dont have itenabled.gem install vagrantgit clone git://github.com/ramereth/vagrant-ganeti.gitgit submodule update --init

5.
Starting up & accessing the nodesThe Vagrantfile is setup to where you can deploy one, two, or three nodesdepending on your use case. Node1 will have Ganeti already initialized whilethe other two will only have Ganeti installed and primed.NOTE: Root password is vagrant on all nodes.# Starting a single node (node1)vagrant up node1vagrant ssh node1# Starting node2vagrant up node2vagrant ssh node1gnt-node add -s 33.33.34.12 node2# Starting node3vagrant up node3vagrant ssh node1gnt-node add -s 33.33.34.13 node3

6.
What Vagrant will do for you1. Install all dependencies required for Ganeti2. Setup the machine to function as a Ganeti node3. Install Ganeti, Ganeti Htools, and Ganeti Instance Image4. Setup and initialize Ganeti (node1 only)

7.
Installing GanetiWe’ve already installed Ganeti for you on the VMs, buthere are the steps that we did for documentationpurposes.tar -zxvf ganeti-2.*tar.gzcd ganeti-2.*./configure --localstatedir=/var --sysconfdir=/etc && make && make install &&cp doc/examples/ganeti.initd /etc/init.d/ganetichmod +x /etc/init.d/ganetiupdate-rc.d ganeti defaults 20 80

8.
Initialize GanetiGaneti will be already initialized on node1 for you, but here are the stepsthat we did. Be aware that Ganeti is very picky about extra spaces in the “-Hkvm:” line.gnt-cluster init --vg-name=ganeti -s 33.33.34.11 --master-netdev=br0 -I hail -H kvm:kernel_path=/boot/vmlinuz-kvmU, initrd_path=/boot/initrd-kvmU, root_path=/dev/sda2,nic_type=e1000,disk_type=scsi, vnc_bind_address=0.0.0.0, serial_console=true -N link=br0 --enabled-hypervisors=kvm ganeti.example.org