<?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>Brandon W. King&#039;s Blog &#187; qemu</title>
	<atom:link href="http://www.brandonking.net/blog/tag/qemu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brandonking.net/blog</link>
	<description>Blogging about Python, Bioinformatics, Programming, System Administration, Cognitive Science, Philosophy and Life</description>
	<lastBuildDate>Wed, 09 Dec 2009 01:24:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>xen + routed network (shorewall) + qemu</title>
		<link>http://www.brandonking.net/blog/2007/02/09/xen-routed-network-shorewall-qemu/</link>
		<comments>http://www.brandonking.net/blog/2007/02/09/xen-routed-network-shorewall-qemu/#comments</comments>
		<pubDate>Fri, 09 Feb 2007 18:33:00 +0000</pubDate>
		<dc:creator>Brandon W. King</dc:creator>
				<category><![CDATA[Computers/IT]]></category>
		<category><![CDATA[Error Fixes]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Virtual Machines]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[routed]]></category>
		<category><![CDATA[shorewall]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://blog.brandonking.net/?p=25</guid>
		<description><![CDATA[After setting up xen and configuring buildbot on a xen guest domain, I decided it was time to bite the bullet and setup shorewall to hide the xen guest domains behind a private network.
By the way, there are some nice guides on setting up shorewall with xen:

Strong Firewall in a Routed Xen Dom0
Xen and the [...]]]></description>
			<content:encoded><![CDATA[<p>After setting up <a href="http://www.cl.cam.ac.uk/research/srg/netos/xen/">xen</a> and configuring <a href="http://buildbot.sourceforge.net/">buildbot</a> on a xen guest domain, I decided it was time to bite the bullet and setup <a href="http://www.shorewall.net/">shorewall</a> to hide the xen guest domains behind a private network.</p>
<p>By the way, there are some nice guides on setting up shorewall with xen:</p>
<ul>
<li><a href="http://www.shorewall.net/XenMyWay-Routed.html">Strong Firewall in a Routed Xen Dom0</a></li>
<li><a href="http://www.shorewall.net/XenMyWay.html">Xen and the Art of Consolidation</a></li>
<li><a href="http://www.shorewall.net/Xen.html">Xen and Shorewall</a></li>
</ul>
<p>In the process I had to reconfigure Xen to use routed networking rather then bridged:</p>
<p>Changed (/etc/xen/xend-config.sxp) from:</p>
<blockquote><p>(network-script network-bridge)<br />
(vif-script vif-bridge)</p></blockquote>
<p>To:</p>
<blockquote><p>(network-script network-route)<br />
(vif-script     vif-route)</p></blockquote>
<p>After setting up shorewall properly and being able to log into two different Debian etch guest domains, I noticed that my previously working WinXP hvm was not starting up properly. When I looked into it further I found the following in /var/log/xen/qemu-dm.11384.log</p>
<blockquote><p>domid: 20<br />
qemu: the number of cpus is 1<br />
/etc/xen/scripts/qemu-ifup: could not launch network script<br />
Could not initialize device &#8216;tap&#8217;</p></blockquote>
<p>Tap device cure (<a href="http://qemu-forum.ipi.fi/viewtopic.php?p=9260&amp;sid=494a2df12b48a1e8fdca8ae0e7bfb752">found here</a>):</p>
<blockquote style="font-weight: bold;"><p>tunctl -t tap0</p></blockquote>
<p>The final piece of the puzzle (since I&#8217;m using the routed script with xen)&#8230;</p>
<blockquote><p>Comment out &#8220;<span style="font-weight: bold;">brctl addif $2 $</span>&#8221; from /etc/xen/scripts/qemu-ifup as mentioned by George in <a href="http://lists.xensource.com/archives/html/xen-users/2006-12/msg00448.html">this mailing list thread</a>.</p></blockquote>
<p><span style="font-weight: bold;">UPDATE (2007Feb12):</span> By doing the above two tasks, I was able to launch WinXP under Xen, but I did not have shorewall setup properly. To save time and money, I&#8217;m going with the simpler route of buying a hardware firewall/router. I will leave the information above incase it is useful to anyone (including myself) in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brandonking.net/blog/2007/02/09/xen-routed-network-shorewall-qemu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
