<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tips on Using Ganeti to Manage a KVM based Virtual Machine Cluster on Ubunty Jaunty Jackelope 9.04</title>
	<atom:link href="http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/</link>
	<description>Conservative: Someone who tries to change the future by lying about the past</description>
	<lastBuildDate>Sat, 19 May 2012 10:50:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Ganeti by gregers - Pearltrees</title>
		<link>http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/comment-page-1/#comment-76690</link>
		<dc:creator>Ganeti by gregers - Pearltrees</dc:creator>
		<pubDate>Thu, 22 Dec 2011 12:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://geekfun.com/?p=1186#comment-76690</guid>
		<description>[...] I’ve hacked up the ganeti-os-debootstrap scripts to use ubuntu’s vmbuilder script to create ubuntu VMs that do have a boot loader. I need to do a little cleanup and then I’ll share my work.  Tips on Using Ganeti to Manage a KVM based Virtual Machine Cluster on Ubunty Jaunty Jackelope 9.04 &#124;... [...]</description>
		<content:encoded><![CDATA[<p>[...] I’ve hacked up the ganeti-os-debootstrap scripts to use ubuntu’s vmbuilder script to create ubuntu VMs that do have a boot loader. I need to do a little cleanup and then I’ll share my work.  Tips on Using Ganeti to Manage a KVM based Virtual Machine Cluster on Ubunty Jaunty Jackelope 9.04 |&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bookmarks for June 20th through December 13th &#8212; Somewhere out there!</title>
		<link>http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/comment-page-1/#comment-76075</link>
		<dc:creator>Bookmarks for June 20th through December 13th &#8212; Somewhere out there!</dc:creator>
		<pubDate>Tue, 13 Dec 2011 01:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://geekfun.com/?p=1186#comment-76075</guid>
		<description>[...] Tips on Using Ganeti to Manage a KVM based Virtual Machine Cluster on Ubunty Jaunty Jackelope 9.04 &#124;... &#8211; [...]</description>
		<content:encoded><![CDATA[<p>[...] Tips on Using Ganeti to Manage a KVM based Virtual Machine Cluster on Ubunty Jaunty Jackelope 9.04 |&#8230; &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: herky</title>
		<link>http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/comment-page-1/#comment-57411</link>
		<dc:creator>herky</dc:creator>
		<pubDate>Sun, 06 Feb 2011 10:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://geekfun.com/?p=1186#comment-57411</guid>
		<description>Hi,

kvm and the console wont work together nicely. try binding the instance to vnc (0.0.0.0) and use a vnc viewer to connect to your instance - to check for the port of your instance do gnt-instance info instanceofyours.

greets</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>kvm and the console wont work together nicely. try binding the instance to vnc (0.0.0.0) and use a vnc viewer to connect to your instance &#8211; to check for the port of your instance do gnt-instance info instanceofyours.</p>
<p>greets</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heriyono Sim</title>
		<link>http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/comment-page-1/#comment-45918</link>
		<dc:creator>Heriyono Sim</dc:creator>
		<pubDate>Mon, 02 Aug 2010 13:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://geekfun.com/?p=1186#comment-45918</guid>
		<description>These tips below will help you tremendously. Please drop a message if so.

Follow: http://ganeti-doc.googlecode.com/svn/ganeti-2.1/html/install-quick.html
Follow: http://ganeti-doc.googlecode.com/svn/ganeti-2.1/html/install.html
Follow: http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/

For debootstrap:
Use:
./configure --prefix=/usr --localstatedir=/var \
    --sysconfdir=/etc \
    --with-os-dir=/srv/ganeti/os
  make &amp;&amp; make install


ln -s vmlinuz-2.6.24-11-pve /boot/kernel-2.6-kvmU
ln -s initrd.img-2.6.24-11-pve /boot/initrd-2.6-kvmU
gnt-cluster modify -H kvm:initrd_path=/boot/kernel-2.6-kvmU
gnt-cluster modify -H kvm:initrd_path=/boot/initrd-2.6-kvmU
gnt-cluster modify -H kvm:vnc_bind_address = 127.0.0.1
gnt-cluster info


gnt-instance add -t plain -s 1G -n qrm.kosmos.sg -o debootstrap+default mail.kosmos.sg
grep -Af &#124; grep kvm
Check to see correct arguments...
/usr/bin/kvm -name mail.kosmos.sg -m 128 -smp 1 -pidfile /var/run/ganeti/kvm-hypervisor/pid/mail.kosmos.sg -daemonize -boot c -drive file=/var/run/ganeti/instance-disks/mail.kosmos.sg:0,format=raw,if=virtio,boot=on -kernel /boot/vmlinuz-2.6-kvmU -initrd /boot/initrd-2.6-kvmU -append &quot;root=/dev/vda1 ro&quot; -vnc 127.0.0.1:3 -usbdevice tablet -serial unix:/var/run/ganeti/kvm-hypervisor/ctrl/mail.kosmos.sg.serial,server,nowait -net nic,vlan=0,macaddr=aa:00:00:df:af:51,model=virtio

Note: By default virtio is used (most distro&#039;s initrd has built-in support for this).
Note: Default debootstrap does not setup network.

gnt-instance console mail.kosmos.sg
Check: -vnc host:d
By convention the TCP port is 5900+d


To mount instance disk on host,
Read: http://alexeytorkhov.blogspot.com/2009/09/mounting-raw-and-qcow2-vm-disk-images.html
lvdisplay
losetup /dev/loop0 
kpartx -a /dev/loop0
mount /dev/mapper/loop0p1 /mnt/image</description>
		<content:encoded><![CDATA[<p>These tips below will help you tremendously. Please drop a message if so.</p>
<p>Follow: <a href="http://ganeti-doc.googlecode.com/svn/ganeti-2.1/html/install-quick.html" rel="nofollow">http://ganeti-doc.googlecode.com/svn/ganeti-2.1/html/install-quick.html</a><br />
Follow: <a href="http://ganeti-doc.googlecode.com/svn/ganeti-2.1/html/install.html" rel="nofollow">http://ganeti-doc.googlecode.com/svn/ganeti-2.1/html/install.html</a><br />
Follow: <a href="http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/" rel="nofollow">http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/</a></p>
<p>For debootstrap:<br />
Use:<br />
./configure &#8211;prefix=/usr &#8211;localstatedir=/var \<br />
    &#8211;sysconfdir=/etc \<br />
    &#8211;with-os-dir=/srv/ganeti/os<br />
  make &amp;&amp; make install</p>
<p>ln -s vmlinuz-2.6.24-11-pve /boot/kernel-2.6-kvmU<br />
ln -s initrd.img-2.6.24-11-pve /boot/initrd-2.6-kvmU<br />
gnt-cluster modify -H kvm:initrd_path=/boot/kernel-2.6-kvmU<br />
gnt-cluster modify -H kvm:initrd_path=/boot/initrd-2.6-kvmU<br />
gnt-cluster modify -H kvm:vnc_bind_address = 127.0.0.1<br />
gnt-cluster info</p>
<p>gnt-instance add -t plain -s 1G -n qrm.kosmos.sg -o debootstrap+default mail.kosmos.sg<br />
grep -Af | grep kvm<br />
Check to see correct arguments&#8230;<br />
/usr/bin/kvm -name mail.kosmos.sg -m 128 -smp 1 -pidfile /var/run/ganeti/kvm-hypervisor/pid/mail.kosmos.sg -daemonize -boot c -drive file=/var/run/ganeti/instance-disks/mail.kosmos.sg:0,format=raw,if=virtio,boot=on -kernel /boot/vmlinuz-2.6-kvmU -initrd /boot/initrd-2.6-kvmU -append &#8220;root=/dev/vda1 ro&#8221; -vnc 127.0.0.1:3 -usbdevice tablet -serial unix:/var/run/ganeti/kvm-hypervisor/ctrl/mail.kosmos.sg.serial,server,nowait -net nic,vlan=0,macaddr=aa:00:00:df:af:51,model=virtio</p>
<p>Note: By default virtio is used (most distro&#8217;s initrd has built-in support for this).<br />
Note: Default debootstrap does not setup network.</p>
<p>gnt-instance console mail.kosmos.sg<br />
Check: -vnc host:d<br />
By convention the TCP port is 5900+d</p>
<p>To mount instance disk on host,<br />
Read: <a href="http://alexeytorkhov.blogspot.com/2009/09/mounting-raw-and-qcow2-vm-disk-images.html" rel="nofollow">http://alexeytorkhov.blogspot.com/2009/09/mounting-raw-and-qcow2-vm-disk-images.html</a><br />
lvdisplay<br />
losetup /dev/loop0<br />
kpartx -a /dev/loop0<br />
mount /dev/mapper/loop0p1 /mnt/image</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bithive</title>
		<link>http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/comment-page-1/#comment-39337</link>
		<dc:creator>bithive</dc:creator>
		<pubDate>Mon, 22 Feb 2010 23:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://geekfun.com/?p=1186#comment-39337</guid>
		<description>I just spent two days playing with ganeti and never once got an instance to boot under Xen or KVM.  I was really hoping the information on this page would make the difference but it did not.

I&#039;m giving up on ganeti for a year or two until the documentation adds sections about &quot;what to do if things don&#039;t work perfectly&quot;, as currently there are none.</description>
		<content:encoded><![CDATA[<p>I just spent two days playing with ganeti and never once got an instance to boot under Xen or KVM.  I was really hoping the information on this page would make the difference but it did not.</p>
<p>I&#8217;m giving up on ganeti for a year or two until the documentation adds sections about &#8220;what to do if things don&#8217;t work perfectly&#8221;, as currently there are none.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://geekfun.com/2009/07/14/tips-on-using-ganeti-to-manage-a-kvm-based-virtual-machine-cluster-on-ubunty-jaunty-jackelope-9-04/comment-page-1/#comment-35954</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 19 Aug 2009 17:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://geekfun.com/?p=1186#comment-35954</guid>
		<description>OK, I beat my head against this thing for a couple of days, and I think figured out what the essential problem is: Ganeti expects kvm to use virtio disks, and kvm isn&#039;t happy about that. Now, I made dozens of changes and reversions and false starts in getting to the point that the ganeti instance would boot, so I could be forgetting some other essential issue here, but I think that the following two changes beyond what you&#039;ve already done will work:

First, after you first initialize your cluster, execute the command:

gnt-cluster modify --hypervisor-parameters kvm:root_path=/dev/sda1

Then use the following command to create your instance:

gnt-instance add -t plain -s1G -n  -H kvm:disk_type=ide -o debootstrap 

Disclosure: By the time I got to the point of making this work, I&#039;d given up on the stock debootstrap definitions and had built a version to bootstrap a Jaunty server instance, so I haven&#039;t tested this with the stock lenny defs. FWIW, I found this helpful in building my definitions:

http://www.psychocats.net/ubuntucat/creating-a-passwordless-account-in-ubuntu/

Thanks for your post, it definitely saved me a bunch of time.</description>
		<content:encoded><![CDATA[<p>OK, I beat my head against this thing for a couple of days, and I think figured out what the essential problem is: Ganeti expects kvm to use virtio disks, and kvm isn&#8217;t happy about that. Now, I made dozens of changes and reversions and false starts in getting to the point that the ganeti instance would boot, so I could be forgetting some other essential issue here, but I think that the following two changes beyond what you&#8217;ve already done will work:</p>
<p>First, after you first initialize your cluster, execute the command:</p>
<p>gnt-cluster modify &#8211;hypervisor-parameters kvm:root_path=/dev/sda1</p>
<p>Then use the following command to create your instance:</p>
<p>gnt-instance add -t plain -s1G -n  -H kvm:disk_type=ide -o debootstrap </p>
<p>Disclosure: By the time I got to the point of making this work, I&#8217;d given up on the stock debootstrap definitions and had built a version to bootstrap a Jaunty server instance, so I haven&#8217;t tested this with the stock lenny defs. FWIW, I found this helpful in building my definitions:</p>
<p><a href="http://www.psychocats.net/ubuntucat/creating-a-passwordless-account-in-ubuntu/" rel="nofollow">http://www.psychocats.net/ubuntucat/creating-a-passwordless-account-in-ubuntu/</a></p>
<p>Thanks for your post, it definitely saved me a bunch of time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

