<?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: Why Are There No Good Automated Deployment Tools for Xen on Enterprise Linux?</title>
	<atom:link href="http://www.ryanduff.net/2009/02/16/why-are-there-no-good-automated-deployment-tools-for-xen-on-enterprise-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryanduff.net/2009/02/16/why-are-there-no-good-automated-deployment-tools-for-xen-on-enterprise-linux/</link>
	<description>ramblings and more from ryan duff</description>
	<lastBuildDate>Wed, 24 Feb 2010 13:23:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dingo</title>
		<link>http://www.ryanduff.net/2009/02/16/why-are-there-no-good-automated-deployment-tools-for-xen-on-enterprise-linux/comment-page-1/#comment-311</link>
		<dc:creator>dingo</dc:creator>
		<pubDate>Sat, 14 Mar 2009 22:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ryanduff.net/?p=59#comment-311</guid>
		<description>Ryan,  I understand your situation.  To me it looks like Xen management is focusing on GUI tools and for the command line they are abandoning the old config formats.  It does not help when RedHat announced they are switching to KVM.

To my unwelcome surprise, when I upgraded my CentOS 5 box to the latest Xen 3.3.0, virt-install would no longer create the old config formats.  What I have done to go around the SXP file format (which will probably be ungreppable if it gets big enough) is make a shell script to create old config file for you.  (On openSUSE, I believe the vminstall command makes both, so maybe SLES is the same)

#!/bin/sh
#auto create script using kickstart

vpsname=$1
xenvg=&quot;xen&quot;
sysmem=1024
tmp=/tmp/xentmp

if [ ! &quot;$vpsname&quot; ]; then
        echo &quot;Syntax: $0 vps_name&quot;
        exit
elif [ ! -b /dev/$xenvg/$vpsname ]; then
        echo &quot;No block device: /dev/$xenvg/$vpsname&quot;
        exit 1
fi

#paravirt
#works
virt-install -p --location=http://x.x.x.x/centos52-32 --noautoconsole --file=/dev/$xenvg/$vpsname --name=$vpsname --ram=$sysmem --vnc -x &quot;ks=http://x.x.x.x/kickstart/xen-guest.ks&quot; $2

#hvm
#still working on it

#qemu-kvm
#doesn&#039;t yet work

#create old-style xm config file
sleep 2
xm list --long $vpsname &gt; $tmp
sed &#039;s/(//g;s/)//g&#039; $tmp &gt; $tmp.1
uuid=`grep -m 1 uuid $tmp.1 &#124; awk &#039;{print $2}&#039;`
mac=`grep mac $tmp.1 &#124; awk &#039;{print $2}&#039;`

( cat &lt; /etc/xen/$vpsname

(i&#039;m hoping none of that gets eaten)  You can probably replace that elif block to do an lvcreate automatically for you.</description>
		<content:encoded><![CDATA[<p>Ryan,  I understand your situation.  To me it looks like Xen management is focusing on GUI tools and for the command line they are abandoning the old config formats.  It does not help when RedHat announced they are switching to KVM.</p>
<p>To my unwelcome surprise, when I upgraded my CentOS 5 box to the latest Xen 3.3.0, virt-install would no longer create the old config formats.  What I have done to go around the SXP file format (which will probably be ungreppable if it gets big enough) is make a shell script to create old config file for you.  (On openSUSE, I believe the vminstall command makes both, so maybe SLES is the same)</p>
<p>#!/bin/sh<br />
#auto create script using kickstart</p>
<p>vpsname=$1<br />
xenvg=&#8221;xen&#8221;<br />
sysmem=1024<br />
tmp=/tmp/xentmp</p>
<p>if [ ! "$vpsname" ]; then<br />
        echo &#8220;Syntax: $0 vps_name&#8221;<br />
        exit<br />
elif [ ! -b /dev/$xenvg/$vpsname ]; then<br />
        echo &#8220;No block device: /dev/$xenvg/$vpsname&#8221;<br />
        exit 1<br />
fi</p>
<p>#paravirt<br />
#works<br />
virt-install -p &#8211;location=http://x.x.x.x/centos52-32 &#8211;noautoconsole &#8211;file=/dev/$xenvg/$vpsname &#8211;name=$vpsname &#8211;ram=$sysmem &#8211;vnc -x &#8220;ks=http://x.x.x.x/kickstart/xen-guest.ks&#8221; $2</p>
<p>#hvm<br />
#still working on it</p>
<p>#qemu-kvm<br />
#doesn&#8217;t yet work</p>
<p>#create old-style xm config file<br />
sleep 2<br />
xm list &#8211;long $vpsname &gt; $tmp<br />
sed &#8217;s/(//g;s/)//g&#8217; $tmp &gt; $tmp.1<br />
uuid=`grep -m 1 uuid $tmp.1 | awk &#8216;{print $2}&#8217;`<br />
mac=`grep mac $tmp.1 | awk &#8216;{print $2}&#8217;`</p>
<p>( cat &lt; /etc/xen/$vpsname</p>
<p>(i&#8217;m hoping none of that gets eaten)  You can probably replace that elif block to do an lvcreate automatically for you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
