<?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>Cymen&#039;s Blog &#187; Xen</title>
	<atom:link href="http://blog.cymen.org/category/xen/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cymen.org</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 17:53:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Prgmr.com Virtual Private Server</title>
		<link>http://blog.cymen.org/2009/11/23/prgmr-com-virtual-private-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=prgmr-com-virtual-private-server</link>
		<comments>http://blog.cymen.org/2009/11/23/prgmr-com-virtual-private-server/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 17:23:09 +0000</pubDate>
		<dc:creator>Cymen</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://blog.cymen.org/?p=106</guid>
		<description><![CDATA[I&#8217;ve switched from a Virtual Private Server hosted at Gandi.net in France to one hosted by Prgmr.com in California. I switched because the prices increased at Gandi.net after the beta and the latency was beginning to get annoying (from Wisconsin, USA). Prgmr.com is attractive because the prices are very reasonable and the RAM allocation for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve switched from a Virtual Private Server hosted at Gandi.net in France to one hosted by Prgmr.com in California. I switched because the prices increased at Gandi.net after the beta and the latency was beginning to get annoying (from Wisconsin, USA). Prgmr.com is attractive because the prices are very reasonable and the RAM allocation for the price generous. I&#8217;m paying about 1/2 &#8211; 2/3 of the Gandi price but getting twice the RAM and disk space. The one thing that Gandi did have going for it is that the bandwidth was unmetered (but capped). However, for my purposes, the Prgmr model of X GB per month is not an issue.</p>
<p>The setup process was quick and the VPS is performing great with my minimal usage. I&#8217;m happy with the switch and would definitely recommend considering Prgmr as a VPS provider. I have no need for a high end VPS at this time but when I do, the options at Prgmr will definitely be the the first I&#8217;ll consider.</p>
<p>On a final note, at first I attributed the slow console feel of the VPS at Gandi to latency but after comparing the feel between Gandi and Prgrmr and the latency figures, I&#8217;d put some of the Gandi slow down to low CPU allocation for the single slice VPS offering. I suspect Prgmr is more generous with not only the RAM but the CPU slices which is excellent for those looking for a well performing but small VPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cymen.org/2009/11/23/prgmr-com-virtual-private-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian testing, Xen and &#8220;Error: Boot loader didn&#8217;t return any data!&#8221;</title>
		<link>http://blog.cymen.org/2009/11/01/debian-testing-xen-and-error-boot-loader-didnt-return-any-data/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debian-testing-xen-and-error-boot-loader-didnt-return-any-data</link>
		<comments>http://blog.cymen.org/2009/11/01/debian-testing-xen-and-error-boot-loader-didnt-return-any-data/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 09:54:58 +0000</pubDate>
		<dc:creator>Cymen</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://blog.cymen.org/?p=95</guid>
		<description><![CDATA[I wanted to use Debian testing in a Xen DomU but after upgrading (including grub), &#8220;xm create &#8221; no longer worked. It failed with the error: Error: Boot loader didn't return any data! I followed the suggestion of running &#8220;pygrub /path/to/xen/disk&#8221; but each of my DomU get a chunk of LVM disk. Within the LVM [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to use Debian testing in a Xen DomU but after upgrading (including grub), &#8220;xm create <DomU Name>&#8221; no longer worked. It failed with the error:</p>
<p><code>Error: Boot loader didn't return any data!</code></p>
<p>I followed the suggestion of running &#8220;pygrub /path/to/xen/disk&#8221; but each of my DomU get a chunk of LVM disk. Within the LVM logical volume, the DomU OS partitions the disk however it wants. I need to get at one of the partitions inside the LVM from the Dom0 or Xen host OS. To do this, get <b>kpartx</b> and run it like so:</p>
<p>kpartx /dev/physical_volume_name/logical_volume_name</p>
<p>After running that, I found my disk partitions from the DomU logical volume at /dev/mapper/logical_volume_name1, 2, 3, etc. So I could then run:</p>
<p>pygrub /dev/mapper/logical_volume_name1</p>
<p>That error out again but it was line 68 of GrubConf.py:</p>
<p><code>    def set_disk(self, val):<br />
        val = val.replace("(", "").replace(")", "")<br />
        self._disk = int(val[2:])</code></p>
<p>I added the Python lines to print out the value of <b>val</b> and found that it was getting set to an empty string. Then I simply mounted the now accessible root partition:</p>
<p>mount -t ext3 /dev/pv/lv1 /mnt/tmp</p>
<p>And editing the &#8230;/boot/grub/menu.lst revealed the debian upgraded and spewed some cruft into the file. Cleaning that up resulted in a working DomU. The upgrade probably mentioned this but I glazed over it. I suspect I&#8217;m not the only one so it&#8217;s worth a check.</p>
<p>Finding <b>kpartx</b> made it worthwhile&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cymen.org/2009/11/01/debian-testing-xen-and-error-boot-loader-didnt-return-any-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minimizing Windows Server 2003 CPU usage as a DomU</title>
		<link>http://blog.cymen.org/2009/06/27/minimizing-windows-server-2003-cpu-usage-as-a-domu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=minimizing-windows-server-2003-cpu-usage-as-a-domu</link>
		<comments>http://blog.cymen.org/2009/06/27/minimizing-windows-server-2003-cpu-usage-as-a-domu/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 20:58:57 +0000</pubDate>
		<dc:creator>Cymen</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://blog.cymen.org/?p=75</guid>
		<description><![CDATA[This is a work in progress and I&#8217;m still testing some things but here are a few ideas: Use the GPL Paravirtualization drivers Disable the login screen saver]]></description>
			<content:encoded><![CDATA[<p>This is a work in progress and I&#8217;m still testing some things but here are a few ideas:</p>
<ol>
<li>Use the GPL Paravirtualization drivers</li>
<li><a href="http://support.microsoft.com/kb/185348">Disable the login screen saver</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.cymen.org/2009/06/27/minimizing-windows-server-2003-cpu-usage-as-a-domu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen and DomU Clone</title>
		<link>http://blog.cymen.org/2009/06/27/xen-and-domu-clone/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xen-and-domu-clone</link>
		<comments>http://blog.cymen.org/2009/06/27/xen-and-domu-clone/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 20:11:43 +0000</pubDate>
		<dc:creator>Cymen</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://blog.cymen.org/?p=70</guid>
		<description><![CDATA[This basic approach works: Power down target system. Create another logical volume the same size as the target system. dd if=/dev/$PV/$TARGET of=/dev/$PV/$CLONE bs=1M Copy Xen config and modify with clone details Power up clone, change hostname and any other relevant details Power up target For a 32 GB LV, dd took just over 11 minutes [...]]]></description>
			<content:encoded><![CDATA[<p>This basic approach works:</p>
<ol>
<li> Power down target system.
<li> Create another logical volume the same size as the target system.</li>
<li> dd if=/dev/$PV/$TARGET of=/dev/$PV/$CLONE bs=1M</li>
<li> Copy Xen config and modify with clone details</li>
<li> Power up clone, change hostname and any other relevant details</li>
<li> Power up target</li>
</ol>
<p>For a 32 GB LV, <strong>dd</strong> took just over 11 minutes to dump the data from the target volume to the clone volume on my hardware. This was for a Windows Server 2003 clone using DHCP so the only thing I changed was the host name (so far).</p>
<p>I&#8217;d think the LVM snapshot method might be able to do this more intelligently but I couldn&#8217;t quite grok it right away and this method worked.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cymen.org/2009/06/27/xen-and-domu-clone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen and Windows Server (2003)</title>
		<link>http://blog.cymen.org/2009/06/27/xen-and-windows-server-2003/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xen-and-windows-server-2003</link>
		<comments>http://blog.cymen.org/2009/06/27/xen-and-windows-server-2003/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 19:19:59 +0000</pubDate>
		<dc:creator>Cymen</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://blog.cymen.org/?p=64</guid>
		<description><![CDATA[I got a Windows Server 2003 Xen DomU up and running within a couple hours. The configuration was fairly simple but the issue I ran into with Debian Lenny was that that Xen defaults to xenbr0 as the network bridge interface while eth0 is the correct one to to use. After modifying /etc/xen/xend-config.sxp (actually, I [...]]]></description>
			<content:encoded><![CDATA[<p>I got a Windows Server 2003 Xen DomU up and running within a couple hours. The configuration was fairly simple but the issue I ran into with Debian Lenny was that that Xen defaults to xenbr0 as the network bridge interface while eth0 is the correct one to to use. After modifying /etc/xen/xend-config.sxp (actually, I first stated the bridge explicitly in my DomU configuration), networking worked and the VM fired up with the regular install screens. The integration with VNC works very well.</p>
<p>The next step after all the OS updates was to install the Windows paravirtual drivers. I used <a href="http://www.meadowcourt.org/downloads/gplpv_fre_wnet_x86_0.10.0.69.msi">gplpv_fre_wnet_x86_0.10.0.69.msi</a> and the VM rebooted after install without issue except for the IntelIde drivers/service failing to load (guessing it just needs to be disabled &#8212; not critical as far as I can tell).</p>
<p>So far, with my DomU installs, I&#8217;ve been doing it the hard way by which I mean I&#8217;ve been reinstalling from scratch with each new DomU. Next on the list is to clone a VM using LVM snapshots which should be much easier (and reduce all that update downloading and configuration).</p>
<p>Update: <a href="http://www.nabble.com/Problems-with-GPLPV-driver-0.10.x-td23155845.html">Indeed, the IntelIde startup error is apparently fixed (hidden properly) in Xen 3.4</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cymen.org/2009/06/27/xen-and-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen, LVM and DomU ext3 resizing&#8230;</title>
		<link>http://blog.cymen.org/2009/06/14/xen-lvm-and-domu-ext3-resizing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xen-lvm-and-domu-ext3-resizing</link>
		<comments>http://blog.cymen.org/2009/06/14/xen-lvm-and-domu-ext3-resizing/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 22:24:49 +0000</pubDate>
		<dc:creator>Cymen</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://blog.cymen.org/?p=58</guid>
		<description><![CDATA[I&#8217;m using a Debian 5 (Lenny) host with Xen 3.2 from packages with software RAID and LVM. At the moment, all of my guests (DomU) are also Debian 5. To resize a guest filesystem, in Dom0 resize the logical volume: lvextend -L +100G /dev/$PV/$LV In guest (DomU), resize the partition by deleting and creating again. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using a Debian 5 (Lenny) host with Xen 3.2 from packages with software RAID and LVM. At the moment, all of my guests (DomU) are also Debian 5. To resize a guest filesystem, in Dom0 resize the logical volume:</p>
<p>lvextend -L +100G /dev/$PV/$LV</p>
<p>In guest (DomU), resize the partition by deleting and creating again. The trick is to make sure the first block stays. With the default steps on the Debian netboot installer with the &#8220;all in one&#8221; option, it makes these partitions:</p>
<p>/dev/xvda1 as / (1st primary partition)<br />
/dev/xdva2 as extended partition<br />
/dev/xvda5 as swap</p>
<p>So I unmounted the swap (swapoff /dev/xvda5), deleted all of the partitions, recreated /dev/xvda1 as the new size marked bootable leaving just enough room for the swap partition, and added the small swap partition. Then edit /etc/fstab to point to the new device (I changed swap to be on /dev/xvda2), reboot and do &#8220;resize2fs /dev/xvda1&#8243;. I tried doing this without the reboot but resize2fs didn&#8217;t want to see the new partition sizes. I used cfdisk for the partitioning so maybe it would work with fdisk or parted.</p>
<p>I did forget one detail &#8212; I rebooted the DomU after resizing the LVM volume in Dom0. Mentioning just in case that is required. I&#8217;ll find out next time I need to add more space to a logical volume.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cymen.org/2009/06/14/xen-lvm-and-domu-ext3-resizing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Xen with Debian Dom0 and Open Solaris DomU (Guest)</title>
		<link>http://blog.cymen.org/2009/06/07/xen-with-debian-dom0-and-open-solaris-domu-guest/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xen-with-debian-dom0-and-open-solaris-domu-guest</link>
		<comments>http://blog.cymen.org/2009/06/07/xen-with-debian-dom0-and-open-solaris-domu-guest/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 01:35:40 +0000</pubDate>
		<dc:creator>Cymen</dc:creator>
				<category><![CDATA[Open Solaris]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://blog.cymen.org/?p=40</guid>
		<description><![CDATA[Download &#8220;osol-0906-x86.iso&#8221; and mount it using loopback (mount -o loop -t iso9660 /root/osol-0906-x86.iso /tmp/MOUNT_POINT). Copy off two files required for the install. One site suggested /usr/lib/xen-solaris: mkdir /usr/lib/xen-solaris cp /tmp/MOUNT_POINT//mnt/tmp/platform/i86xpv/kernel/unix /usr/lib/xen-solaris/unix-0906 cp /mnt/MOUNT_POINT/boot/x86.microroot /usr/lib/xen-solaris/x86.microroot-0906 The Xen DomU configuration: name = 'open-solaris' memory = '512' disk = [ 'file:/root/osol-0906-x86.iso,6:cdrom,r', 'phy:/dev/thor/open-solaris,xvda,w' ] vif = [ '' ] [...]]]></description>
			<content:encoded><![CDATA[<p>Download &#8220;<a href="http://www.opensolaris.com/get/index.jsp#mirrors">osol-0906-x86.iso</a>&#8221; and mount it using loopback (mount -o loop -t iso9660 /root/osol-0906-x86.iso /tmp/MOUNT_POINT). Copy off two files required for the install. One site suggested /usr/lib/xen-solaris:<br />
<code><br />
mkdir /usr/lib/xen-solaris<br />
cp /tmp/MOUNT_POINT//mnt/tmp/platform/i86xpv/kernel/unix /usr/lib/xen-solaris/unix-0906<br />
cp /mnt/MOUNT_POINT/boot/x86.microroot /usr/lib/xen-solaris/x86.microroot-0906<br />
</code></p>
<p>The Xen DomU configuration:<br />
<code><br />
name = 'open-solaris'<br />
memory = '512'<br />
disk = [ 'file:/root/osol-0906-x86.iso,6:cdrom,r', 'phy:/dev/thor/open-solaris,xvda,w' ]<br />
vif = [ '' ]</p>
<p>kernel = '/usr/lib/xen-solaris/unix-0906'<br />
ramdisk = '/usr/lib/xen-solaris/x86.microroot-0906'</p>
<p>on_shutdown = 'destroy'<br />
on_reboot = 'destroy'<br />
on_crash = 'destroy'<br />
extra = '/platform/i86xpv/kernel/unix - nowin -B install_media=cdrom'<br />
</code></p>
<p>Then kick off the VM:<br />
<code><br />
xm create -c open-solaris.cfg<br />
</code></p>
<p>Now Open Solaris should boot up. These accounts are preconfigured:<br />
Username: jack<br />
Password: jack<br />
Root password: opensolaris</p>
<p>The installer is GUI-only. The installer appears to kick off a vnc instance (or Xen does, haven&#8217;t looked into who/what/where but xenstore has the VNC password but the guest has the vnc process?). To get the VNC password:<br />
<code><br />
xenstore-ls|grep password<br />
</code></p>
<p>To get the IP of Open Solaris:<br />
<code><br />
ifconfig -a<br />
</code></p>
<p>Now you can VNC to the IP address, use the VNC password and kick off the install.</p>
<p>Sites referenced:</p>
<p><a href="http://www.tardis.ed.ac.uk/index.php/OpenSolaris_Xen_domU">http://www.tardis.ed.ac.uk/index.php/OpenSolaris_Xen_domU</a><br />
<a href="http://blogs.sun.com/levon/entry/opensolaris_2008_11_as_a">http://blogs.sun.com/levon/entry/opensolaris_2008_11_as_a</a><br />
<a href="http://blogs.sun.com/levon/entry/opensolaris_2008_11_guest_domain">http://blogs.sun.com/levon/entry/opensolaris_2008_11_guest_domain</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cymen.org/2009/06/07/xen-with-debian-dom0-and-open-solaris-domu-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

