<?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>Kabisa Blog &#187; Hosting</title>
	<atom:link href="http://blog.kabisa.nl/tag/hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kabisa.nl</link>
	<description>The Ruby on Rails Experts</description>
	<lastBuildDate>Thu, 17 Jun 2010 11:13:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Xen: How to fix &#8220;SIOCSIFADDR: No such device&#8221;</title>
		<link>http://blog.kabisa.nl/2009/12/11/xen-how-to-fix-siocsifaddr-no-such-device/</link>
		<comments>http://blog.kabisa.nl/2009/12/11/xen-how-to-fix-siocsifaddr-no-such-device/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 08:54:38 +0000</pubDate>
		<dc:creator>Ariejan de Vroom</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[eth0]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://blog.kabisa.nl/?p=47</guid>
		<description><![CDATA[Yesterday I had to clone a VPS to run some CPU and memory intensive tests. With our current setup (Xen + LVM), cloning an image on the fly is easy. 
After configuring a new IP address for the clone, I booted up the system. Nice, but I ran into a problem:
Configuring network interfaces...SIOCSIFADDR: No such [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I had to clone a VPS to run some CPU and memory intensive tests. With our current setup (Xen + LVM), cloning an image on the fly is easy. </p>
<p>After configuring a new IP address for the clone, I booted up the system. Nice, but I ran into a problem:</p>
<pre>Configuring network interfaces...SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.</pre>
<p>After some investigation I found that the MAC address for eth0 is stored on disk in <code>/etc/udev/rules.d/z25_persistent-net.rules</code>. That makes sense, because the whole file system was cloned. But, I swapped the virtual network card, and I&#8217;d expect is to work. It didn&#8217;t. </p>
<p>The solution is quite easy. Empty <code>/etc/udev/rules.d/z25_persistent-net.rules</code>. Then shutdown and start your VPS. You must do a full shutdown, a reboot won&#8217;t work. </p>
<p>For the lazy folk out there, here&#8217;s how to quickly empty the file:</p>
<pre>echo "" > /etc/udev/rules.d/z25_persistent-net.rules</pre>
<p>After you have started your VPS back up again, you should be able to ping out over the network. If you peek in <code>/etc/udev/rules.d/z25_persistent-net.rules</code> you should see a line that contains the MAC address for your virtual network device.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kabisa.nl/2009/12/11/xen-how-to-fix-siocsifaddr-no-such-device/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
