<?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>Scienco.org &#187; Virtualization</title>
	<atom:link href="http://www.scienco.org/tag/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scienco.org</link>
	<description>Life&#039;s too short to be unenthusiastic</description>
	<lastBuildDate>Thu, 07 Jul 2011 13:47:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<atom:link rel="next" href="http://www.scienco.org/tag/virtualization/feed/?page=2" />

		<item>
		<title>Xen on Ubuntu Server 8.04 (Hardy Heron) with complex disk setup</title>
		<link>http://www.scienco.org/2008/xen-on-ubuntu-server-804-hardy-heron-with-complex-disk-setup/</link>
		<comments>http://www.scienco.org/2008/xen-on-ubuntu-server-804-hardy-heron-with-complex-disk-setup/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 16:58:43 +0000</pubDate>
		<dc:creator>Mikkel Meyer Andersen</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[Hetzner]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[xfs]]></category>

		<guid isPermaLink="false">http://www.scienco.org/?p=58</guid>
		<description><![CDATA[This is a tutorial about how to use Ubuntu Server 8.04 as dom0 (host) for Xen, i.e. how to install Xen on Ubuntu Server. In a later post I'll show how to install domUs (guests). The whole setup is done with a rather complex disk configuration using both raid 1 (mirroring) and LVM. It requires [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial about how to use Ubuntu Server 8.04 as dom0 (host) for Xen, i.e. how to install Xen on Ubuntu Server. In a later post I'll show how to install domUs (guests). The whole setup is done with a rather complex disk configuration using both raid 1 (mirroring) and LVM. It requires some knowledge about Xen (e.g. I'll not try to convince you to use Xen - I assume it's already your plan and you had read of all the advantages it gives you <img src='http://www.scienco.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ).<span id="more-58"></span></p>
<h3>Disk-layout considerations</h3>
<p>In order to use Windows with Xen you also need to have Intel VT or AMD-V - and have it enabled, too. My "metal" is a AMD-V enabled CPU, 4 GB RAM, 2 x 400 GB SATA II disks, and a 1 GBit NIC (network interface card) - a DS5000 at Hetzner. I've chosen to have a rather complex disk setup based on a lot of reading different places at the web (and for fun, too), e.g. [1], [2], [3], and [4]. First of all I want protection (raid 1 - mirroring) because I'm going to use the system in a production environment, but I don't want to pay the money for a real hardware RAID controller, hence I've decided to use software raid, i.e. mdadm. I know it's expensive in CPU-time, but I'm willing to "pay" for the protection this way. I want LVM for the domUs because it among other things enables me to take snapshots and easily grow/shrink the size of the disk.</p>
<p>The only thing I don't want mirrored, is the swap-partitions. I know it might cause the system to crash if a disk fails, but only data in memory can be lost this way. If a swap-partition crashes it's likely because the disk is dead, and as a back-up I want extra swap-partitions on the other disk so that I can use those until a new disk is installed. I don't want the swap-partitions to be LVM - only normal partitions that can be mapped directly to domUs through Xen. Because of my metal, it's not likely that I'm going to have more than 5 domUs running, hence I need 12 swap-partitions in total (the 5 plus 1 for dom0 and doubleing it to encounter the extra ones if a disk crashes). Because I don't know if the memory of dom0 or a domU is going to be ballooned (resized - and yes, among many other things Xen i capable of that), I've decided to go with a size of 4GB of all the swap-partitions. It may be a little oversized, but better safe than sorry and I have plenty of disk space for my needs.</p>
<p>Of course the root file system of dom0 needs to be mirrored, but I don't want to use LVM with this, because I'm not going to use any of the advantages with dom0. So this is going to be an ordinary raid 1 xfs partition. The rest of the disk space is used to make a VG (volume group) in LVM, and this pool can then be used to make LV (logical volumes) to disks for the domUs.</p>
<p>At this point please be aware that I'm going to map a LV to a domU to its root file system and a "normal" partition to its swap. Xen gives other possibilities, e.g. map a file on dom0 to the root file system of a domU or simply use a "normal" partition. All three choices have advantages and disadvantages; I've made my mind up and chosen to use the LVM-approach. I've also chosen to use xfs instead of ext3, but this choice really makes no difference in this tutorial: if you like ext3 better, then please use it.</p>
<h3>Disk layout</h3>
<p>If the two psysical 400GB disks are called /dev/sda and /dev/sdb, the disk-layout can be depicted as follows:</p>
<pre>disk	partition	size	usage/mount		pri/log
---------------------------------------------------------------
/dev/sda
	/dev/sda1	  1GB	/dev/md0 (bootable)	primary
	/dev/sda2	 20GB	/dev/md1 (dom0 -&gt; /)	primary
	/dev/sda5	  4GB	swap dom0		logical
	/dev/sda6	  4GB	dnu* (swap domU1)	logical
	/dev/sda7	  4GB	dnu* (swap domU2)	logical
	/dev/sda8	  4GB	dnu* (extra swap domU3)	logical
	/dev/sda9	  4GB	dnu* (extra swap domU4)	logical
	/dev/sda10	  4GB	dnu* (extra swap domU5)	logical
	/dev/sda11	 rest	/dev/md2 (LVM)		logical

/dev/sdb
	/dev/sdb1	  1GB	/dev/md0 (bootable)	primary
	/dev/sdb2	 20GB	/dev/md1 (dom0 -&gt; /)	primary
	/dev/sdb5	  4GB	dnu* (extra swap dom0)	logical
	/dev/sdb6	  4GB	dnu* (extra swap domU1)	logical
	/dev/sdb7	  4GB	dnu* (extra swap domU2)	logical
	/dev/sdb8	  4GB	dnu* (swap domU3)	logical
	/dev/sdb9	  4GB	dnu* (swap domU4)	logical
	/dev/sdb10	  4GB	dnu* (swap domU5)	logical
	/dev/sdb11	 rest	/dev/md2 (LVM)		logical

*dnu = DO NOT USE (is going to be mounted by the domUs)

/dev/md0 (bootable)
	/boot		  1GB	raid 1 (dom0 -&gt; /boot)

/dev/md1
	/		 20GB	raid 1 (dom0 -&gt; /)

/dev/md2
	/dev/lvmstore/lv1 15GB	/ (dom1)
	/dev/lvmstore/lv2 15GB	/ (dom2)
	/dev/lvmstore/lv3 15GB	/ (dom3)
	/dev/lvmstore/lv4 20GB	/ (dom4)
	...		 ... 	...</pre>
<h3>Installation</h3>
<p>The task of making this configuration in Ubuntu can be a bit confusing. How to make this configuration depends on the way you're installing Ubuntu. I've had quite some troubles with LILO, so I recommend that you use GRUB instead! That's also what [6] recommends.</p>
<p>As earlier mentioned, my server is hosted at Hetzner. Here you can only manipulate the installation through a configuration file. This means that the disk configuration has to be performed a bit different. You could of course also make this disk layout with the ordinary Ubuntu installer, but I'll not get into details how to do that in this tutorial. First reboot into rescue mode and execute</p>

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

<p>Now choose to edit the configuration file. First you need to enable software raid (thanks, [5]) and choose GRUB:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">SWRAID <span style="color: #000000;">1</span>
BOOTLOADER grub</pre></div></div>

<p>Furthermore I configured the hostname. I made the initial partitioning scheme like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">PART <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">/</span>boot ext3  1G
PART <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">/</span>     xfs  20G
PART <span style="color: #000000;">3</span> swap  swap  4G</pre></div></div>

<p>And then I installed the system. After this was done, the disk layout needed to be modified heavily to get what we wanted.</p>
<p>Because we are going to modify the harddisk layout on a running system, be aware that you might delete data! Please make sure you have a backup of all important data. Also do not do this if you're not able to restore the server somehow (boot it to rescue mode or similar if something should fail)!</p>
<p>First launch</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">cfdisk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda</pre></div></div>

<p>And perform these steps:</p>
<ul>
<li>Select sda3 and delete it</li>
<li>Create a new locigal partition of 4301.83 MB at the beginning and change type to 82 (Linux swap)</li>
<li>Create five new locigal partition of 4301.83 MB at the beginning and don't change the type</li>
<li>Create a partition on the rest of space of type FD (Linux raid autodetect) - it's going to be used for a mirrored LVM</li>
<li>Write  (don't mind about the warning "No primary partitions are marked as bootable" - cfdisk doesn't know the /dev/md0 is bootable)</li>
<li>Quit</li>
</ul>
<p>Now do almost the same with <code>/dev/sdb</code> by</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">cfdisk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb</pre></div></div>

<p>And perform these steps:</p>
<ul>
<li>Select sdb3 and delete it</li>
<li>Create six new locigal partition of 4301.83 MB at the beginning and don't change the type</li>
<li>Create a partition on the rest of space of type FD (Linux raid autodetect) - it's going to be used for a mirrored LVM</li>
<li>Write (again, don't mind about the warning - cfdisk doesn't know the /dev/md0 is bootable)</li>
<li>Quit</li>
</ul>
<p>After this, my disk layout was like this:<br />
<a href="http://www.scienco.org/wp-content/dev-sda.png"><img class="aligncenter size-medium wp-image-143" title="/dev/sda" src="http://www.scienco.org/wp-content/dev-sda-300x172.png" alt="" width="300" height="172" /></a></p>
<p><a href="http://www.scienco.org/wp-content/dev-sdb.png"><img class="aligncenter size-medium wp-image-144" title="/dev/sdb" src="http://www.scienco.org/wp-content/dev-sdb-300x172.png" alt="" width="300" height="172" /></a></p>
<p>Use your favorite text editor (vim, nano or whatever) and:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab</pre></div></div>

<p>Change</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2 none swap sw <span style="color: #000000;">0</span> <span style="color: #000000;">0</span></pre></div></div>

<p>to</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5 none swap sw <span style="color: #000000;">0</span> <span style="color: #000000;">0</span></pre></div></div>

<p>We also need to get <code>/dev/md2</code> removed from <code>mdadm</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mdadm<span style="color: #000000; font-weight: bold;">/</span>mdadm.conf</pre></div></div>

<p>Comment the line with <code>/dev/md2</code> out.</p>
<p>Now</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2
mdadm <span style="color: #660033;">--manage</span> <span style="color: #660033;">--remove</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2</pre></div></div>

<p>Again: be sure that if something fails, you're able to enter some kind of rescue mode! If you are sure, please reboot to activate the new partiotions etc.</p>
<p>And now we check that /dev/md2 is gone:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>mdstat
mdadm <span style="color: #660033;">--detail</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2
<span style="color: #c20cb9; font-weight: bold;">dmesg</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> md2</pre></div></div>

<p>Now please verify that the new swap is used be using</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">free</span></pre></div></div>

<p>to see how much free swap space is available (if it says 0 the system doesn't use the swap). If there's no swap space, try to initialize the new swap by</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mkswap <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5</pre></div></div>

<p>and then reboot.</p>
<p>To create the mirroring of the LVM-storage, we perform:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mdadm <span style="color: #660033;">--create</span> <span style="color: #660033;">--verbose</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2 <span style="color: #660033;">--level</span>=<span style="color: #000000;">1</span> <span style="color: #660033;">--raid-devices</span>=<span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda11 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb11</pre></div></div>

<p>In order to get the array started on system start-up, execute this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mdadm <span style="color: #660033;">--brief</span> <span style="color: #660033;">--examine</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda11 <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mdadm<span style="color: #000000; font-weight: bold;">/</span>mdadm.conf</pre></div></div>

<p>Now we need to create the LVM (the lvmstore is the name, and LVs - logical volumes - will be located at /dev/lvmstore/name-of-lv):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pvcreate <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2
vgcreate lvmstore <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md2</pre></div></div>

<p>The output should be something like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host:~<span style="color: #666666; font-style: italic;"># pvcreate /dev/md2</span>
  Physical volume <span style="color: #ff0000;">&quot;/dev/md2&quot;</span> successfully created
root<span style="color: #000000; font-weight: bold;">@</span>host:~<span style="color: #666666; font-style: italic;"># vgcreate lvmstore /dev/md2</span>
  Volume group <span style="color: #ff0000;">&quot;lvmstore&quot;</span> successfully created</pre></div></div>

<p>Now you're ready to create LVs. In my case I'm going to create three of 15 GB and one on 20 GB:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host:~<span style="color: #666666; font-style: italic;"># lvcreate -n lv1 -L 15G lvmstore</span>
  Logical volume <span style="color: #ff0000;">&quot;lv1&quot;</span> created
root<span style="color: #000000; font-weight: bold;">@</span>host:~<span style="color: #666666; font-style: italic;"># lvcreate -n lv2 -L 15G lvmstore</span>
  Logical volume <span style="color: #ff0000;">&quot;lv2&quot;</span> created
root<span style="color: #000000; font-weight: bold;">@</span>host:~<span style="color: #666666; font-style: italic;"># lvcreate -n lv3 -L 15G lvmstore</span>
  Logical volume <span style="color: #ff0000;">&quot;lv3&quot;</span> created
root<span style="color: #000000; font-weight: bold;">@</span>host:~<span style="color: #666666; font-style: italic;"># lvcreate -n lv4 -L 20G lvmstore</span>
  Logical volume <span style="color: #ff0000;">&quot;lv4&quot;</span> created
root<span style="color: #000000; font-weight: bold;">@</span>host:~<span style="color: #666666; font-style: italic;"># ls -l /dev/lvmstore</span>
total <span style="color: #000000;">0</span>
lrwxrwxrwx <span style="color: #000000;">1</span> root root <span style="color: #000000;">24</span> <span style="color: #000000;">2008</span>-08-02 <span style="color: #000000;">13</span>:<span style="color: #000000;">55</span> lv1 -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>lvmstore-lv1
lrwxrwxrwx <span style="color: #000000;">1</span> root root <span style="color: #000000;">24</span> <span style="color: #000000;">2008</span>-08-02 <span style="color: #000000;">13</span>:<span style="color: #000000;">55</span> lv2 -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>lvmstore-lv2
lrwxrwxrwx <span style="color: #000000;">1</span> root root <span style="color: #000000;">24</span> <span style="color: #000000;">2008</span>-08-02 <span style="color: #000000;">13</span>:<span style="color: #000000;">55</span> lv3 -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>lvmstore-lv3
lrwxrwxrwx <span style="color: #000000;">1</span> root root <span style="color: #000000;">24</span> <span style="color: #000000;">2008</span>-08-02 <span style="color: #000000;">13</span>:<span style="color: #000000;">55</span> lv4 -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>lvmstore-lv4</pre></div></div>

<p>Please reboot to be sure that everything's alright.</p>
<h3>Post install</h3>
<p>First we'll upgrade the system:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> dist-upgrade
reboot</pre></div></div>

<p>This will reboot the machine in order to use a new kernel.</p>
<p>After the reboot, install Xen and tools for:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ubuntu-xen-server xen-tools xfsprogs</pre></div></div>

<p>Add this to <code>/etc/modules</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">loop <span style="color: #007800;">max_loop</span>=<span style="color: #000000;">64</span></pre></div></div>

<p>Now you need to deactivate a startup-script (by moving it), that makes it impossible for the machine to boot properly - at least everywhere I've tried (thanks to [7] for the solution!):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>loadcpufreq <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>loadcpufreq.backup</pre></div></div>

<p>If you don't do this, the machine probably will not boot. At my server with Hetzner I was able to ping it though, but when I tried to SSH, I got a "Connection Resufed".</p>
<p>Now reboot and verify running the Xen-kernel:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span>
xm list</pre></div></div>

<h3>Sources</h3>
<p>[1]: <a href="http://forums.novell.com/novell-product-support-forums/suse-linux-enterprise-server-sles/sles-virtualization/331444-suggest-swap-size-dom0.html">http://forums.novell.com/novell-product-support-forums/suse-linux-enterprise-server-sles/sles-virtualization/331444-suggest-swap-size-dom0.html</a><br />
[2]: <a href="http://www.gagme.com/greg/linux/raid-lvm.php">http://www.gagme.com/greg/linux/raid-lvm.php</a><br />
[3]: <a href="http://video.dkuug.dk/2007-10-16-xen/mr-xen.pdf">http://video.dkuug.dk/2007-10-16-xen/mr-xen.pdf</a><br />
[4]: <a href="http://www.howtoforge.com/high-performance-xen-on-ubuntu-8.04-amd64">http://www.howtoforge.com/high-performance-xen-on-ubuntu-8.04-amd64</a><br />
[5]: <a href="http://www.afterschool.dk/documents/hetzner/raid_hetzner_server/">http://www.afterschool.dk/documents/hetzner/raid_hetzner_server/</a><br />
[6]: <a href="http://wiki.debian.org/Xen">http://wiki.debian.org/Xen</a><br />
[7]: <a href="http://ubuntuforums.org/showthread.php?t=819404">http://ubuntuforums.org/showthread.php?t=819404</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scienco.org/2008/xen-on-ubuntu-server-804-hardy-heron-with-complex-disk-setup/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>ESXi in VMware Workstation</title>
		<link>http://www.scienco.org/2008/esxi-in-vmware-workstation/</link>
		<comments>http://www.scienco.org/2008/esxi-in-vmware-workstation/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 08:41:45 +0000</pubDate>
		<dc:creator>Mikkel Meyer Andersen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMware ESXi]]></category>
		<category><![CDATA[VMware Workstation]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.scienco.org/?p=57</guid>
		<description><![CDATA[Yesterday VMware ESXi became free (not as i beer but as in money), and I had to try it - initially in VMware Workstation 6. You need Intel VT (or AMD-V) to run ESXi! In order to make it work create a machine with a 20GB SCSI disk (defaults: non-independent etc.) and chose the downloaded [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday VMware ESXi became free (not as i beer but as in money), and I had to try it - initially in VMware Workstation 6. You need Intel VT (or AMD-V) to run ESXi!<span id="more-57"></span></p>
<p>In order to make it work create a machine with a 20GB SCSI disk (defaults: non-independent etc.) and chose the downloaded ISO-file with ESXi - the other options of the machine is not important because the vmx-file is to be overwritten, but you have to create the disk. Please be sure that VT is enabled - if not VMware will complain (to enable it go to your BIOS, enable it, shut down the computer entirely wait a few seconds and turn it on again). Now close the tab in Workstation , save a copy of the vmx-file, and open the original vmx-file in notepad (or equivalent) and replace its contents with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">config.version = <span style="color: #ff0000;">&quot;8&quot;</span>
virtualHW.version = <span style="color: #ff0000;">&quot;6&quot;</span>
scsi0.present = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
scsi0.virtualDev = <span style="color: #ff0000;">&quot;lsilogic&quot;</span>
memsize = <span style="color: #ff0000;">&quot;1024&quot;</span>
scsi0:<span style="color: #000000;">0</span>.present = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
scsi0:<span style="color: #000000;">0</span>.fileName = <span style="color: #ff0000;">&quot;Other.vmdk&quot;</span>
ide1:<span style="color: #000000;">0</span>.present = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
ide1:<span style="color: #000000;">0</span>.fileName = <span style="color: #ff0000;">&quot;C:<span style="color: #000099; font-weight: bold;">\V</span>Mware-VMvisor-InstallerCD-3.5.0_Update_2-103909.i386.iso&quot;</span>
ide1:<span style="color: #000000;">0</span>.deviceType = <span style="color: #ff0000;">&quot;cdrom-image&quot;</span>
floppy0.autodetect = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
ethernet0.present = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
ethernet0.virtualDev = <span style="color: #ff0000;">&quot;e1000&quot;</span>
ethernet0.wakeOnPcktRcv = <span style="color: #ff0000;">&quot;FALSE&quot;</span>
usb.present = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
ehci.present = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
sound.present = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
sound.fileName = <span style="color: #ff0000;">&quot;-1&quot;</span>
sound.autodetect = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
svga.autodetect = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
pciBridge0.present = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
mks.keyboardFilter = <span style="color: #ff0000;">&quot;allow&quot;</span>
displayName = <span style="color: #ff0000;">&quot;esxi 3.5&quot;</span>
guestOS = <span style="color: #ff0000;">&quot;rhel3&quot;</span>
nvram = <span style="color: #ff0000;">&quot;Other.nvram&quot;</span>
deploymentPlatform = <span style="color: #ff0000;">&quot;windows&quot;</span>
virtualHW.productCompatibility = <span style="color: #ff0000;">&quot;hosted&quot;</span>
tools.upgrade.policy = <span style="color: #ff0000;">&quot;useGlobal&quot;</span>
&nbsp;
monitor_control.restrict_backdoor = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
monitor_control.vt32 = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
ide1:<span style="color: #000000;">0</span>.autodetect = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
floppy0.fileName = <span style="color: #ff0000;">&quot;A:&quot;</span>
isolation.tools.hgfs.disable = <span style="color: #ff0000;">&quot;TRUE&quot;</span>
&nbsp;
ethernet0.addressType = <span style="color: #ff0000;">&quot;generated&quot;</span>
uuid.location = <span style="color: #ff0000;">&quot;56 4d ed e0 c0 75 12 c6-f7 8d a4 27 12 c8 bc 05&quot;</span>
uuid.bios = <span style="color: #ff0000;">&quot;56 4d ed e0 c0 75 12 c6-f7 8d a4 27 12 c8 bc 05&quot;</span>
scsi0:<span style="color: #000000;">0</span>.redo = <span style="color: #ff0000;">&quot;&quot;</span>
pciBridge0.pciSlotNumber = <span style="color: #ff0000;">&quot;17&quot;</span>
scsi0.pciSlotNumber = <span style="color: #ff0000;">&quot;16&quot;</span>
ethernet0.pciSlotNumber = <span style="color: #ff0000;">&quot;32&quot;</span>
sound.pciSlotNumber = <span style="color: #ff0000;">&quot;33&quot;</span>
ehci.pciSlotNumber = <span style="color: #ff0000;">&quot;34&quot;</span>
ethernet0.generatedAddress = <span style="color: #ff0000;">&quot;00:0c:29:c8:bc:05&quot;</span>
ethernet0.generatedAddressOffset = <span style="color: #ff0000;">&quot;0&quot;</span>
tools.remindInstall = <span style="color: #ff0000;">&quot;TRUE&quot;</span></pre></div></div>

<p>Now change change scsi0:0.fileName, ide1:0.fileName, nvram, ethernet0.generatedAddress, uuid.location, and uuid.bios to the correct values (as in the copy of the vmx-file). Then open the machine in VMware Workstation and change the network to "Host-only". And voila - now you should be able to install ESXi!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scienco.org/2008/esxi-in-vmware-workstation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

