<?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>Digital-Traffic.net &#187; migration</title>
	<atom:link href="http://digital-traffic.net/tag/migration/feed/" rel="self" type="application/rss+xml" />
	<link>http://digital-traffic.net</link>
	<description>Public thoughts of a network administrator</description>
	<lastBuildDate>Sun, 31 Jan 2010 21:02:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Upgrading to vSphere Part 2: Hosts and VMs</title>
		<link>http://digital-traffic.net/technology/upgrading-to-vsphere-part-2/</link>
		<comments>http://digital-traffic.net/technology/upgrading-to-vsphere-part-2/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 19:41:23 +0000</pubDate>
		<dc:creator>Brian Shacklett</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[virtual machines]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://digital-traffic.net/?p=215</guid>
		<description><![CDATA[In my last post I described my experience with upgrading from VirtualCenter 2.5 to vCenter4. Here I&#8217;ll be describing the process of upgrading the host machines via a couple of different methods as well as my process for getting the VMs upgraded to the latest verision of VMware&#8217;s virtual hardware. Upgrading Hosts VMWare has made [...]]]></description>
			<content:encoded><![CDATA[<p>
In my last post I described my experience with upgrading from VirtualCenter 2.5 to vCenter4. Here I&#8217;ll be describing the process of upgrading the host machines via a couple of different methods as well as my process for getting the VMs upgraded to the latest verision of VMware&#8217;s virtual hardware.
</p>
<p><span id="more-215"></span></p>
<h3>Upgrading Hosts</h3>
<p>
VMWare has made it very easy to upgrade hosts to ESX 4. I made use of two remote upgrade options in my migration:
</p>
<dl>
<dt>vCenter Update Manager</dt>
<dd>A centralized update management system which can handle anything from security updates to full ESX upgrades</dd>
<dt>The Host Update Utility</dt>
<dd>A standalone application built into the new vSphere client</dd>
</dl>
<h4>vCenter Update Manager</h4>
<p>
For the local host machines, I made use of vCenter&#8217;s update manager. This is an add-on for vCenter and it requires its own database, but I highly recommend using it. Its end functionality is similar to any built-in software update mechanism, but its flexibility is what makes it really impressive. For information on installing, please see the <a href="http://www.vmware.com/pdf/vsp_vum_40_admin_guide.pdf">administration guide</a>.
</p>
<p>
Update Manager works on the idea of a &#8220;baseline&#8221;: a set of minimum requirements that a target needs to meet to be considered compliant. Baselines can be applied at any level in the vCenter hierarchy. To handle the upgrade of our host machines, I created a baseline for ESX hosts specifying that they should be at level 4.0. I then applied this baseline at the datacenter level in both sites. In some cases it may be more apt to apply it at the cluster level, but we have no necessity for legacy hosts in our case.
</p>
<p>
Once the baseline was applied, I selected the host I wished to update and clicked the update manager tab. I could see, as expected, that it was not compliant with the upgrade baseline applied to it. In a DRS cluster, one should be able to click the remediate button and let vCenter do all of the work to migrate VMs off and put the host in maintenance mode prior to the upgrade. This requires that you keep a pretty clean environment, however.
</p>
<p>
In our case, we had some hosts that were unable to vMotion either due to snapshots or mapped drives, so I had to take care of things manually. As soon as the host was in maintenance mode, however, choosing remediate rebooted the host and performed the upgrade all on its own within about 20 minutes or so. The progress bar was fairly accurate at most points of the upgrade and once the host was back up, I could see that it was compliant with the baseline.
</p>
<h4>The Host Update Utility</h4>
<p>
One major concern in my case was a couple of hosts sitting on the other side of a slow (3mbps) WAN link. I’m sure you’ll agree that most IT tasks are at their best when they go unnoticed. Well, taking up a huge chunk of a site’s bandwidth while I transferred an ISO multiple times would certainly not win me any gold stars.
</p>
<p>
VMWare’s Update Manger is capable of staging updates on the target for later install, but this only works on hosts that are at 4.0 or above. It would also require moving the ISO over the WAN multiple times, because the updates are staged to the host rather than another vCenter or Update Manager server. This made the Host Update Utility a much more interesting option.
</p>
<p>
Fortunately, there’s already data replication going on between the main site and the remote one for DR purposes. I was able to mount a snapshot of one of our DR volumes and copy the ISO onto a file server in that site. Launching the host update utility for the first time, I received a prompt to download patches from VMWare. The servers then needed to be added by hostname from the file menu. Once they&#8217;re added, the host update utility will do a quick scan to find out what version they&#8217;re at. If it&#8217;s in an upgradable state, the &#8220;Upgrade Host&#8221; button will initiate the upgrade.
</p>
<p>
Overall the procedure from this point on is very similar to the update manager service. The one notable exception is that there is a lot less feedback regarding the status of the host. There were a few times where I was wondering if the hosts were stalled, but eventually the progress bar jumped forward and I could see that things were still working. For this reason, I definitely recommend using the update manager service where possible.
</p>
<h3>Upgrading VMs</h3>
<p>
To take full advantage of the new functionality in vSphere 4, the VMs, themselves, must be upgraded. ESX 3.x operated on virtual hardware version 4. vSphere uses version 7, which has a number of notable improvements in storage, networking, and hotswap capability. It&#8217;s important to note that there are <a href="http://blog.scottlowe.org/2009/07/05/another-reason-not-to-use-pvscsi-or-vmxnet3/">a few disappointments</a> with the new networking and storage modules, but overall it&#8217;s a large step forward. There is a useful article at <a href="http://www.boche.net/blog/">boche.net</a> that talks about <a href="http://www.boche.net/blog/index.php/2009/05/10/vsphere-memorycpu-hotplug-hot-add/">memory and CPU hotplug</a>.
</p>
<p>
Upgrading the VMs is a two step process requiring at least 2 reboots (my process includes 3). First, the VMWare tools installation must be upgraded in the guest operating system. This may be done either from the vSphere client or from within the guest OS by opening the VMWare tools console. In my case, I chose to upgrade from within the guest so I was keeping an eye on every step of the process. This may not be viable for anyone with a large number of VMs to update. Upgrading the VMWare tools will require a reboot.
</p>
<p>
Secondly, the virtual hardware needs to be upgraded. The virtual machine needs to be powered down for this step. It&#8217;s a simple matter of right-clicking the virtual machine and selecting &#8220;Upgrade virtual hardware&#8221;. A message will pop up notifying you that <em>this is a one-way process</em> and once it&#8217;s finished, <em>your upgraded VM will not work on older versions of ESX</em>. Keep this in mind if you have any legacy hosts staying in your environment.
</p>
<p>
The next time the guest OS boots, it will detect the new hardware and configure it. For Windows VMs, this will require another reboot. I haven&#8217;t, yet, tested the process on a Linux VM. Once the guest OS is finished rebooting, the upgrade process is complete.</p>
]]></content:encoded>
			<wfw:commentRss>http://digital-traffic.net/technology/upgrading-to-vsphere-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to vSphere Part 1: Installing vCenter</title>
		<link>http://digital-traffic.net/technology/upgrading-to-vsphere-part-1/</link>
		<comments>http://digital-traffic.net/technology/upgrading-to-vsphere-part-1/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 02:38:32 +0000</pubDate>
		<dc:creator>Brian Shacklett</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://digital-traffic.net/?p=179</guid>
		<description><![CDATA[Last week I started our migration from VMWare&#8217;s VI3 to vSphere. There are many improvements to the load balancing capabilities as well as the management capabilities. The storage engine has been greatly improved as well. Storage vMotion is available in the GUI without a plugin and thin provisioning is finally available, which is a huge [...]]]></description>
			<content:encoded><![CDATA[<p>
Last week I started our migration from VMWare&#8217;s VI3 to vSphere. There are many improvements to the load balancing capabilities as well as the management capabilities. The storage engine has been greatly improved as well. Storage vMotion is available in the GUI without a plugin and thin provisioning is finally available, which is a huge boon and reason enough to make the move on its own. Most of this process can be completed with no downtime for the virtual machines.
</p>
<p><span id="more-179"></span></p>
<h3>Environment</h3>
<p>Our environment is fairly small in terms of number of hosts, but we have most of the components in place, which makes for a very nice upgrade experience.</p>
<ul>
<li>A VirtualCenter Server v2.5 (primary data center)</li>
<li>Two host machines v3.5 (primary data center)</li>
<li>Two host machines v3.0 (disaster recovery data center)</li>
</ul>
<h3>Procedure</h3>
<p>
The first thing that needs to happen during the migration is upgrading the VirtualCenter server. vCenter 4 is very capable of managing legacy products, but it&#8217;s a good idea to take a look at the <a href="http://www.vmware.com/pdf/vsphere4/r40/vsp_compatibility_matrix.pdf">compatibility matrices</a> just to be safe.
</p>
<h4>Migration Strategy</h4>
<p>
The hardware that our current VirtualCenter Server was running on was less than adequate for running vCenter 4. So, I went ahead and built a new server to host vCenter. This had an added bonus of a very easy rollback plan if anything went wrong. All I would have to do is restore the database and boot up the old server. VMWare has an article that outlines part of this process at <a href="http://kb.vmware.com/kb/5850444">http://kb.vmware.com/kb/5850444</a>
</p>
<h4>Installation</h4>
<p>
To use the existing VirtualCenter database, a system DSN needs to be created to point to the existing database. Enter in the user credentials and set the default database to &#8220;VCDB&#8221; (or whatever your VirtualCenter database is called) and the rest of the settings should be fine at the defaults. It&#8217;s important to note that the VirtualCenter service should be stopped and disabled on the original server before proceeding from here. Bad things can happen if you have two servers trying to access that database.
</p>
<p>
After creating the DSN, I began installing vCenter4. I was greeted with an error saying: <em>&#8220;Please make sure SQL Server Agent service is running on the database server.&#8221;</em> This ended up being an issue with some maintenance jobs that I had set up when migrating the database. Renaming them resolved the issue.
</p>
<p>
The next thing to keep in mind is that VirtualCenter and vCenter make use of SSL certificates. These needed to be copied from the old VirtualCenter server. By default, they are located at <em>%AllUsersProfile%\Application Data\VMWare\VMWare VirtualCenter\SSL</em>. I copied the entire SSL folder onto the new server and vCenter found it without issue.
</p>
<h4>Post-install Configuration</h4>
<p>
From here on out, I let the installer do the rest of the work. In about 5 minutes I had a working vCenter server set up. At this point I had to connect the hosts to the new server. Before the ESX hosts can be connected, however, they need to be licensed. vCenter handles this by allowing you to specify the IP address of an external licensing server for legacy hosts. Adding the IP address the old VirtualCenter server will take care of this for the time being.
</p>
<p>
Each ESX host remembers the IP address of the VirtualCenter server that manages it to prevent conflicts. Right-clicking the server and selecting connect will make vCenter communicate with the hosts and override that information. It will then connect the the new vCenter server to the host.
</p>
<p>
I had a little trouble with our remote ESX hosts. It&#8217;s important that the <em>/tmp/vmware-root</em> directory exists on the target ESX host. If that&#8217;s not there, the vCenter server is unable to transfer binaries that are required to set up the connection. The folder can be created by the root user; default permissions should be fine. One of our servers was a little more difficult than the other and still would not connect after creating the temp directory. Restarting the <strong>vmware-mgmt</strong> service resolved this.
</p>
<h4>Still to come&#8230;</h4>
<p>
vCenter 4 is now managing our ESX 3 and ESX 3.5 hosts. In the next post I&#8217;ll walk through the process of upgrading the host machines and the virtual machines.</p>
]]></content:encoded>
			<wfw:commentRss>http://digital-traffic.net/technology/upgrading-to-vsphere-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
