<?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>devtrends.com &#187; Xen</title>
	<atom:link href="http://www.devtrends.com/index.php/category/virtualization/xen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devtrends.com</link>
	<description>developing trends in information technology</description>
	<lastBuildDate>Tue, 06 Sep 2011 19:27:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing Xen (xVM) on OpenSolaris</title>
		<link>http://www.devtrends.com/index.php/installing-xen-xvm-on-opensolaris/</link>
		<comments>http://www.devtrends.com/index.php/installing-xen-xvm-on-opensolaris/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 03:46:58 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[xVM]]></category>
		<category><![CDATA[hypervisor]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=437</guid>
		<description><![CDATA[I have a friend that will try to &#8220;sell&#8221; an opensource, Linux, product as solution to just about any problem in the IT world. Although I am not adverse to...]]></description>
			<content:encoded><![CDATA[<p>I have a friend that will try to &#8220;sell&#8221; an opensource, Linux, product as solution to just about any problem in the IT world. Although I am not adverse to opensource products in the enterprise realm, IT professionals, such as myself, have become respectively reliant on support contacts with hardware and software vendors. A few years back and prior, support options were not generally available for opensource alternatives of &#8220;mainstream&#8221; solutions. Today this is not as true; with the demise of economic wealth came a rise for less-expensive, enterprise quality products. There are already a few opensource type operating systems with powerful features, such as <a href="http://www.redhat.com/" target="_blank">RedHat Enterprise Linux</a> (RHEL) and <a href="http://www.opensolaris.org/" target="_blank">OpenSolaris</a>, that have excellent support contact options. In addition, there are opensource solutions, such as <a href="http://www.asterisk.org/" target="_blank">Asterisk </a>the open source telephony project and <a href="http://www.zimbra.com/" target="_blank">Zimbra </a>the opensource email project, that also have support contact options. And to top it off, if the manufacturer does not have professional support, you can find support through <a href="http://www.findopensourcesupport.com/" target="_blank">FindOpenSourceSupport.com</a> or <a href="http://www.openlogic.com/" target="_blank">OpenLogic</a>. If great support options are available for opensource solutions, then why does IT spend significant capital on &#8220;closed&#8221; box solutions, such as VMware, when SUN&#8217;s xVM is robust and essentially free??</p>
<p>On to the true purpose of this artcle, let&#8217;s get virtualizing with OpenSolaris&#8217; rendition of Xen, SUN xVM.</p>
<p><strong>OpenSolaris</strong></p>
<p>I am going to assume that you already have OpenSolaris installed. At the time of this article, I was using 2009-06. The second assumption is that all the following commands are ran as root. The third assumption is that your installation of OpenSolaris has access to the Internet.</p>
<p><strong>Installing xVM</strong></p>
<p>In the first step we will create a new boot environment using the <a href="http://dlc.sun.com/osol/docs/content/dev/snapupgrade/reference2.html" target="_blank">beadm </a>tool. Option &#8220;-a&#8221; states to activate the new boot environment and the &#8220;-d xvm&#8221; defines the description for the boot environment. The final xvm is the name of the boot environment.</p>
<pre style="padding-left: 30px;"># pfexec beadm create -a -d xvm xvm</pre>
<p>The second step will install the xVM software packages into the newly created boot environment. The first command mounts the boot environment. The second command installs the xvm-gui package which has all of the xVM dependencies associated, forcing a full install of xVM.</p>
<pre style="padding-left: 30px;"># pfexec beadm mount xvm /tmp/xvm-be
# pfexec pkg -R /tmp/xvm-be install xvm-gui
# pfexec beadm umount xvm</pre>
<p><strong>Configuring your Grub Boot Menu</strong></p>
<p>The next step requires that you modify your boot menu, grub/menu.lst. In the new installation of OpenSolaris, this file will reside as /rpool/boot/grub/menu.lst. Use your favorite editor to open menu.lst:</p>
<pre style="padding-left: 30px;"># nano /rpool/boot/grub/menu.lst</pre>
<p>At the bottom of the file, add the following lines:</p>
<pre style="padding-left: 30px;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;">title xvm
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/xvm
kernel$ /boot/$ISADIR/xen.gz
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=text
module$ /platform/i86pc/$ISADIR/boot_archive</pre>
<p><em>Note: if you already have a &#8220;title xvm&#8221; section, and your installation was similar to mine, you will likely find that the boot configuration I specified above will work better. However, if you would like to try the boot configuration that was automatically entered, move along with the article and test a connection to the xVM services using the Virtual Machine Manager. If it fails, replace the &#8220;title xvm&#8221; with my version above and reboot.</em></p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/menulst.png"><img class="alignnone size-medium wp-image-443" title="menulst" src="http://www.devtrends.com/wp-content/uploads/2009/10/menulst-220x300.png" alt="menulst" width="220" height="300" /></a></p>
<p>Save the menu.lst file and reboot your OpenSolaris server:</p>
<pre style="padding-left: 30px;"># reboot</pre>
<p><strong>Enabling xVM Services</strong></p>
<p>The final step to installing the xVM hypervisor in OpenSolaris is to enable the services for xVM, this is accomplished with the following two commands:</p>
<pre style="padding-left: 30px;"># svcadm enable -r xvm/virtd
# svcadm enable -r xvm/domains</pre>
<p><strong>Jump In!</strong></p>
<p>Being that I am a Windows administrator by trade, I enjoy the GUI interface. Such would be my choice in any Linux environment too. Using the Applications menu choose System Tools &gt; Virtual Machine Manager and connect to the localhost.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/virtmgmt.png"><img class="alignnone size-medium wp-image-444" title="virtmgmt" src="http://www.devtrends.com/wp-content/uploads/2009/10/virtmgmt-300x243.png" alt="virtmgmt" width="300" height="243" /></a></p>
<p>As a final note, be sure to check out the <a href="http://hub.opensolaris.org/bin/view/Community+Group+xen/docs" target="_blank">documentation on OpenSolaris.org</a>.</p>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/installing-xen-xvm-on-opensolaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

