<?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: Starting with KVM</title>
	<atom:link href="http://etbe.coker.com.au/2010/03/17/starting-with-kvm/feed/" rel="self" type="application/rss+xml" />
	<link>http://etbe.coker.com.au/2010/03/17/starting-with-kvm/</link>
	<description>Linux, politics, and other interesting things</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:45:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark</title>
		<link>http://etbe.coker.com.au/2010/03/17/starting-with-kvm/comment-page-1/#comment-25861</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 12 Dec 2010 18:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1829#comment-25861</guid>
		<description>You should add OpenVZ to your tests.  If you are looking for something that is a middle ground between Xen and chroot, it is fast, mature, and fully supported in Squeeze.</description>
		<content:encoded><![CDATA[<p>You should add OpenVZ to your tests.  If you are looking for something that is a middle ground between Xen and chroot, it is fast, mature, and fully supported in Squeeze.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2010/03/17/starting-with-kvm/comment-page-1/#comment-24473</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Sat, 20 Mar 2010 21:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1829#comment-24473</guid>
		<description>http://etbe.coker.com.au/2010/03/18/maintaining-screen-output/

The above post has some interesting discussion of maintaining screen output, I&#039;ve got one solution and the comments suggest a better option.

Jason White wrote the following in a comment on my maintaining-screen-output post, unfortunately Wordpress doesn&#039;t let me move a comment to a different post so I&#039;ll just paste it in:

My earlier attempt to post failed (probably my fault), and I have further
comments to add anyway.

1. http://womble.decadent.org.uk/blog/kvm-reliability

2. Be sure to use the Virtio drivers for the network and block devices:
http://www.linux-kvm.org/page/Virtio

3. Kernel Shared Memory (KSM) may be useful if you plan to run multiple KVM
guests.</description>
		<content:encoded><![CDATA[<p><a href="http://etbe.coker.com.au/2010/03/18/maintaining-screen-output/" rel="nofollow">http://etbe.coker.com.au/2010/03/18/maintaining-screen-output/</a></p>
<p>The above post has some interesting discussion of maintaining screen output, I&#8217;ve got one solution and the comments suggest a better option.</p>
<p>Jason White wrote the following in a comment on my maintaining-screen-output post, unfortunately WordPress doesn&#8217;t let me move a comment to a different post so I&#8217;ll just paste it in:</p>
<p>My earlier attempt to post failed (probably my fault), and I have further<br />
comments to add anyway.</p>
<p>1. <a href="http://womble.decadent.org.uk/blog/kvm-reliability" rel="nofollow">http://womble.decadent.org.uk/blog/kvm-reliability</a></p>
<p>2. Be sure to use the Virtio drivers for the network and block devices:<br />
<a href="http://www.linux-kvm.org/page/Virtio" rel="nofollow">http://www.linux-kvm.org/page/Virtio</a></p>
<p>3. Kernel Shared Memory (KSM) may be useful if you plan to run multiple KVM<br />
guests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2010/03/17/starting-with-kvm/comment-page-1/#comment-24465</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Thu, 18 Mar 2010 21:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1829#comment-24465</guid>
		<description>http://womble.decadent.org.uk/blog/debian-linux-packages-the-big-bang-release

Ben Hutchings has announced that Xen kernel images are now being prepared for Squeeze.</description>
		<content:encoded><![CDATA[<p><a href="http://womble.decadent.org.uk/blog/debian-linux-packages-the-big-bang-release" rel="nofollow">http://womble.decadent.org.uk/blog/debian-linux-packages-the-big-bang-release</a></p>
<p>Ben Hutchings has announced that Xen kernel images are now being prepared for Squeeze.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nucco</title>
		<link>http://etbe.coker.com.au/2010/03/17/starting-with-kvm/comment-page-1/#comment-24448</link>
		<dc:creator>nucco</dc:creator>
		<pubDate>Thu, 18 Mar 2010 08:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1829#comment-24448</guid>
		<description>I thought this was an introduction to KVM :p</description>
		<content:encoded><![CDATA[<p>I thought this was an introduction to KVM :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2010/03/17/starting-with-kvm/comment-page-1/#comment-24446</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Wed, 17 Mar 2010 09:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1829#comment-24446</guid>
		<description>http://womble.decadent.org.uk/blog/kvm-reliability

Ben points out that the problem with recent kernels crashing under KVM on AMD is due to a regression in a security fix and should be fixed soon.</description>
		<content:encoded><![CDATA[<p><a href="http://womble.decadent.org.uk/blog/kvm-reliability" rel="nofollow">http://womble.decadent.org.uk/blog/kvm-reliability</a></p>
<p>Ben points out that the problem with recent kernels crashing under KVM on AMD is due to a regression in a security fix and should be fixed soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Niehusmann</title>
		<link>http://etbe.coker.com.au/2010/03/17/starting-with-kvm/comment-page-1/#comment-24443</link>
		<dc:creator>Jan Niehusmann</dc:creator>
		<pubDate>Wed, 17 Mar 2010 07:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1829#comment-24443</guid>
		<description>Just a few notes based on my usage of kvm: I use kvm in &#039;production&#039;, running a web and a mail server inside kvm virtual machines. Both are rock solid, but the traffic on both is low, so that doesn&#039;t mean too much.

These are just settings which work well for me. I don&#039;t claim they are optimal and I didn&#039;t run benchmarks. But perhaps there is some useful option you missed.

For starting kvm in background I use the following options:

kvm -vnc none -monitor unix:/home/jan/VM/vm1/monitor,server,nowait -daemonize

With -vnc none, an internal vnc server is started, but not connected to any port. As I usually don&#039;t access the console, this is fine. If I need console access for some reason, I can connect to kvm using something like &#039;nc -U ~/VM/vm1/monitor&#039; and enter &#039;change vnc 127.0.0.1:x&#039; to bind the vnc server to port x.

To shutdown the vm I can use
echo &quot;system_powerdown&quot; &#124; nc -q 30 -U /home/jan/VM/vm1/monitor

For networking, I prefer a tap device. This seems to be the most flexible option, as I can add it to a software bridge, use routing,
firewalling etc. just like on a physical interface. As I don&#039;t want to run kvm with root privileges, I add a tap interface
in /etc/network/interfaces:

iface tap_jan0 inet manual
        tunctl_user jan
        up ifconfig $IFACE up
        up ip route add 192.168.1.2/32 dev $IFACE

tunctl_user makes this device accessible by an unpriviliged user, so kvm can be run as a normal user. I use the following options:

-net nic,model=virtio,macaddr=02:00:00:00:10:02 -net tap,ifname=tap_jan0,script=no

model=virtio should be faster than the default and is fine when running a moderately recent linux as client OS.

The same is probably true for disk devices, but I didn&#039;t try that, yet:
Instead of using -hda, one can use -drive file=...,index=0,media=disk,if=virtio


The only stability problem I had with this system (host cpu: AMD Athlon(tm) 64 X2 5600+) was that kvm didn&#039;t like frequency scaling on
the host, which I disabled with
devices/system/cpu/cpu0/cpufreq/scaling_governor = performance
in /etc/sysfs.conf.
I should probably find out if this problem is solved by now to gain the power saving advantages of frequency scaling, as I installed the system more than a year ago and didn&#039;t touch these settings since then.

I hope some of these settings are useful to you.</description>
		<content:encoded><![CDATA[<p>Just a few notes based on my usage of kvm: I use kvm in &#8216;production&#8217;, running a web and a mail server inside kvm virtual machines. Both are rock solid, but the traffic on both is low, so that doesn&#8217;t mean too much.</p>
<p>These are just settings which work well for me. I don&#8217;t claim they are optimal and I didn&#8217;t run benchmarks. But perhaps there is some useful option you missed.</p>
<p>For starting kvm in background I use the following options:</p>
<p>kvm -vnc none -monitor unix:/home/jan/VM/vm1/monitor,server,nowait -daemonize</p>
<p>With -vnc none, an internal vnc server is started, but not connected to any port. As I usually don&#8217;t access the console, this is fine. If I need console access for some reason, I can connect to kvm using something like &#8216;nc -U ~/VM/vm1/monitor&#8217; and enter &#8216;change vnc 127.0.0.1:x&#8217; to bind the vnc server to port x.</p>
<p>To shutdown the vm I can use<br />
echo &#8220;system_powerdown&#8221; | nc -q 30 -U /home/jan/VM/vm1/monitor</p>
<p>For networking, I prefer a tap device. This seems to be the most flexible option, as I can add it to a software bridge, use routing,<br />
firewalling etc. just like on a physical interface. As I don&#8217;t want to run kvm with root privileges, I add a tap interface<br />
in /etc/network/interfaces:</p>
<p>iface tap_jan0 inet manual<br />
        tunctl_user jan<br />
        up ifconfig $IFACE up<br />
        up ip route add 192.168.1.2/32 dev $IFACE</p>
<p>tunctl_user makes this device accessible by an unpriviliged user, so kvm can be run as a normal user. I use the following options:</p>
<p>-net nic,model=virtio,macaddr=02:00:00:00:10:02 -net tap,ifname=tap_jan0,script=no</p>
<p>model=virtio should be faster than the default and is fine when running a moderately recent linux as client OS.</p>
<p>The same is probably true for disk devices, but I didn&#8217;t try that, yet:<br />
Instead of using -hda, one can use -drive file=&#8230;,index=0,media=disk,if=virtio</p>
<p>The only stability problem I had with this system (host cpu: AMD Athlon(tm) 64 X2 5600+) was that kvm didn&#8217;t like frequency scaling on<br />
the host, which I disabled with<br />
devices/system/cpu/cpu0/cpufreq/scaling_governor = performance<br />
in /etc/sysfs.conf.<br />
I should probably find out if this problem is solved by now to gain the power saving advantages of frequency scaling, as I installed the system more than a year ago and didn&#8217;t touch these settings since then.</p>
<p>I hope some of these settings are useful to you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

