<?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>Linux and Virtualization &#187; Virtualization</title>
	<atom:link href="http://fclose.com/b/linux/topic/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://fclose.com/b/linux</link>
	<description>Clear solutions, tutorials and tips on Linux and virtualization from the author&#039;s experience with clusters.</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:49:48 +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>How to Install, Run and Uninstall VMware Player and VirtualBox on Fedora Linux</title>
		<link>http://fclose.com/b/linux/3460/how-to-install-run-and-uninstall-vmware-player-and-virtualbox-on-fedora-linux/</link>
		<comments>http://fclose.com/b/linux/3460/how-to-install-run-and-uninstall-vmware-player-and-virtualbox-on-fedora-linux/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 00:46:13 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Full Virtualization]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3460</guid>
		<description><![CDATA[VMware Player and VirtualBox are two cool and free full virtualization solutions and both can run on top of a Linux host. In this post, we introduces how to install, run, and uninstall VMware Player and VirtualBox on Fedora Linux. VMware Player Install VMware Player Download the installation bundle from VMware&#8217;s website. For example, the [...]]]></description>
			<content:encoded><![CDATA[<p>VMware Player and VirtualBox are two cool and free full virtualization solutions and both can run on top of a Linux host. In this post, we introduces how to install, run, and uninstall VMware Player and VirtualBox on Fedora Linux.</p>
<h3>VMware Player</h3>
<h4>Install VMware Player</h4>
<p>Download the installation bundle from <a href="http://fclose.com/t/go/vmware-player/" rel="nofollow">VMware&#8217;s website</a>. For example, the file we download is: VMware-Player-4.0.0-471780.x86_64.bundle .</p>
<p>Install needed kernel header and devel packages</p>
<pre># yum install kernel-headers kernel-devel</pre>
<p>Run the bundle file</p>
<pre># sh VMware-Player-4.0.0-471780.x86_64.bundle</pre>
<p>Then just follow the instruction of the GUI of the VMware installer, and you can finish the installation.</p>
<p>For Fedora 16 with kernel 3.1.0 or 3.1.1 with VMware Player 4.0.0, the vmnet module can not compile vmnet module. The VMware-Player-4.0.1-528992.x86_64 fixes this problem and works well with 3.1 kernel. If you want to run VMware Player 4.0.0, the community give patches to it so that it works with kernel 3.1. The <a href="http://fclose.com/t/go/angeleri-patch-vmplayer-4.0.0-kernel-3.1/" rel="nofollow">patch and script given by Stefano Angeleri</a> works well for me. You may use it quickly by the following commands.</p>
<pre>$ wget http://weltall.heliohost.org/wordpress/wp-content/uploads/2011/09/vmware8linux31fix.tar.gz
$ tar xf vmware8linux31fix.tar.gz
# sh ./patch-modules_3.1.0.sh</pre>
<p>systemctl prints a &#8220;[FAILED]&#8221; message. But you can ignore it and VMware Player works.</p>
<h4>Run VMware Player</h4>
<p>Just execute</p>
<pre>$ vmplayer</pre>
<p>Start a virtual machine just by one command</p>
<pre>$ vmplayer /path/to/virtual/machine/config.vmx &amp;</pre>
<p>Give the path to the virtual machine configuration file (a .vmx file under the virtual machine&#8217;s directory) to vmplayer as its parameter.</p>
<h4>Uninstall VMware Player</h4>
<p>VMware installer provides the method to uninstall VMware products. We can use this tool</p>
<pre># vmware-installer  --uninstall-product vmware-player</pre>
<p>It has a GUI and just follow its instruction to finish the uninstallation.</p>
<h3>VirtualBox</h3>
<h4>Install VirtualBox</h4>
<p>We use VirtualBox&#8217;s repository for Fedora here. We use VirtualBox-4.1 as the example.</p>
<p>Download the repository file.</p>
<pre># cd /etc/yum.repos.d
# wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo</pre>
<p>Install VirtualBox using yum</p>
<pre># yum install VirtualBox-4.1</pre>
<h4>Run VirtualBox</h4>
<p>Just execute</p>
<pre>$ virtualbox</pre>
<p>Start a virtual machine just by one command</p>
<pre># VBoxManage startvm name_of_the_virtual_machine</pre>
<p>VBoxManager use the virtual machine&#8217;s name as its parameter. The name can be found from VirtualBox&#8217;s virtual machine list.</p>
<h4>Uninstall VirtualBox</h4>
<p>As installing VirtualBox, we can uninstall (erase) it using yum</p>
<pre># yum erase VirtualBox-4.1</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3460/how-to-install-run-and-uninstall-vmware-player-and-virtualbox-on-fedora-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Ubuntu DomU on Xen: Use Ubuntu 10.10 on Fedora Xen Dom0</title>
		<link>http://fclose.com/b/linux/3208/setting-up-ubuntu-domu-on-xen-use-ubuntu-10-10-on-fedora-xen-dom0/</link>
		<comments>http://fclose.com/b/linux/3208/setting-up-ubuntu-domu-on-xen-use-ubuntu-10-10-on-fedora-xen-dom0/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 14:22:50 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3208</guid>
		<description><![CDATA[Setting up Ubuntu 10.10 DomU on top of Fedora Xen Dom0 is introduced in this post. The process of setting up Ubuntu 10.10 DomU is the same as Setting Up Stable Xen DomU with Fedora: Unmodified Fedora 12 on top of Xenified Fedora 12 Dom0 with Xen 4.0 This post only show the difference which [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up Ubuntu 10.10 DomU on top of Fedora Xen Dom0 is introduced in this post. The process of setting up Ubuntu 10.10 DomU is the same as <a href="2256/setting-up-stable-xen-domu-with-fedora-unmodified-fedora-12-on-top-of-xenified-fedora-12-dom0-with-xen-4-0-0/">Setting Up Stable Xen DomU with Fedora: Unmodified Fedora 12 on top of Xenified Fedora 12 Dom0 with Xen 4.0</a> This post only show the difference which is specific to Ubuntu and different from Fedora.</p>
<p>We assume one virtual hard disk (xvda) for this DomU is already set up no matter it is <a href="2256/setting-up-stable-xen-domu-with-fedora-unmodified-fedora-12-on-top-of-xenified-fedora-12-dom0-with-xen-4-0-0/">file backed</a> or <a href="2544/setting-up-lvm-backed-xen-domu/">LVM backed</a>. In this example, we use a LVM backed xvda as the example.</p>
<h3>Ubuntu installation media</h3>
<p>Unfortunately, the Ubuntu 10.10 Live CD, which is widely used, can&#8217;t boot on Xen. We use Ubuntu&#8217;s netboot iso image to install Ubuntu. The iso image for Ubuntu 10.10 can be retrieved from:</p>
<pre>http://archive.ubuntu.com/ubuntu/dists/maverick/main/installer-amd64/current/images/netboot/</pre>
<p>The file is mini.iso. It can be directly downloaded by <a href="http://fclose.com/p/linux/man/1-wget/">wget</a>:</p>
<pre>$ wget http://archive.ubuntu.com/ubuntu/dists/maverick/main/installer-amd64/current/images/netboot/mini.iso</pre>
<h3>Create Xen DomU configuration file</h3>
<p>Then we create a configuration file for this Ubuntu Xen DomU. Please be aware that we make some assumption as aforementioned file address (the disk) and network interface (the vif) here. The ubuntu-install.run file&#8217;s content:</p>
<pre>name="10.1.1.228"
vcpus=2
memory=2048
vif=['bridge=eth2']
disk = ['file:/lhome/xen/mini.iso,xvdc:cdrom,r', 'phy:vg_xen/vm-10.1.1.228,xvda,w']
bootloader="/usr/bin/pygrub"
on_reboot='restart'
on_crash='restart'
</pre>
<h3>Start Ubuntu Xen DomU and start installation</h3>
<p>We can start the DomU now by:</p>
<pre># xm create -c ./ubuntu-install.run</pre>
<p>The command line installation interface will appear. We can install Ubuntu 10.10 step by step just following the wizard.</p>
<h3>Start DomU</h3>
<p>To start the Ubuntu DomU is similar to start the <a href="2256/setting-up-stable-xen-domu-with-fedora-unmodified-fedora-12-on-top-of-xenified-fedora-12-dom0-with-xen-4-0-0/">Fedora DomU</a>. Remember to remote the virtual cdrom from &#8220;disk&#8221; in the configuration file.</p>
<p>As pygrub doesn&#8217;t support Ubuntu 10.10 well, we copy the kernel and ramdisk out from Ubuntu&#8217;s /boot/ directory to Dom0&#8242;s directory and provide DomU the kernel and ramdisk from Dom0&#8242;s directory. Please also be aware that Ubuntu requires the &#8216;root=UUID=&#8230;&#8217; kernel parameter. This UUID can also be got from /root/grub/grub.cfg in DomU&#8217;s disk. We can simply mount DomU&#8217;s disk to Dom0 and get the files and UUID.</p>
<p>This is the configuration file that works well in our cluster:</p>
<pre>name="10.1.1.228"
vcpus=2
memory=1024
vif=['bridge=eth2']

kernel="/lhome/xen/vm-10.1.1.228/vmlinuz-2.6.35-28-generic"
ramdisk="/lhome/xen/vm-10.1.1.228/initrd.img-2.6.35-28-generic"
extra='root=UUID=4412ceeb-2c40-452f-82e2-8ddbaca681a9'

disk = ['phy:vg_xen/vm-10.1.1.228,xvda,w']
on_reboot='restart'
on_crash='restart'
</pre>
<p>Last, enjoy it! More posts on Xen is in <a href="2367/xen-solutions/">Xen Solutions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3208/setting-up-ubuntu-domu-on-xen-use-ubuntu-10-10-on-fedora-xen-dom0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple Introduction to paravirt_ops for Xen</title>
		<link>http://fclose.com/b/linux/2683/simple-introduction-to-paravirt_ops-for-xen/</link>
		<comments>http://fclose.com/b/linux/2683/simple-introduction-to-paravirt_ops-for-xen/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 04:50:50 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[dom0]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://pkill.info/b/?p=2683</guid>
		<description><![CDATA[The is a simple introduction to paravirt_ops in Linux kernel for Xen, VMware, etc. We make this introduction from the view of code. We use the function raw_local_irq_disable() and raw_local_irq_enable() functions in Linux kernel to introduce paravirt_ops for Xen and Xenified kernel. Please download the introduction to paravirt_ops pdf file: introduction-to-pv-ops-v3.pdf]]></description>
			<content:encoded><![CDATA[<p>The is a simple introduction to paravirt_ops in Linux kernel for Xen, VMware, etc. We make this introduction from the view of code. We use the function raw_local_irq_disable() and raw_local_irq_enable() functions in Linux kernel<br />
to introduce paravirt_ops for Xen and Xenified kernel.</p>
<p>Please download the introduction to paravirt_ops pdf file:</p>
<p><a href="http://fclose.com/t/go/linux/introduction-to-pv-ops-v3.pdf/" rel="nofollow">introduction-to-pv-ops-v3.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2683/simple-introduction-to-paravirt_ops-for-xen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen DomU&#8217;s I/O Performance of LVM and loopback Backed VBDs</title>
		<link>http://fclose.com/b/linux/2260/xen-domus-io-performance-of-lvm-and-loopback-backed-vbds/</link>
		<comments>http://fclose.com/b/linux/2260/xen-domus-io-performance-of-lvm-and-loopback-backed-vbds/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 16:04:15 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[dom0]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://pkill.info/b/?p=2260</guid>
		<description><![CDATA[This posts list benchmark (using bonnie++) result of I/O performance of Xen LVM and loopback backed VBDs. The configuration of machines Dom0 VCPU: 2 (Intel(R) Xeon(R) CPU E5520  @ 2.27GHz) Memory: 2GB Xen and Linux kernel: Xen 3.4.3 with Xenified 2.6.32.13 kernel DomU VCPU: 2 Memory: 2GB Linux kernel: Fedora (2.6.32.19-163.fc12.x86_64) DomU&#8217;s profile: name="10.0.1.200" vcps=2 [...]]]></description>
			<content:encoded><![CDATA[<p>This posts list benchmark (using bonnie++) result of I/O performance of Xen LVM and loopback backed VBDs.</p>
<h3>The configuration of machines</h3>
<h4>Dom0</h4>
<p>VCPU: 2 (Intel(R) Xeon(R) CPU E5520  @ 2.27GHz)<br />
Memory: 2GB<br />
Xen and Linux kernel: <a href="http://fclose.com/b/2405/setting-up-stable-xen-dom0-with-fedora-xen-3-4-3-with-xenified-linux-kernel-2-6-32-13-in-fedora-12/">Xen 3.4.3 with Xenified 2.6.32.13 kernel</a></p>
<h4>DomU</h4>
<p>VCPU: 2<br />
Memory: 2GB<br />
Linux kernel: Fedora (2.6.32.19-163.fc12.x86_64)</p>
<p>DomU&#8217;s profile:</p>
<pre>name="10.0.1.200"
vcps=2
memory=2048
disk = ['phy:vg_xen/vm-10.0.1.150/vmdisk0,xvda,w']
#disk = ['tap:aio:/lhome/xen/vm0-f12/vmdisk0,xvda,w']
#disk = ['file:/lhome/xen/vm0-f12/vmdisk0,xvda,w']

vif=['bridge=eth0']
bootloader="/usr/bin/pygrub"
#extra="single"
on_reboot='restart'
on_crash='restart'
</pre>
<p>The &#8220;disk&#8221; lines is changed depending on the driver used.</p>
<h3>Benchmark method</h3>
<p>We use Bonnie++ to test the performance of I/O:</p>
<pre># bonnie++ -u root</pre>
<p>We run bonnie++ on one single VM. We also test the performance change after making a snapshot of LVM for a new VM. For the file backed VMs, we also run two VMs together on the same hard disk and run bonnie++ on them.</p>
<p>Bonnie++&#8217;s result is in this format:</p>
<pre>Version 1.03e       ------Sequential Output------ --Sequential Input- --Random-
 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
localhost.locald 4G 76999  98 107423  21 47522  13 73347  91 159847  16 266.0   0
 ------Sequential Create------ --------Random Create--------
 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
 files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
localhost.localdomain,4G,76999,98,107423,21,47522,13,73347,91,159847,16,266.0,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
</pre>
<p>We only list the last line which contains all the result in the result section in this post.</p>
<h3>Benchmark result</h3>
<h4>LVM backed VBD</h4>
<pre>localhost.localdomain,4G,76999,98,107423,21,47522,13,73347,91,159847,16,266.0,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
localhost.localdomain,4G,79588,98,120078,22,46140,13,75343,94,150167,15,248.7,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
localhost.localdomain,4G,81942,98,113617,22,47736,13,75947,94,152110,15,262.1,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++</pre>
<h4>New LVM logical volume made by snapshot</h4>
<pre>localhost.localdomain,4G,11846,15,12044,2,27133,7,71510,92,141408,14,262.7,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
localhost.localdomain,4G,12200,15,18147,3,33086,9,66687,89,146550,14,251.9,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
localhost.localdomain,4G,58521,73,58482,10,33880,9,69399,90,144237,14,267.4,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
localhost.localdomain,4G,62553,78,57576,11,32755,9,70037,89,143462,14,259.9,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
localhost.localdomain,4G,66031,84,65640,12,34357,9,66036,86,152171,15,266.4,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
localhost.localdomain,4G,58666,75,60092,11,34826,9,72821,91,141328,14,259.7,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
</pre>
<h4>File backed VBD</h4>
<pre>vm112,4G,20865,27,23559,4,32913,9,63006,81,128395,13,217.9,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm112,4G,23022,30,18611,3,30086,8,63784,82,125736,13,197.7,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm112,4G,21485,27,20366,3,29587,8,72130,92,140957,14,239.6,0,16,+++++,+++,+++++,+++,30751,52,+++++,+++,+++++,+++,+++++,+++
vm112,4G,22375,32,21716,3,30300,8,65488,87,128625,13,221.4,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm112,4G,21968,28,19298,3,29007,8,68469,88,122111,12,222.5,0,16,26967,94,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm112,4G,21477,28,20463,3,38395,10,49312,63,154206,15,241.0,0,16,+++++,+++,+++++,+++,32699,56,+++++,+++,+++++,+++,+++++,+++
</pre>
<h4>Two VMs on the same disk running together</h4>
<p>A:</p>
<pre>vm112,4G,10645,13,9498,1,9606,2,30866,41,86911,8,100.1,0,16,9181,22,20583,6,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm112,4G,10623,13,10143,1,10485,2,26013,35,77362,7,116.3,0,16,25701,66,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm112,4G,10824,14,9558,1,12028,3,27503,36,57196,5,92.1,0,16,9679,28,+++++,+++,9294,15,+++++,+++,+++++,+++,+++++,+++
vm112,4G,15098,19,10485,1,12536,3,22771,30,64679,6,142.2,0,16,32006,82,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm112,4G,11315,14,9674,1,12052,3,26453,35,68206,7,121.1,0,16,23789,62,32446,13,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm112,4G,11865,15,11564,2,11508,3,24945,34,61946,6,102.6,0,16,13297,34,21805,7,+++++,+++,+++++,+++,+++++,+++,+++++,+++
</pre>
<p>B:</p>
<pre>vm119,4G,8963,11,9255,1,10909,3,36446,48,70485,7,125.1,0,16,19701,52,23649,8,9574,16,+++++,+++,+++++,+++,+++++,+++
vm119,4G,9074,12,8410,1,12898,3,35266,47,68469,7,107.4,0,16,6585,17,3206,1,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm119,4G,9151,13,8664,1,10285,2,20120,28,58011,5,90.9,0,16,22894,59,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm119,4G,9053,11,10406,1,12852,3,27618,37,55405,5,108.8,0,16,10144,24,22599,7,+++++,+++,+++++,+++,+++++,+++,+++++,+++
vm119,4G,8987,11,11464,1,12123,3,19278,26,59274,6,104.8,0,16,5357,13,23010,7,+++++,+++,7922,18,+++++,+++,+++++,+++
vm119,4G,9593,12,11450,1,30598,8,57078,73,119884,12,222.2,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
</pre>
<h3>Conclusion</h3>
<p>From the evaluation result, we can see that LVM backed VBD of Xen DomU has a much better performance that file backed. From out experiment in our cluster, LVM backed VBD is also quite stable.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2260/xen-domus-io-performance-of-lvm-and-loopback-backed-vbds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen with LVM</title>
		<link>http://fclose.com/b/linux/2613/xen-with-lvm/</link>
		<comments>http://fclose.com/b/linux/2613/xen-with-lvm/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 21:24:53 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solution]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://pkill.info/b/?p=2613</guid>
		<description><![CDATA[LVM volumes as backing for DomU’s file system is an appealing solution to Xen VBD. LVM volumes can dynamically grow/shrink and snapshot. These features make it simple and fast to duplicate DomU and adding storage to DomU. This post is a summary of tutorials related Xen DomU and LVM. Setting Up LVM Backed Xen DomU [...]]]></description>
			<content:encoded><![CDATA[<p>LVM volumes as backing for DomU’s file system is an appealing solution to Xen VBD. LVM volumes can dynamically grow/shrink and snapshot. These features make it simple and fast to duplicate DomU and adding storage to DomU. This post is a summary of tutorials related Xen DomU and LVM.</p>
<p><a href="http://fclose.com/b/2544/setting-up-lvm-backed-xen-domu/">Setting Up LVM Backed Xen DomU</a></p>
<p><a href="http://fclose.com/b/2546/duplicating-lvm-backed-xen-domu/">Duplicating LVM Backed Xen DomU</a></p>
<p><a href="http://fclose.com/b/2611/duplicating-and-backing-up-lvm-backed-xen-domu-from-a-remote-server/">Duplicating and Backing Up LVM Backed Xen DomU from a Remote Server</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2613/xen-with-lvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Introduction to Xen Source Code Structure and Disk in Xen</title>
		<link>http://fclose.com/b/linux/2600/a-introduction-to-xen-source-code-structure-and-disk-in-xen/</link>
		<comments>http://fclose.com/b/linux/2600/a-introduction-to-xen-source-code-structure-and-disk-in-xen/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 05:16:39 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[dom0]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://pkill.info/b/?p=2600</guid>
		<description><![CDATA[I have created slides from introducing Xen&#8217;s source code structure and backend and frontend drivers in Xen. Please find the PDF version here: xen-code-disk-v2.pdf Animation is enabled which may help to understand it. Update history Dec. 10, 2010. Update pdf to version 2. Animation is added.]]></description>
			<content:encoded><![CDATA[<p>I have created slides from introducing Xen&#8217;s source code structure and backend and frontend drivers in Xen. Please find the PDF version here:</p>
<p><a href="http://fclose.com/t/g/linux/xen-code-disk-v2.pdf/" rel="nofollow">xen-code-disk-v2.pdf</a></p>
<p>Animation is enabled which may help to understand it.</p>
<p><span style="font-size: x-small;">Update history<br />
Dec. 10, 2010. Update pdf to version 2. Animation is added.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2600/a-introduction-to-xen-source-code-structure-and-disk-in-xen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Duplicating LVM Backed Xen DomU</title>
		<link>http://fclose.com/b/linux/2546/duplicating-lvm-backed-xen-domu/</link>
		<comments>http://fclose.com/b/linux/2546/duplicating-lvm-backed-xen-domu/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 16:01:06 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://pkill.info/b/?p=2546</guid>
		<description><![CDATA[LVM&#8217;s snapshot feature enables us to duplicate an LVM backed Xen DomU in seconds rather than minutes. We no longer need to copy the entire file system image like backing up file backed Xen DomU. We just need to make a snapshot of the current Xen DomU in seconds. When there are changes to the [...]]]></description>
			<content:encoded><![CDATA[<p>LVM&#8217;s snapshot feature enables us to duplicate an LVM backed Xen DomU in seconds rather than minutes. We no longer need to copy the entire file system image like backing up file backed Xen DomU. We just need to make a snapshot of the current Xen DomU in seconds. When there are changes to the file system of the new DomU, LVM will make a copy of the physical block of the logical volume write the the new volume. How to duplicate LVM backed Xen DomU is introduced in this post.</p>
<h3>Assumption:</h3>
<p>There are Xen DomU virtual machines in LVM logical volume <em>/dev/vg_xen/vm-10.0.0.123/</em>.</p>
<p>Now we want to duplicate the virtual machine <em>vm-10.0.0.123</em> to <em>vm-10.0.0.124</em> which we want to stored in logical volume <em>vm-10.0.0.124</em> in volume group <em>vg_xen</em>. <em>vm-10.0.0.124</em>&#8216;s IP will be 10.0.0.124. There are three steps to duplicate this virtual machine:</p>
<h3>1) Duplicate the LVM logical volume</h3>
<p>We can duplicate the LVM volume group by making a snapshot of it. The snapshot is a clone of the logical volume. We can make a new logical volume <em>vm-10.0.0.124</em> as the snapshot of logical volume <em>vm-10.0.0.123:</em></p>
<pre># lvcreate -L20480 -s -n 'vm-10.0.0.124' /dev/vg_xen/vm-10.0.0.123</pre>
<p>Here the size of the new logical volume is 20G as the same of the original one. We may change the content in all the storage space in the new DomU so we create a logical volume that has the same size.</p>
<p>Here we should make sure that vm-10.0.0.123 is<strong> </strong>power off to avoid the situation there are &#8220;write&#8221; that is still in DomU&#8217;s cache.</p>
<h3>2) Change the profile for new DomU</h3>
<p>After making the clone of the VBD. We can create a profile for the new DomU. This is the content of <em>/lhome/xen/vm-10.0.0.124/vm.run</em>:</p>
<pre>name="10.0.0.124"
cpus=2
memory=2048
disk=['<strong>phy:vg_xen/vm-10.0.0.124</strong>,xvda,w' ]
vif=[ 'bridge=eth0' ]
bootloader = "/usr/bin/pygrub"
on_reboot = 'restart'
on_crash = 'restart'</pre>
<p>The name and disk entry are changed.</p>
<h3>3) Start the new virtual machine and configure the new virtual machine</h3>
<p>We can start the new DomU and enter it&#8217;s console:</p>
<pre># xm create /lhome/xen/vm-10.0.0.124/vm.run
# xm console 10.0.0.213</pre>
<p>Or directly:</p>
<pre># xm create -c /lhome/xen/vm-10.0.0.124/vm.run</pre>
<p>After logging in vm-10.0.0.124, we can edit the network configuration file:</p>
<pre>#  vi /etc/sysconfig/network-scripts/ifcfg-eth0</pre>
<p>Change the IPADDR to 10.0.0.124 from 10.0.0.123. Then restart eth0:</p>
<pre># ifdown eth0
# ifup eth0</pre>
<p>Make sure this interface doesn&#8217;t have <em>HWADDR</em> by commenting out the line that specify <em>HWADDR</em> if we use Xen bridge network<em>.</em></p>
<p>Log out of vm-10.0.0.124 and then use <em>&#8220;Ctrl + ]&#8221;</em> to exit the xm console.</p>
<p>The new virtual machine vm-10.0.0.124 which is the clone of vm-10.0.0.123 except the IP is running now. This process can be written into one script and the overall time for duplicating the Xen DomU can be as short as number of seconds.</p>
<p>For more tutorials about Xen, please refer to <a href="2367/xen-solutions/">Xen Solution</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2546/duplicating-lvm-backed-xen-domu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up LVM Backed Xen DomU</title>
		<link>http://fclose.com/b/linux/2544/setting-up-lvm-backed-xen-domu/</link>
		<comments>http://fclose.com/b/linux/2544/setting-up-lvm-backed-xen-domu/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 16:01:19 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://pkill.info/b/?p=2544</guid>
		<description><![CDATA[LVM volumes as backing for DomU&#8217;s file system is an appealing solution to Xen VBD. LVM volumes can dynamically grow/shrink and snapshot. These features make it simple and fast to duplicate DomU and adding storage to DomU. Creating LVM-backed Xen DomU is introduced in this post. Create LVM-backed VBD Suppose we have a LVM volume [...]]]></description>
			<content:encoded><![CDATA[<p>LVM volumes as backing for DomU&#8217;s file system is an appealing solution to Xen VBD. LVM volumes can dynamically grow/shrink and snapshot. These features make it simple and fast to duplicate DomU and adding storage to DomU. Creating LVM-backed Xen DomU is introduced in this post.</p>
<h3>Create LVM-backed VBD</h3>
<p>Suppose we have a LVM volume group for Xen now: <em>vg_xen</em>.</p>
<p>Let&#8217;s create a logical volume of size 20GB named &#8216;vm-10.0.0.123&#8242; for the VM we will create:</p>
<pre># lvcreate -L20480 -n 'vm-10.0.0.123' vg_xen</pre>
<p>Please refer to <a href="./2640/creating-lvm-volume-group/">Creating LVM Volume Group</a> for setting up LVM volume group.</p>
<h3>The profile for LVM-backed DomU</h3>
<p>Then we can create a profile for LVM-bakced Xen DomU using the LVM logical volume we create above:</p>
<pre>name="lvm-backed-domainu"
vcpus=2
memory=2048
disk=['<strong>phy:mapper/vg_xen--vm-10.0.0.123</strong>,xvda,w']
# disk=['<strong>phy:vg_xen/vm-10.0.0.123</strong>,xvda,w']
vif=['bridge=eth0']
bootloader="/usr/bin/pygrub"
on_reboot='restart'
on_crash='restart'</pre>
<p>or for installing a new DomU:</p>
<pre>name="F12INSTALL"
vcpus=2
memory=2048
disk=['<strong>phy:mapper/vg_xen--vm-10.0.0.123</strong>,xvda,w']
# disk=['<strong>phy:vg_xen/vm-10.0.0.123</strong>,xvda,w']
vif = [ 'bridge=eth0' ]
kernel = "/lhome/xen/f12install/vmlinuz"
ramdisk = "/lhome/xen/f12install/initrd.img"
on_reboot = 'restart'
on_crash = 'restart'</pre>
<p>The virtual machine’s name is &#8220;10.0.0.123&#8243;, memory is 2G, CPU number is 2, VBD is LV /dev/mapper/vg_xen/vm-10.0.0.123. The &#8220;disk&#8221; line specifies that we will use logical volume <strong>vm-10.0.0.123</strong> in volume group <strong>vg_xen</strong> for this DomU&#8217;s VBD.</p>
<p>Then we can install operating system in the DomU. Please refer to the &#8220;Install Fedora 12 Linux via Internet&#8221; section in:</p>
<p><a href="./2256/setting-up-stable-xen-domu-with-fedora-unmodified-fedora-12-on-top-of-xenified-fedora-12-dom0-with-xen-4-0-0/">Setting Up Stable Xen DomU with Fedora: Unmodified Fedora 12 on top of Xenified Fedora 12 Dom0 with Xen 4.0</a></p>
<p>for installing Fedora 12 in Xen DomU.</p>
<p>For more tutorials about Xen, please refer to <a href="./2367/xen-solutions/">Xen Solution</a>.</p>
<p><span style="font-size: x-small;"><strong>Update history:</strong><br />
Sep. 28, 2010. Add how to set up LVM volume group.<br />
Jul. 16, 2011. Specify the section for how to install Fedora 12.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2544/setting-up-lvm-backed-xen-domu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Stable Xen Dom0 with Fedora: Xen 3.4.3 with Xenified Linux Kernel 2.6.32.13 in Fedora 12</title>
		<link>http://fclose.com/b/linux/2405/setting-up-stable-xen-dom0-with-fedora-xen-3-4-3-with-xenified-linux-kernel-2-6-32-13-in-fedora-12/</link>
		<comments>http://fclose.com/b/linux/2405/setting-up-stable-xen-dom0-with-fedora-xen-3-4-3-with-xenified-linux-kernel-2-6-32-13-in-fedora-12/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 00:55:23 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[dom0]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://pkill.info/b/?p=2405</guid>
		<description><![CDATA[This is the latest stable and recommended stable Xen Dom0 solution on Fedora 12. No serious bug found till now and we will fix the bugs by ourselves if some appears. It also works on Fedora 14 as well. It should not be hard to use this solution on other versions of Fedora or other [...]]]></description>
			<content:encoded><![CDATA[<p>This is the latest stable and recommended stable Xen Dom0 solution on Fedora 12. No serious bug found till now and we will fix the bugs by ourselves if some appears. It also <a href="http://fclose.com/b/linux/2405/setting-up-stable-xen-dom0-with-fedora-xen-3-4-3-with-xenified-linux-kernel-2-6-32-13-in-fedora-12/comment-page-1/#comment-407">works on Fedora 14 as well</a>. It should not be hard to use this solution on other versions of Fedora or other Linux distribution.</p>
<p>How to set up Xen Dom0 with <em>Xenified</em> Linux kernel in Fedora 12 will be introduced in this post. We use Xen 3.4.3 from xen.org and Xenified Linux kernel 2.6.32.13. This is a very stable Dom0 solution for Fedora 12. Lot&#8217;s DomUs have been tested on this platform.</p>
<h3>Hardware:</h3>
<p>Dom0&#8242;s hardware platform:</p>
<p>Motherboard<em>: INTEL S5500BC S5500 Quad Core Xeon Server Board</em><br />
CPU<em>: 2 x Intel Quad Core Xeon E5520 2.26G (5.86GT/sec,8M,Socket 1366)</em><br />
Memory<em>: 8 x Kingston DDR-3 1333MHz 4GB ECC REG. CL9 DIMM w/Parity &amp; Thermal Sensor</em><br />
HD<em>: 4 x WD WD10EARS 1 TB, SATA II 3Gb/s, 64 MB Cache</em></p>
<h3>Linux system:</h3>
<p>Fedora 12 x86_64</p>
<p>SELinux is disabled. Please refer here for detail: <a href="1233/disable-selinux-in-fedora/" target="_blank">Disabled SELinux on Fedora</a>.</p>
<p><em>ext3</em> is recommended for the file system of disk partition for <em>/boot</em>.</p>
<p>Update the system:</p>
<pre># yum update</pre>
<p>The Xen and libvirt packages in Fedora should not be installed to avoid conflict.</p>
<pre># yum erase xen* libvirt</pre>
<h3>Build and install Xen hypervisor and tools</h3>
<h4>Download Xen 3.4.3</h4>
<pre>$ wget http://bits.xensource.com/oss-xen/release/3.4.3/xen-3.4.3.tar.gz
$ tar xf xen-3.4.3.tar.gz</pre>
<h4>Build Xen and tools</h4>
<p>You may need to install packages depended by this. You can try this for solving the dependencies:</p>
<pre># yum install make gcc -y;
yum groupinstall "Development Libraries" -y;
yum groupinstall "Development Tools" -y;
yum install transfig texi2html
dev86 glibc-devel glibc-devel.i686
e2fsprogs-devel gitk mkinitrd
iasl xz-devel bzip2-devel
pciutils-libs pciutils-devel
SDL-devel libX11-devel gtk2-devel
bridge-utils PyXML qemu-common
qemu-img mercurial ed -y</pre>
<p>The we can make Xen and Xen tools:</p>
<pre>$ make xen
$ make tools</pre>
<h4>Install Xen and tools</h4>
<pre>$ make install-xen
$ make install-tools</pre>
<h3>Build and install xenified Linux kernel</h3>
<h4>Download Linux kernel 2.6.32.13</h4>
<pre>$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.13.tar.bz2
$ tar xf linux-2.6.32.13.tar.bz2</pre>
<h4>Download 2.6.32 Xen patches v2</h4>
<pre>$ wget http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.32-2.tar.bz2
$ mkdir xen-patches-2.6.32-2
$ tar xf xen-patches-2.6.32-2.tar.bz2 -C xen-patches-2.6.32-2</pre>
<h4>Apply Xen patches</h4>
<p>Apply all the patches downloaded above following the patch number.</p>
<p>You may need to install <em>patch</em> if it isn&#8217;t installed:</p>
<pre># yum install patch</pre>
<p>This patch.sh script can be used (we assume the patch and the kernel are in the same directory):</p>
<p><em>patch.sh:</em></p>
<pre>#!/bin/bash
for P in `ls ../xen-patches-2.6.32-2/6*.patch1 | sort`
do
    patch -p1 -s -i $P
    if [ $? = 0 ]; then
        echo $P applied
    else
        echo "Error processing "$P
        exit 1
    fi
done</pre>
<p>Put this script into Linux source directory and execute:</p>
<pre>$ sh ./patch.sh</pre>
<p>The structure of these directories are as follows:</p>
<pre>|
|-linux-2.6.32.13
|    |
|    `- patch.sh
` xen-patches-2.6.32-2
      |
      `- 6*.patch1</pre>
<h4>Configure Xenified Linux kernel</h4>
<p>A working configuration file that I used can be downloaded directly from here:</p>
<p><a href="http://fclose.com/f/2010/config-2.6.32.13-xenified">config-for-xenified-linux-2.6.32.13</a></p>
<p>Just download this file, put it into the kernel source code file directory and rename it to <em>.config</em> .</p>
<p>Other than use my configuration file, you can also configure it by yourself by using “<em>make menuconfig”</em>.</p>
<p>Make sure you build the kernel with these components enabled:</p>
<pre>Processor type and features  ---&gt;
 [*] Symmetric multi-processing support
 [*] Support sparse irq numbering
<strong> [*] Enable Xen compatible kernel</strong>
<strong></strong>
Device Drivers  ---&gt;
 XEN  ---&gt;
<strong> [*] Privileged Guest (domain 0)</strong>
 &lt;*&gt; Backend driver support (NEW)
 &lt;*&gt;   Block-device backend driver (NEW)
 &lt;*&gt;   Block-device tap backend driver (NEW)
<strong> &lt; &gt; Block-device tap backend driver 2 (NEW)</strong>
<strong> &lt;*&gt; Network-device backend driver (NEW)</strong>
 (8)     Maximum simultaneous transmit requests (as a power of 2) (NEW)
 [ ]     Pipelined transmitter (DANGEROUS) (NEW)
 &lt; &gt;     Network-device loopback driver (NEW)
<strong> &lt; &gt; PCI-device backend driver (NEW)</strong>
 &lt; &gt;   TPM-device backend driver (NEW)
 &lt;M&gt;   SCSI backend driver (NEW)
 &lt;M&gt;   USB backend driver (NEW)
 &lt;M&gt; Block-device frontend driver
 &lt;M&gt; Network-device frontend driver
 &lt;M&gt;   Network-device frontend driver acceleration for Solarflare NICs (NEW)
 &lt;M&gt; SCSI frontend driver (NEW)
 &lt;M&gt; USB frontend driver (NEW)
 [*]   Taking the HCD statistics (for debug) (NEW)
 [ ]   HCD suspend/resume support (DO NOT USE) (NEW)
 &lt;*&gt; User-space granted page access driver (NEW)
 &lt;*&gt; Framebuffer-device frontend driver (NEW)
 &lt;*&gt;   Keyboard-device frontend driver (NEW)
 [*] Disable serial port drivers (NEW)
 &lt;*&gt; Export Xen attributes in sysfs (NEW)
 (256) Number of guest devices (NEW)
<strong> Xen version compatibility (no compatibility code) ---&gt;</strong>
 [*] Place shared vCPU info in per-CPU storage (NEW)</pre>
<h4>Build kernel</h4>
<pre>$ make -jX</pre>
<p><em>X</em> can be two times of the number of the processor. We use this to let <em>make</em> invoke compilation work in X-way<em> </em>parallel.</p>
<h4>Install modules and kernel</h4>
<pre># make modules_install install</pre>
<h3>Configure grub</h3>
<p>Add one entry for Xen in <em>/boot/grub/grub.conf</em>. This is an example entry:</p>
<pre>title Xen 3.4.3 - Xenified Linux 2.6.32.13
  root (hd0,0)
  kernel /xen-3.4.3.gz console=vga vga=ask noreboot
  module /vmlinuz-2.6.32.13 ro root=/dev/mapper/VolGroup-LogVol_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us
  module /initramfs-2.6.32.13.img</pre>
<p>The root and other parameters may be different depending on the configuration.</p>
<h3>Make Xend and Xendomains services automatically start when system boots</h3>
<pre># cd /etc/init.d/
# chkconfig --add xend
# chkconfig --add xendomains</pre>
<p>Check whether Xend and Xendomains services are automatically started in level 3-5:</p>
<pre># chkconfig --list | grep xend</pre>
<p>It should be like this:</p>
<pre>xend               0:off    1:off    2:off    3:on    4:on    5:on    6:off
xendomains         0:off    1:off    2:off    3:on    4:on    5:on    6:off</pre>
<h3>Enjoy the fun now!</h3>
<p>After booting the system, you can try to use <em>xm</em> to check xen info</p>
<pre># xm info</pre>
<p>Then <em>xm</em> command can be used to start up DomUs.</p>
<h3>Making the performance more stable</h3>
<p>Allocating dedicated CPU core and memory for Dom0 may provide more stable performance for the Xen platform. Please refer to <a href="2258/managing-xen-dom0s-cpu-and-memory/" target="_blank">Managing Xen Dom0&#8242;s CPU and Memory/</a> for detailed instruction.</p>
<h3>Problems</h3>
<p>A list of common problems and tips can be found in <a href="2354/problems-during-installing-xen-dom0-in-fedora/" target="_blank">Problems during Installing Xen Dom0 in Fedora</a>.</p>
<p>Please refer to<br />
<a href="2367/xen-solutions/">Xen solution</a><br />
for the DomU solution and more Xen Dom0 solution.</p>
<p><span style="font-size: x-small;"><strong>Update history</strong><br />
Sep. 3, 2010. blktap driver is used instead of blktap2; PCI backend driver is disabled.<br />
Sep. 8, 2010. Add install patch; highlight PCI part in make menuconfig.<br />
Sep. 11, 2010. Delete DomU configure file which is not used.<br />
Oct. 19, 2010. Host config in this site.<br />
May. 1, 2011. Fix corrupted URL.<br />
May. 6, 2011. Add directory structure of Xen patch and Kernel src.<br />
Aug. 11, 2011. Add glibc-devel.i686 for depended packages.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2405/setting-up-stable-xen-dom0-with-fedora-xen-3-4-3-with-xenified-linux-kernel-2-6-32-13-in-fedora-12/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Setting up Stable Xen DomU with Fedora: Unmodified Fedora 11 with pv_ops Kernel</title>
		<link>http://fclose.com/b/linux/2418/setting-up-stable-xen-domu-with-fedora-unmodified-fedora-11-with-pv_ops-kernel/</link>
		<comments>http://fclose.com/b/linux/2418/setting-up-stable-xen-domu-with-fedora-unmodified-fedora-11-with-pv_ops-kernel/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 21:36:17 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[domu]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://pkill.info/b/?p=2418</guid>
		<description><![CDATA[Creating file-backed virtual block device (VBD) for Xen virtual machines and installing Fedora 11 in Xen DomU via internet will be introduced. The Dom0 platform on top of which this DomU is set up is introduced also in this site. Please refer to Xen solution for the latest stable Xen Dom0 solution. Create file-backed VBD: [...]]]></description>
			<content:encoded><![CDATA[<p>Creating file-backed virtual block device (VBD) for Xen virtual machines and installing Fedora 11 in Xen DomU via internet will be introduced.</p>
<p>The Dom0 platform on top of which this DomU is set up is introduced also in this site. Please refer to</p>
<p><a href="http://fclose.com/b/linux/2367/xen-solutions/">Xen solution</a></p>
<p>for the latest stable Xen Dom0 solution.</p>
<h3>Create file-backed VBD:</h3>
<p>The actual space of VBD will be the amount of disk the virtual machine used. And it will be convenient if the virtual machine will be duplicated since the work is just copying the VBD file and changing some configurations.</p>
<p>Create a 20GB sparse file-backed VBD:</p>
<pre># dd if=/dev/zero of=/lhome/xen/f11install/vmdisk0 bs=1k seek=20480k count=1</pre>
<p>Make a ext4 file system in the disk file:</p>
<pre># mkfs -t ext4 vmdisk0</pre>
<h3>Install Fedora 11 Linux via Internet</h3>
<p>First download the pxeboot kernel of Fedora 11 for installation via Internet. Download vmlinuz and initrd.img from here:</p>
<pre>http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/x86_64/os/images/pxeboot/</pre>
<p>We assume these two files are stored in /lhome/xen/f11install/.</p>
<p>Create an installation profile f11.install:</p>
<pre>name="F11INSTALL"
vcpus=2
memory=2048
disk = ['<strong>file</strong>:/lhome/xen/f11install/vmdisk0,xvda,w' ]
vif = [ 'bridge=eth0' ]
kernel = "/lhome/xen/f11install/vmlinuz"
ramdisk = "/lhome/xen/f11install/initrd.img"
on_reboot = 'restart'
on_crash = 'restart'</pre>
<p>The virtual machine’s name is “F11INSTALL”, memory is 2G, CPU number is 2, disk, kernel and ramdisk is prepared in the above steps.</p>
<p>Start this virtual machine and connect to this virtual machine’s console and complete the installation:</p>
<pre># xm create -c f11.install</pre>
<p>The console can be released by &#8220;<em>Ctrl+]&#8221;</em>. And it can be reconnected by:</p>
<pre># xm console F11INSTALL</pre>
<p>The installation of Fedora 11 will start. The gateway and DNS server should be set according to the network configuration.</p>
<p>The URL of installation source I used during installation is:</p>
<pre>http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/x86_64/os/</pre>
<p>After successfully installation of this virtual machine. It can be shut down by:</p>
<pre># xm shutdown F11INSTALL</pre>
<p>This virtual machine can be duplicated to get more VMs: <a href="http://fclose.com/b/linux/605/how-to-duplicate-xen-domu-virtual-machines/" target="_blank">How to duplicate Xen DomU virtual machines</a>.</p>
<h3>Start DomU</h3>
<p>Remember to <strong>update</strong> your system after the first boot. The 2.6.30 kernel is more stable running as DomU than the default one.</p>
<p>Create a profile <em>vm-10.0.0.123.run</em> for loading the virtual machine:</p>
<pre>name="10.0.0.123"
vcpus=2
memory=2048
disk = ['file:/lhome/xen/vm-10.0.0.123/vmdisk0,xvda,w' ]
vif = [ 'bridge=eth0' ]
bootloader = "/usr/bin/pygrub"
on_reboot = 'restart'
on_crash = 'restart'</pre>
<p>Here we use the PyGrub (“/usr/bin/pygrub”) as the bootloader. PyGrub starts Linux DomUs with the kernels that lie in the filesystem of the DomU instead of the kernels that lie in the filesystem of the Dom0. That makes the kernel update and management easier.</p>
<p>The blktap2 VBD driver has better performance than blkback backed VBD. The blkback backed driver is used here for safety writing to the disk. The disk driver can be changed to use blktap2 driver later after updating the system. A blktap2 driver can be configured like this:</p>
<pre>disk = ['tap:aio:/lhome/xen/f11install/vmdisk0,xvda,w' ]</pre>
<p>Then the DomU can be started using this profile:</p>
<pre># xm create vm-10.0.0.123.run</pre>
<p>The console of this DomU can be connected to:</p>
<pre># xm console vm-10.0.0.123</pre>
<p>The console can be released by &#8220;<em>Ctrl+]&#8221;</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2418/setting-up-stable-xen-domu-with-fedora-unmodified-fedora-11-with-pv_ops-kernel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

