<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GlobalMegaBlog &#187; linux</title>
	<atom:link href="http://globalmegacorp.org/blog/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://globalmegacorp.org/blog</link>
	<description>The ramblings of a Brit in America</description>
	<lastBuildDate>Sun, 16 Aug 2009 16:57:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Why won&#8217;t my net work?</title>
		<link>http://globalmegacorp.org/blog/2009/05/why-wont-my-net-work/</link>
		<comments>http://globalmegacorp.org/blog/2009/05/why-wont-my-net-work/#comments</comments>
		<pubDate>Wed, 06 May 2009 08:50:31 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[badpuns]]></category>
		<category><![CDATA[geekery]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://globalmegacorp.org/blog/?p=366</guid>
		<description><![CDATA[This is one those &#8220;for future reference&#8221; posts, mostly for myself, but perhaps it will help some other poor unfortunate from running into the same problems I had tonight.
Specifically, setting up bridged networking under Linux to enable a KVM virtual machine. I had this working just fine up until the point where I upgraded this [...]]]></description>
			<content:encoded><![CDATA[<p>This is one those &#8220;for future reference&#8221; posts, mostly for myself, but perhaps it will help some other poor unfortunate from running into the same problems I had tonight.</p>
<p>Specifically, setting up bridged networking under Linux to enable a KVM virtual machine. I had this working just fine up until the point where I upgraded this server to hardy, whereupon everything fell apart. Thanks to the folks on freenode.net/#kvm, I discovered that my interface configuration was broken.</p>
<p>To summarise, I have:</p>
<p>1 Physical network interface<br />
3 IP addresses (2 of which are assigned to the host OS, one to the guest VM).</p>
<p>It turns out that if you have a bridge set up on the interface, assigning a second IP address should be an alias to the bridge, not the first IP&#8217;s interface.</p>
<p>Initially, I had something like this:</p>
<pre>
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address xxx.xx.xxx.xxx
        netmask xxx.xxx.xxx.xxx
        broadcast xxx.xx.xxx.xxx
        gateway xxx.xx.xxx.xxx
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

auto eth1
iface eth0:1 inet static
        address xxx.xx.xxx.xxx
        netmask xxx.xxx.xxx.xxx
        broadcast xxx.xx.xxx.xxx
        gateway xxx.xx.xxx.xxx
</pre>
<p>There are several things wrong with this. The first is that the gateway should not be specified on the second interface. It wasn&#8217;t a problem in gutsy, but hardy did things somewhat differently, with the result that networking was completely disabled on reboot. IPMI to the rescue, fortunately.</p>
<p>Having fixed that, things seemed to work ok, but I was informed that the secondary IP should more accurately be assigned to the bridge, like this:</p>
<pre>
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address xxx.xx.xxx.xxx
        netmask xxx.xx.xxx.xxx
        broadcast xxx.xxx.xxx.xxx
        gateway xxx.xx.xxx.xxx
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

iface br0:0 inet static
	address xxx.xx.xxx.xxx
        netmask xxx.xxx.xxx.xxx
</pre>
<p>One swift edit, and things are working swimmingly well. One of the folks on freenode #kvm hinted that he might spend some time soon writing some, you know, documentation on this process, so in future it won&#8217;t require reading dozens of blog posts (like this one) to understand what the hell you&#8217;re doing. Sounds like a great plan to me. The most defining characteristic of the current documentation is that it&#8217;s almost as shallow as Paris Hilton, and decidedly less thick too.</p>
]]></content:encoded>
			<wfw:commentRss>http://globalmegacorp.org/blog/2009/05/why-wont-my-net-work/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

