<?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>R.I.Pienaar &#187; virtualization</title>
	<atom:link href="http://www.devco.net/archives/tag/virtualization/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devco.net</link>
	<description>www.devco.net</description>
	<lastBuildDate>Sat, 28 Aug 2010 22:30:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CentOS 5.3</title>
		<link>http://www.devco.net/archives/2009/04/04/centos_53.php</link>
		<comments>http://www.devco.net/archives/2009/04/04/centos_53.php#comments</comments>
		<pubDate>Sat, 04 Apr 2009 12:52:03 +0000</pubDate>
		<dc:creator>R.I. Pienaar</dc:creator>
				<category><![CDATA[Front Page]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://wp.devco.net/?p=446</guid>
		<description><![CDATA[CentOS 5.3 was released on the 1st of April, I&#8217;ve since updated a whole lot of my machines to this version and been very happy. There are a few gotchas, mostly well covered in the release notes, the only other odd thing I found was that /etc/snmp/snmpd.options has now moved to /etc/sysconfig/snmpd.options ditto for snmptrapd.options.&#160; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.3">CentOS 5.3 was released on the 1st of April</a>, I&#8217;ve since updated a whole lot of my machines to this version and been very happy.</p>
<p>There are a few gotchas, mostly well covered in the release notes, the only other odd thing I found was that <i>/etc/snmp/snmpd.options</i> has now moved to <i>/etc/sysconfig/snmpd.options</i> ditto for snmptrapd.options.&nbsp; It&#8217;s a bit of a weird change, while it makes the SNMPD config a bit more like the rest of the RedHat system, it still is different, you&#8217;d think based on all the other files in <i>/etc/sysconfig</i> that this one would have been called <i>/etc/sysconfig/snmpd</i> rather than have the .options bit tacked on.</p>
<p>Other changes that I noticed is that Xen is behaving a lot better now on suspends, if I reboot a dom0 and then bring it back up the domU&#8217;s resume where they were and unlike the past the clocks do not go all over the place, in fact I&#8217;ve even seen SSH sessions stay up between reboots.&nbsp; Though SNMP still sometimes stop working after resume.</p>
<p>The general overall look of the distribution is much better, the artwork has been redone through out and now forms a nice cohesive look and feel through out.</p>
<p>While investigating the cause of the /etc/snmp/snmpd.options file mysteriously going missing I once again had the miss fortune of having to deal with #centos on freenode.&nbsp; It really is one of the most hostile channels I&#8217;ve come across in the opensource world, people are just outright arseholes, every one including the project leaders.&nbsp; </p>
<p>Immediately assuming you have no clue, don&#8217;t know what you&#8217;re talking about and generally just treating everyone like shit who dare suggest something is broken with the usual &#8216;works for me&#8217; &#8216;read the docs&#8217; or &#8216;its in the release notes&#8217; or &#8216;looking at the source will not help&#8217; style responses to every question.&nbsp; When as it turns out every one of those remarks were just plain wrong. No it didn&#8217;t work for them, their files also got moved by the installer.&nbsp; No it was not in the docs or release notes.&nbsp; No looking at the source would have helped a lot more than they did because I would have then been able to see for myself that the post install of the RPM moves the files etc.&nbsp; It took literally over a hour to get even one of them to actually make the effort to be helpful compared to about 2 minutes it would have taken if the SRPMs were available at release time.</p>
<p>I think they&#8217;re really doing the project a big disservice by not sorting out the irc channel in fact they actively defend and even promote the hostility shown there, in contrast to the puppet irc channel for instance it really is a barbaric bit of the 3rd world.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devco.net/archives/2009/04/04/centos_53.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful Xen Utilities</title>
		<link>http://www.devco.net/archives/2008/02/13/useful_xen_utilities.php</link>
		<comments>http://www.devco.net/archives/2008/02/13/useful_xen_utilities.php#comments</comments>
		<pubDate>Wed, 13 Feb 2008 20:53:15 +0000</pubDate>
		<dc:creator>R.I. Pienaar</dc:creator>
				<category><![CDATA[Front Page]]></category>
		<category><![CDATA[Usefull Things]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://wp.devco.net/?p=419</guid>
		<description><![CDATA[Today on freshmeat I noticed 2 useful utilities for anyone running Xen Servers.&#160; The first is called Virt-top it is a easier to read top like tool than xm top that shows all virtual machines memory and CPU usage in a nice display including totals etc: The other &#8211; Virt-P2V &#8211; it&#8217;s a CD Image [...]]]></description>
			<content:encoded><![CDATA[<p>Today on <a href="http://freshmeat.net/">freshmeat</a> I noticed 2 useful utilities for anyone running Xen Servers.&nbsp; </p>
<p>The first is called <a href="http://et.redhat.com/%7Erjones/virt-top/">Virt-top</a> it is a easier to read top like tool than <i>xm top</i> that shows all virtual machines memory and CPU usage in a nice display including totals etc:</p>
<p> <center><img src="http://www.devco.net/images/virt-top.png" /></center><br />The other &#8211; <a href="http://et.redhat.com/%7Erjones/virt-p2v/">Virt-P2V</a> &#8211; it&#8217;s a CD Image that you can boot a physical machine with that will then convert it to a virtual machine for you.&nbsp; It will scp the drive image to a destination of your choice and create a config file to boot it after asking you some questions.&nbsp; I intend to use this to move a VMWare virtual machine to Xen soon, will post here and see how it goes.</p>
<p>Both of these come from a Red Hat employee, with some luck we&#8217;ll see these included in Red Hat Linux soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devco.net/archives/2008/02/13/useful_xen_utilities.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RedHat 5.1 tunable kernel ticks per second</title>
		<link>http://www.devco.net/archives/2008/01/07/redhat_51_tunable_kernel_ticks_per_second.php</link>
		<comments>http://www.devco.net/archives/2008/01/07/redhat_51_tunable_kernel_ticks_per_second.php#comments</comments>
		<pubDate>Mon, 07 Jan 2008 11:30:59 +0000</pubDate>
		<dc:creator>R.I. Pienaar</dc:creator>
				<category><![CDATA[Usefull Things]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://wp.devco.net/?p=411</guid>
		<description><![CDATA[For some time the default clock rate on RedHat machines (and probably others) have been 1000HZ, this is great to keep your mouse moving smooth while something big is happening in the background, but not so great for hosting 10 virtual machines on one poor physical machine as it will have to try and satisfy [...]]]></description>
			<content:encoded><![CDATA[<p>For some time the default clock rate on RedHat machines (and probably others) have been 1000HZ, this is great to keep your mouse moving smooth while something big is happening in the background, but not so great for hosting 10 virtual machines on one poor physical machine as it will have to try and satisfy 10000 ticks per second.</p>
<p>I&#8217;ve been using a guest kernel repository by one of the VMWare users that rebuilds the std CentOS/RedHat kernels with HZ=100 and it&#8217;s been great, chopped massive amounts off my CPU usage on the host.</p>
<p>Now with RedHat 5.1 this is not needed anymore see <a href="http://www.arrfab.net/blog/?p=62">this post</a> for a bit of a graph on the impact and the background.&nbsp; The short of it is, simply append divider=10 to your guest kernel boot parameters and enjoy a much happier host.&nbsp; I found that time keeping also becomes more predictable in the guest.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devco.net/archives/2008/01/07/redhat_51_tunable_kernel_ticks_per_second.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XEN &#8216;No space left on device&#8217; sillyness.</title>
		<link>http://www.devco.net/archives/2007/12/05/xen_no_space_left_on_device_sillyness.php</link>
		<comments>http://www.devco.net/archives/2007/12/05/xen_no_space_left_on_device_sillyness.php#comments</comments>
		<pubDate>Wed, 05 Dec 2007 07:57:57 +0000</pubDate>
		<dc:creator>R.I. Pienaar</dc:creator>
				<category><![CDATA[Front Page]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://wp.devco.net/?p=386</guid>
		<description><![CDATA[Yesterday while trying to get a i386 DomU going on my x86_64 Xen server I ran into some hassles with &#8216;No space left on device&#8217; errors. Anyone who sees that would immediately go for the df command, but it would be futile in this instance. What happens is that the xenstore &#8211; where it stores [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday while trying to get a i386 DomU going on my x86_64 Xen server I ran into some hassles with &#8216;No space left on device&#8217; errors.<br />
Anyone who sees that would immediately go for the <i>df</i> command, but it would be futile in this instance.<br />
What happens is that the xenstore &#8211; where it stores meta files state of the running VMs &#8211; gets corrupt,<br />
You can try and run &#8216;xenstore-control check&#8217; it will also give some b/s answer kind of suggesting all is well, it&#8217;s not, check <i>/var/log/messages</i> and you&#8217;ll see stuff like:</p>
<blockquote><pre>
xenstored: corruption detected by connection 0: \
err No such file or directory: Write  failed
xenstored: clean_store: '/local/domain/0/backend/vbd/16/51712/sectors' is orphaned!
</pre>
</blockquote>
<p>At this point you&#8217;re pretty much screwed, try and reboot and xend won&#8217;t even run, no VM&#8217;s will start.<br />
Fixing it is pretty easy in the end once you&#8217;ve done tons of Googling and found the 2 year old bug in the Xen bugtracker about this exact problem &#8211; complete with the xen guys trying to close it in a routine &#8216;cleanup of tickets&#8217; rather than actually fixing the bug.<br />
First, shut down all things Xen, if you can even boot from a non Xen kernel.  Once you&#8217;re sure its all down just delete <i>/var/lib/xenstored/tdb*</i> and reboot, it should all be fine after that.<br />
You must be sure you don&#8217;t have xenstored running while doing this, else it will write its in-memory corrupted state back to disk when you reboot and it will look like your fix didn&#8217;t work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devco.net/archives/2007/12/05/xen_no_space_left_on_device_sillyness.php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>XEN, Bridging and Hetzner</title>
		<link>http://www.devco.net/archives/2007/10/18/xen_bridging_and_hetzner.php</link>
		<comments>http://www.devco.net/archives/2007/10/18/xen_bridging_and_hetzner.php#comments</comments>
		<pubDate>Thu, 18 Oct 2007 19:38:58 +0000</pubDate>
		<dc:creator>R.I. Pienaar</dc:creator>
				<category><![CDATA[Front Page]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://wp.devco.net/?p=375</guid>
		<description><![CDATA[I&#8217;ve a machine at Hetzner DE and have been pretty happy with it and their service in general. I used to run VMWare Server on it for virtualisation but have become a bit annoyed at the totally unfixable clock problems that seems to be the norm with VMWare guests. First the good news. I decided [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve a machine at <a href="http://www.hetzner.de/">Hetzner DE</a> and have been pretty happy with it and their service in general.  I used to run <a href="http://www.vmware.com/server/">VMWare Server</a> on it for virtualisation but have become a bit annoyed at the totally unfixable clock problems that seems to be the norm with VMWare guests.<br />
First the good news.  I decided to give <a href="http://xen.xensource.com/">XEN</a> a try on it, same setup same spec virtual machine on the host doing the same workload as before, below a CPU usage graph before and after, enough said.<br />
<center><img src="http://www.devco.net/images/vmware-xen-cpu.png"></center><br />
I know it&#8217;s not the same technology etc, but XEN VMs will do what I need now so it seems a good option for me.<br />
Now for the bad, I had a few problems:</p>
<ul>
<li>Hetzner uses a DHCP/TFTP rescue system that is very useful, if I make a mistake in a network config for example I can sort it out via this.  XEN by default works in a bridged mode that will change the MAC address for your eth0 to FE:FF:FF:FF:FF:FF.  The problem is that Hetzner uses Realtek NICs which as most people know are uber crap.  When the machine gets a normal alt-ctrl-del or other reboot other than a power cycle the NIC does not reset to the original MAC.  So if I get a crash I wont ever get to the rescue system.   This cost me 119 Euro this weekend in support fees.</li>
<li>In the past I had a few crashes on this machine, adding <i>acpi=force irqpoll noapic</i> to the kernel command line solved it, however the XEN kernel won&#8217;t poll my drives properly without removing the <i>noapic</i> bit, so I hope my machine doesn&#8217;t become unstable all of a sudden.</li>
</ul>
<p>I am using <a href="http://www.centos.org/">CentOS 5.0</a> on this machine that came with XEN out of the box so installation was dead easy, creating new VM&#8217;s are easy etc and very importantly I can manage the VM&#8217;s all through text consoles which was a pain for me under VMWare as I don&#8217;t use Windows or Linux, getting console access was tough.<br />
So about the MAC address, this turned out incredibly easy to fix by turning the machine into a routed network setup instead of a bridge, so previously the network was bridging eth0 with the vif&#8217;s from the virtual machines onto the wire, this required the MAC address of eth0 to change.  Moving to a routed setup required the following changes:<br />
<b>/etc/sysctl.conf</b>:</p>
<blockquote><p>
net.ipv4.ip_forward = 1<br />
net.ipv4.conf.all.proxy_arp = 1
</p></blockquote>
<p>This basically enables routing and sets up proxy arp across all interfaces, this is to work with Hetzner&#8217;s routing where they don&#8217;t actually add a route to my subnet over my eth0 but over to the switch is connected too.  Proxy ARP sorts this out.<br />
<b>/etc/xen/xend-config.sxp</b>:</p>
<blockquote><p>
#(network-script network-bridge)<br />
#(vif-script vif-bridge)<br />
(vif-script     vif-route)<br />
(network-script network-route)
</p></blockquote>
<p>This points XEN to its provided route scripts rather than the bridge ones.<br />
Reboot virtual machines and thats that.  Machine is perfectly happy, routing traffic and MAC address is correct.<br />
Bonus is now all traffic gets routed through my Dom0 and I can now do all the firewalling there outside of my DomU&#8217;s which enhances security as it is essentially a border firewall.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devco.net/archives/2007/10/18/xen_bridging_and_hetzner.php/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Resizing XP Boot Partition &#8211; VMWare Saves The Day</title>
		<link>http://www.devco.net/archives/2007/02/07/resizing_xp_boot_partition_-_vmware_saves_the_day.php</link>
		<comments>http://www.devco.net/archives/2007/02/07/resizing_xp_boot_partition_-_vmware_saves_the_day.php#comments</comments>
		<pubDate>Wed, 07 Feb 2007 14:50:40 +0000</pubDate>
		<dc:creator>R.I. Pienaar</dc:creator>
				<category><![CDATA[Usefull Things]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://wp.devco.net/?p=395</guid>
		<description><![CDATA[I&#8217;m running a combination XP and OS X machines at home linked together using Synergy. I&#8217;ve been contemplating moving away from XP so thought I&#8217;ll give Ubuntu another go. My drives are pretty full except my OS Boot drive, lots of space there so I thought I&#8217;ll resize it and put Ubuntu at the end [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running a combination XP and OS X machines at home linked together using <a href="http://synergy2.sf.net/">Synergy</a>.  I&#8217;ve been contemplating moving away from XP so thought I&#8217;ll give Ubuntu another go.<br />
My drives are pretty full except my OS Boot drive, lots of space there so I thought I&#8217;ll resize it and put Ubuntu at the end in a small partition while I test things out.  It sounded like a good idea at the time but it turned out to be pretty disastrous.<br />
I used the <a href="http://gparted.sourceforge.net/livecd.php">GParted LiveCD</a> to do the resizing after first running a defrag on the drive.  On the surface everything went fine but the XP wouldn&#8217;t boot.<br />
I admit not reading up enough about the process but it turns out after doing the resize with GParted you&#8217;ll need to force <i>chkdsk</i> the boot disk, the only way to do this involves using the XP Setup CD and it&#8217;s recovery console.<br />
My machine has a SATA drive that isn&#8217;t directly supported by the XP Setup disk so I need to use a Floppy driver disk, I don&#8217;t even have a floppy drive anymore so I was pretty much stuck.<br />
I installed <a href="http://www.ubuntu.com/desktop">Ubuntu 6.10</a> in the free space, it worked a charm and I soon had at least something back up to get going but still needed to chkdsk the XP partition.  I knew the files were there &#8211; Ubuntu mounted it on the Desktop &#8211; so it was all good, except something small somewhere causing grief.<br />
I was faced with either buying a Floppy drive and Floppy cables, and finding blank floppies somewhere or finding another solution.  Solution came in the form of <a href="http://www.vmware.com/products/server/">VMWare Server</a>.<br />
VMWare supports mounting RAW partitions into a VM, so in theory I should be able to create a virtual instance that boots my XP Partition, I tried this and ended up with a Blue Screen and immediate reboot.  The problem being that my SATA drive shows up as a SCSI drive in XP under VMWare and my XP did not have the right drivers to load the drive and boot from it, so still I needed to chkdsk the drive.<br />
I took my XP CD, downloaded the VMWare Server drivers and mounted that as a floppy into the VM, booted from the CD and loaded the drivers into the CD, ran the recovery console and got a C:\ prompt.  Here I was able to chkdsk the stricken partition and eventually boot right into XP, problem solved.<br />
I took this one step further by creating a new hardware profile in my XP box once it was running, loaded in the VMWare SCSI drivers and now I can boot my XP into fully working state under Ubuntu using VMWare.<br />
So, the short of it, yes you can resize your XP Pro Boot disks, even NTFS ones using Open Source tools, but you need to be 100% sure you can get your recovery console up and running to run chkdsk afterwards, my machine is now happy again and booting Ubuntu and XP.<br />
VMware Kicks Arse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devco.net/archives/2007/02/07/resizing_xp_boot_partition_-_vmware_saves_the_day.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intel Virtualisation Technology</title>
		<link>http://www.devco.net/archives/2006/04/06/intel_virtualisation_technology.php</link>
		<comments>http://www.devco.net/archives/2006/04/06/intel_virtualisation_technology.php#comments</comments>
		<pubDate>Thu, 06 Apr 2006 19:25:02 +0000</pubDate>
		<dc:creator>R.I. Pienaar</dc:creator>
				<category><![CDATA[Usefull Things]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://wp.devco.net/?p=350</guid>
		<description><![CDATA[I&#8217;ve been a fan of virtualization for some time, been a very early user of VMWare years ago in fact version 2 of my iScan appliction was written entirely inside VMWare while stuck in a hotel in Athens around 2001. Things since then has come a long way especially on Intel hardware. Intel has introduced [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a fan of virtualization for some time, been a very early user of VMWare years ago in fact version 2 of my iScan appliction was written entirely inside VMWare while stuck in a hotel in Athens around 2001.  Things since then has come a long way especially on Intel hardware.<br />
Intel has introduced their <a href="http://www.intel.com/technology/computing/vptech/">Virtualization Technology</a> extensions on their recent chips to enable the CPU to run multiple operating systems on the actual CPU, much like main frames have been able to do for ages.</p>
<blockquote><p>
Virtualization enhanced by Intel Virtualization Technology will allow a platform to run multiple operating systems and applications in independent partitions. With virtualization, one computer system can function as multiple “virtual” systems. With processor and I/O enhancements to Intel&#8217;s various platforms, Intel Virtualization Technology can improve the performance and robustness of today&#8217;s software-only virtual machine solutions.
</p></blockquote>
<p>I&#8217;ve been very excited to get my hands on both hardware and software together that lets me explore this exciting technology and today that was delivered in the form of my Apple iMac Core Duo machine running <a href="http://www.parallels.com/en/products/workstation/">Parallels Workstation</a>.</p>
<blockquote><p>
Parallels Workstation 2.0 is the first desktop virtualization solution to include a lightweight hypervisor, a mature technology originally developed in the 1960s to maximize the power of large mainframes. Hypervisor technology dramatically improves virtual machine stability, security and performance by using a thin layer of software, inserted between the machine&#8217;s hardware and the primary operating system, to directly control some of the host machine&#8217;s hardware profiles and resources. It not only makes Parallels Workstation-powered virtual machines secure, stable and efficient, but also empowers users to immediately realize the benefits associated with Intel VT hardware virtualization architecture.
</p></blockquote>
<p>The good thing is it works on OS X on Intel hardware and allows you to run most operating systems.  I grabbed a copy of FreeBSD 6.0 and immediately knew it was fast, only later did I realise how fast.<br />
I wanted to see if I can get my 2nd Core to appear as a 2nd CPU in the guest system so I built the included GENERIC SMP kernel, the build time was just short of 17 minutes.  The VM was allocated 256Mb RAM and was running on my 1800mhz Intel iMac.  At the time I had Thunderbird, Deerpark, NetNewsWire, Terminal, Adium, Activity Monitor and MS Word (under Rosetta) open.<br />
I then took my AMD 1800Mhz with 512Mb RAM machine also running FreeBSD 6.0 and did the same build, the build time on that was 18 minutes.<br />
I realise this isn&#8217;t the most scientific of tests, but it far exceeds any performance indication on any VM I&#8217;ve ever seen, I&#8217;m really looking forward to one day having a Bladecenter full of machines capable of running this technology and doing a full VMWare based architecture, the advantages that virtualization brings to the table is staggering.  If you ever get a chance to see a real demo of VMWare&#8217;s enterprise products I&#8217;d strongly suggest you jump at the oppertunity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devco.net/archives/2006/04/06/intel_virtualisation_technology.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
