<?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; Virtualization</title>
	<atom:link href="http://www.devtrends.com/index.php/category/virtualization/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>VCB Backup Script, vcbMounter</title>
		<link>http://www.devtrends.com/index.php/vcb-backup-script-vcbmounter/</link>
		<comments>http://www.devtrends.com/index.php/vcb-backup-script-vcbmounter/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 06:13:22 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Batch Files]]></category>
		<category><![CDATA[VCB]]></category>
		<category><![CDATA[zFeatured]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[vcbMounter]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=474</guid>
		<description><![CDATA[Although the VMware Consolidated Backup (VCB) software receives considerable flack for lacking features or functionality, the fact that it provides you with access to the raw VMDK files is enough...]]></description>
			<content:encoded><![CDATA[<p>Although the VMware Consolidated Backup (VCB) software receives considerable flack for lacking features or functionality, the fact that it provides you with access to the raw VMDK files is enough to alleviate all the missing functionality. As a side note, with Windows VMs, you can also use the vcbMounter program to mount the VM at a file level &#8212; which eliminates the need for backup client software on the VMs.</p>
<p><strong>Full VMDK Backups</strong></p>
<p>The first thing I&#8217;d like to point out is that the vcbMounter does not &#8220;mount&#8221; the datastore of the VM as one might imagine. When using the vcbMounter program to access the VMDK files, vcbMounter only copies the files to your VCB server. For smaller VMs, 30GB or so, this really isn&#8217;t much of an issue; however, for the larger VMs, say 300GB, this could pose a problem.</p>
<p>At first, you may be frustrated as the vcbMounter program is a quirky program. Unless you are lucky or brilliant, give yourself some time to play with the command options.</p>
<p>For my purposes, I use the following vcbMounter statement:</p>
<pre style="padding-left: 30px;">vcbmounter -h [VC or HOST] -u [USERNAME] -p [PASSWORD] -M 1 -a name:[VM NAME] -r [LOCATION]\%1_vmdk</pre>
<p><strong>vmdkbkp.bat</strong></p>
<p>As expected, I am backing up many VMs; who would have an ESX(i) host with only one VM? (that is an entirely different subject I may address another day). Instead of scheduling the full vcbMounter command with each backup script or scheduled task, I created a batch file I use to extract the VMDK files. If you are interested in my script, <a href="http://www.devtrends.com/downloads/vmdkbkp.zip">download here</a>.</p>
<pre style="padding-left: 30px;">@ECHO OFF
rem ----------------------------------------------------------------
rem Batch file to create a "mount" dump of a VM, as specified in %1.
rem Created, 11/23/2009, Aaron Gilbert, www.devtrends.com
rem
rem Usage: vmdkbkp.bat [server name]
rem  e.g.: vmdkbkp MYSERVERNAMEINESX
rem
rem ----------------------------------------------------------------

rem check to make sure the user supplied an argument
if "%1"=="" goto error

rem format date in yyyy-mm-dd to apply to a directory, use is %today%
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set today=%%c-%%a-%%b)

rem update the path statement so we can use vcbmounter
PATH=%PATH%;"C:\Program Files\VMware\VMware Consolidated Backup Framework\"

rem begin vcbmounter to copy the VMDK files down in file size (no 2GB split)
vcbmounter -h [VC or HOST] -u [USERNAME] -p [PASSWORD] -M 1 -a name:%1 -r [LOCATION]\%1_vmdk_%today%

rem lets finish up without error!
goto done

rem fail...
:error
echo.
echo Please provide one argument in the form of a VM server name, such as MYSERVERNAMEINESX
echo.

rem clean complete
:done</pre>
<p>The batch file requires only one argument, the name of the VM server you wish to backup. I use the batch file in conjunction with a non-traditional vcbMounter &#8220;mounting&#8221; approach. I &#8220;mount&#8221; with the intent of keeping that &#8220;mount&#8221; for an extended period of time. In addition to the vmdkbkp.bat file, I use another batch file to clean out the backup directory of all &#8220;mounted&#8221; directories older than a specific date. This allows me to keep the VMDK files on my backup-to-disk server for multiple weeks, while rotating out the older files.</p>
<pre style="padding-left: 30px;">@ECHO OFF
rem -------------------------------------------------------------
rem Batch file to remove all directories that are older than %1.
rem Created, 11/24/2009, Aaron Gilbert, www.devtrends.com
rem
rem Usage: clndir.bat [negative days]
rem  e.g.: clndir -3
rem
rem -------------------------------------------------------------

rem check to make sure the user supplied an argument
if "%1"=="" goto error

rem clean up the directory from all directories older than 3 days
forfiles.exe /p c:\backup\ /m *.* /d %1 /c "cmd /c if @isdir==TRUE rmdir /s /q @path"

rem lets finish up without error!
goto done

rem fail...
:error
echo.
echo Please provide one argument in the form of a negative number, such as -3
echo.

rem clean complete
:done</pre>
<p>Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/vcb-backup-script-vcbmounter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SSH as root on ESX Host</title>
		<link>http://www.devtrends.com/index.php/ssh-as-root-on-esx-host/</link>
		<comments>http://www.devtrends.com/index.php/ssh-as-root-on-esx-host/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 03:41:27 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[PermitRootLogin]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[SSHd]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=451</guid>
		<description><![CDATA[Although most normal actions can be performed from the VI or vSphere Client, when troubleshooting an issue with an ESX host you will likely need to access the terminal prompt....]]></description>
			<content:encoded><![CDATA[<p>Although most normal actions can be performed from the VI or vSphere Client, when troubleshooting an issue with an ESX host you will likely need to access the terminal prompt. If you open an SSH connection to your ESX host and attempt to sign in using “root”, you may receive “permission denied”. Follow the instructions below to enable root login through SSH. Oh and by the way, if you don’t have a good SSH client, <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">PuTTY</a> is the best choice.</p>
<p>From your ESX host console window, hit ALT-F1 to reach the prompt and sign in as root. At the terminal prompt, open the sshd_config file using the following command:</p>
<pre style="padding-left: 30px;"># nano /etc/ssh/sshd_config</pre>
<p>Find the line that states “PermitRootLogin” and change the value to yes. Save your file and exit nano (CTRL-O, CTRL-X). Now you will need to restart the SSH daemon.</p>
<pre style="padding-left: 30px;"># service sshd restart</pre>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/11/esxssh.jpg"></a><a href="http://www.developingtrends.net/wp-content/uploads/2009/11/esx-ssh.jpg"><img class="alignnone size-medium wp-image-452" title="esx ssh" src="http://www.devtrends.com/wp-content/uploads/2009/11/esx-ssh-300x166.jpg" alt="esx ssh" width="300" height="166" /></a></p>
<p>Now attempt to sign in as root from your SSH client.</p>
<p>-Aaron</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/ssh-as-root-on-esx-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>Custom iSCSI (IET) with VMware ESX</title>
		<link>http://www.devtrends.com/index.php/custom-iscsi-with-vmware-esx-no-go/</link>
		<comments>http://www.devtrends.com/index.php/custom-iscsi-with-vmware-esx-no-go/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 20:17:58 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[ESX 4.0]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[IET]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=163</guid>
		<description><![CDATA[As mentioned in my articles on building a custom server case and the iSCSI Enterprise Target on RedHat Enterprise Linux 5.3, sometimes there is the need to facilitate stiff project...]]></description>
			<content:encoded><![CDATA[<p>As mentioned in my articles on building a custom server case and the iSCSI Enterprise Target on RedHat Enterprise Linux 5.3, sometimes there is the need to facilitate stiff project requirements while spending nearly nothing. In a booming economy, it is unlikely that you would need to create your own production/enterprise worthy SAN environment. There is a reason a SAN is so expensive, even without the expensive SAS drives; it&#8217;s called engineering and manufacturing!</p>
<p>This article discusses issues I have come across while building or testing opensource iSCSI target software with various iSCSI initiators. I began testing the IET product on Ubuntu Server 8.04 with VMware ESXi 3.5, which worked well in a segregated lab. Then I moved forward to testing a &#8220;production&#8221; IET target with Microsoft&#8217;s iSCSI Software Initiator, which also worked exceptionally well. Finally, I moved into the VMware ESX 3.5 realm, which did not go well at all, initially.</p>
<p><strong>Test 1: VMware ESXi 3.5 and Ubuntu Server 8.04, iSCSI Enterprise Target (IET)</strong></p>
<p>The test was a combination of feasibility and reliability, with an emphasis on the feasibility aspect. For the Ubuntu Server that served as an iSCSI target, I used an older 1U Dell PowerEdge 850 server. The network fabric was a HP ProCurve 48 port switch, which was used for both the standard network environment in the lab and the iSCSI network.</p>
<p>The test went well with a new VM build to the iSCSI target of Windows Server 2003. Heck yes. The feasibility was there as it took an afternoon to make it happen. The reliability was also there, especially since everyone touts Linux as the most solid operating system in the world.</p>
<p><strong>Test 2: Microsoft iSCSI Initiator and IET</strong></p>
<p><a href="http://iscsitarget.sourceforge.net/">http://iscsitarget.sourceforge.net/</a><br />
<a href="http://www.microsoft.com/windowsserver2003/technologies/storage/iscsi/default.mspx">http://www.microsoft.com/windowsserver2003/technologies/storage/iscsi/default.mspx</a></p>
<p>Although I am a Microsoft guy by trade, when it comes to new technology I am generally weary of Microsoft&#8217;s implementation as a solid product. However, during my testing of the iSCSI Enterprise Target (IET) opensource target software (0.4.17), I have had absolutely no issues or concerns. After testing in a production lab environment, we moved to testing with our backup to disk project. In this instance, the iSCSI target is used for backups to disk and is hammered almost 24/7 by EMC Retrospect through the Microsoft iSCSI Software Initiator. The product has been running strong for 3 months as of 8/1/2009.</p>
<p><strong>Test 3: VMware ESX 3.5 to 4.0 and IET</strong></p>
<p>If you notice the title of this third test, you may gather that the initial testing did not go as well as was anticipated. In fact, I had a heck of a time getting the ESX 3.5 software iSCSI to even see the IET target from the start. At first I though the configuration was invalid, however, the Microsoft iSCSI Software Initiator worked exceptionally well with the same target with no reconfigurations.</p>
<p>To FINALLY get to a semi-solid state, I began with simplification&#8230;</p>
<p><em><span style="text-decoration: underline;">Simplify</span></em></p>
<p>As this was the third test, following two successful tests, I decided that I would enter the test with more features enabled, such as multipathing or bonding. This ended up over-complicating the project as there are some known issues with multipathing IET with VMware. To help resolve the issues with connectivity and failures, I went back to one gigabit link, no bonding or multipathing.</p>
<p><em><span style="text-decoration: underline;">Upgrade ESX host from 3.5 to 4.0</span></em></p>
<p>Following a technical support call with VMware, I decided to upgrade ESX to vSphere 4. The technical support person wanted me to update ESX 3.5 to the latest build, so I figured, let&#8217;s jump to the next level (should I have revisited &#8220;simplify&#8221;??).</p>
<p>Immediately following the ESX 4.0 installation, I was able to see the iSCSI LUNS. However, I was not able to use them as I kept receiving an error message about not being able to get disk information. If I remember correctly, this was resolved by using &#8220;blockio&#8221; type on the IET LUNs instead of &#8220;fileio&#8221;.</p>
<p><span style="text-decoration: underline;"><em>Modify IETd.conf to match ESX iSCSI settings</em></span></p>
<p>This change was to ensure that the VMware iSCSI software initiator shared the same &#8220;mindset&#8221; as the IET target. If I remember correctly, only ESX 4 hosts can modify the iSCSI initiator settings.</p>
<p><strong>Conclusion</strong></p>
<p>After running into a list of complexities getting IET to work well with VMware, I finally got it to play nicely for almost 2 weeks. And then&#8230;I received the an &#8220;unknown command&#8221; error in /var/log/messages and the IET target software jammed up causing the VMware virtual machines to lock up.</p>
<p>From my perspective, enough time has been given to IET and I do not feel as though it is ready for VMware &#8211; or that VMware is ready for it. I am, therefore, moving forward with OpenSolaris for two reasons, built in iSCSI target and ZFS. More to come&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/custom-iscsi-with-vmware-esx-no-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

