<?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>Michael Conigliaro &#187; Xen</title>
	<atom:link href="http://conigliaro.org/category/xen/feed/" rel="self" type="application/rss+xml" />
	<link>http://conigliaro.org</link>
	<description>cat /dev/brain &#124; grep technology &#62;&#62; blog</description>
	<lastBuildDate>Fri, 10 Sep 2010 16:31:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Managing Additional NICs after XenServer Installation</title>
		<link>http://conigliaro.org/2009/11/12/managing-additional-nics-after-xenserver-installation/</link>
		<comments>http://conigliaro.org/2009/11/12/managing-additional-nics-after-xenserver-installation/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 21:51:45 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=788</guid>
		<description><![CDATA[After Installing XenServer, any new NICs you add will not appear automatically. You need to run the following command from the XenServer console: xe pif-scan host-uuid=&#60;UUID of XenServer host&#62; If this command results in interfaces with funny names, such as NIC__tmp1234567890, there&#8217;s a way to fix that too. First get the UUID of the interface [...]]]></description>
			<content:encoded><![CDATA[<p>After Installing XenServer, any new NICs you add will not appear automatically. You need to run the following command from the XenServer console:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pif-scan host-uuid=<span style="color: #000000; font-weight: bold;">&lt;</span>UUID of XenServer host<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>If this command results in interfaces with funny names, such as NIC__tmp1234567890, there&#8217;s a way to fix that too. First get the UUID of the interface in question:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pif-list <span style="color: #007800;">device</span>=__tmp<span style="color: #000000; font-weight: bold;">&lt;</span>numbers<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Get the host UUID of the interface:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pif-param-get param-name=host-uuid <span style="color: #007800;">uuid</span>=<span style="color: #000000; font-weight: bold;">&lt;</span>UUID of interface<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Get the MAC address of the interface:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pif-param-get param-name=MAC <span style="color: #007800;">uuid</span>=<span style="color: #000000; font-weight: bold;">&lt;</span>UUID of interface<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Remove the interface:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pif-forget <span style="color: #007800;">uuid</span>=<span style="color: #000000; font-weight: bold;">&lt;</span>UUID of interface<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Reintroduce the interface with a more appropriate name:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pif-introduce <span style="color: #007800;">device</span>=eth<span style="color: #000000; font-weight: bold;">&lt;</span>n<span style="color: #000000; font-weight: bold;">&gt;</span> host-uuid=<span style="color: #000000; font-weight: bold;">&lt;</span>UUID of XenServer host<span style="color: #000000; font-weight: bold;">&gt;</span>  <span style="color: #007800;">mac</span>=<span style="color: #000000; font-weight: bold;">&lt;</span>MAC address of interface<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>And that&#8217;s it! Note that this process may cause the vendor name, device name, and PCI Bus Path to disappear in the host&#8217;s NICs tab in XenCenter. I&#8217;m not sure why this happens, but it seems to fix itself eventually. Also note that this process will leave behind &#8220;orphan&#8221; networks with names like &#8220;Pool-wide network associated with __tmp1234567890.&#8221; These networks can be safely and easily deleted via XenCenter.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/11/12/managing-additional-nics-after-xenserver-installation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>xen-vm-autosnapshot.py 1.2</title>
		<link>http://conigliaro.org/2009/08/07/xen-vm-autosnapshot-py-1-2/</link>
		<comments>http://conigliaro.org/2009/08/07/xen-vm-autosnapshot-py-1-2/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 17:14:45 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=440</guid>
		<description><![CDATA[The xen-vm-autosnapshot.py script has been updated with an important new option: &#8211;snapshot-tag. I still can&#8217;t believe I made such a silly oversight, but previous versions of this script had no way of differentiating between snapshots created automatically and those that were created manually. So if you happened to have some old manual snapshots lying around, [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="/projects/wiki/Xen">xen-vm-autosnapshot.py</a> script has been updated with an important new option: &#8211;snapshot-tag. I still can&#8217;t believe I made such a silly oversight, but previous versions of this script had no way of differentiating between snapshots created automatically and those that were created manually. So if you happened to have some old manual snapshots lying around, the snapshot-rotate routine would have rotated them along with all the rest.</p>
<p>The &#8211;snapshot-tag option fixes this by allowing you to &#8220;tag&#8221; each snapshot as it&#8217;s created. Then the snapshot-rotate routine will only consider snapshots with the correct &#8220;tag.&#8221; This also allows for more advanced snapshot/rotation schedules.</p>
<p>Thanks to Adam Adamou at <a href="http://www.njedge.net/">NJEDge.Net</a> for his input.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/08/07/xen-vm-autosnapshot-py-1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xen-vm-autosnapshot.py 1.1</title>
		<link>http://conigliaro.org/2009/06/25/xen-vm-autosnapshotpy-11/</link>
		<comments>http://conigliaro.org/2009/06/25/xen-vm-autosnapshotpy-11/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 19:51:05 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=411</guid>
		<description><![CDATA[The xen-vm-autosnapshot.py script has been updated. It can now accept strings for &#8211;log-level (e.g. &#8211;log-level=debug), and the &#8211;test option has been renamed to &#8211;dry-run (since that&#8217;s the convention everyone else in the world seems to be used to). Some of you have been asking about the problem where snapshots get locked and can&#8217;t be deleted [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="/projects/wiki/Xen">xen-vm-autosnapshot.py</a> script has been updated. It can now accept strings for &#8211;log-level (e.g. &#8211;log-level=debug), and the &#8211;test option has been renamed to &#8211;dry-run (since that&#8217;s the convention everyone else in the world seems to be used to).</p>
<p>Some of you have been asking about the problem where <a href="http://forums.citrix.com/thread.jspa?threadID=242299">snapshots get locked and can&#8217;t be deleted from NetApp volumes</a>. Unfortunately, this appears to be related to the way the XenServer API interacts with NetApp&#8217;s DATA OnTap API. Unless someone out there can enlighten me, I don&#8217;t think there&#8217;s much we can do, other than wait for Citrix to fix their API. =(</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/06/25/xen-vm-autosnapshotpy-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic, Rotating VM Snapshots on Xen with xen-vm-autosnapshot.py</title>
		<link>http://conigliaro.org/2009/05/19/automatic-rotating-vm-snapshots-on-xen-with-xen-vm-autosnapshotpy/</link>
		<comments>http://conigliaro.org/2009/05/19/automatic-rotating-vm-snapshots-on-xen-with-xen-vm-autosnapshotpy/#comments</comments>
		<pubDate>Tue, 19 May 2009 14:47:40 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=352</guid>
		<description><![CDATA[My new Xen Tools project page is up, and my first tool is ready for wide-spread use.  xen-vm-autosnapshot.py is a command line program (written in Python, of course) that will take automatic, rotating snapshots of virtual machines running on a Xen host. Enjoy!]]></description>
			<content:encoded><![CDATA[<p>My new <a href="/projects/wiki/Xen">Xen Tools</a> project page is up, and my first tool is ready for wide-spread use.  <a href="/projects/browser/xen/trunk/xen-vm-autosnapshot.py">xen-vm-autosnapshot.py</a> is a command line program (written in Python, of course) that will take automatic, rotating snapshots of virtual machines running on a Xen host. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/05/19/automatic-rotating-vm-snapshots-on-xen-with-xen-vm-autosnapshotpy/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>When in Doubt, Restart the Xen Toolstack</title>
		<link>http://conigliaro.org/2009/04/08/when-in-doubt-restart-the-xen-toolstack/</link>
		<comments>http://conigliaro.org/2009/04/08/when-in-doubt-restart-the-xen-toolstack/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 00:12:52 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=712</guid>
		<description><![CDATA[I&#8217;ve had a few really strange Xen problems that I was only able to resolve by doing a rolling-reboot of the individual Xen hosts. This was a real pain in the ass, but now I&#8217;ve discovered a way to restart the Xen toolstack without affecting the running VMs: xe-toolstack-restart Note that you sometimes need to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a few really strange Xen problems that I was only able to resolve by doing a rolling-reboot of the individual Xen hosts. This was a real pain in the ass, but now I&#8217;ve discovered a way to restart the Xen toolstack without affecting the running VMs:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe-toolstack-restart</pre></div></div>

<p>Note that you sometimes need to run this command on the master in your pool rather than the actual XenServer(s) having problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/04/08/when-in-doubt-restart-the-xen-toolstack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Pool Master on Citrix XenServer</title>
		<link>http://conigliaro.org/2009/02/04/change-pool-master-on-citrix-xenserver/</link>
		<comments>http://conigliaro.org/2009/02/04/change-pool-master-on-citrix-xenserver/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 21:50:05 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://conigliaro.org/?p=705</guid>
		<description><![CDATA[Unless I&#8217;m overlooking something, there&#8217;s still no way to do this in XenCenter. Oh well, here&#8217;s how you do it from the command line: First disable high availability: xe pool-ha-disable Now list your XenServer hosts: xe host-list Using the list above, designate a new pool master by supplying the uuid associated with the desired host: [...]]]></description>
			<content:encoded><![CDATA[<p>Unless I&#8217;m overlooking something, there&#8217;s <em>still</em> no way to do this in XenCenter. Oh well, here&#8217;s how you do it from the command line:</p>
<p>First disable high availability:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pool-ha-disable</pre></div></div>

<p>Now list your XenServer hosts:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe host-list</pre></div></div>

<p>Using the list above, designate a new pool master by supplying the uuid associated with the desired host:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pool-designate-new-master host-uuid=<span style="color: #000000; font-weight: bold;">&lt;</span>uuid<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>You&#8217;ll probably lose connection to the pool at this point, but that&#8217;s normal behavior. Once XenCenter reconnects (this should happen automatically), it&#8217;s safe to re-enable high availability:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xe pool-ha-enable</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://conigliaro.org/2009/02/04/change-pool-master-on-citrix-xenserver/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
