<?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>Virtualization Pro &#187; virtual machine</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/virtualization-pro/tag/virtual-machine/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/virtualization-pro</link>
	<description>A SearchVMware.com blog</description>
	<lastBuildDate>Fri, 22 Feb 2013 17:58:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Killing a frozen VM on a vSphere ESX host</title>
		<link>http://itknowledgeexchange.techtarget.com/virtualization-pro/killing-a-frozen-vm-on-a-vsphere-esx-host/</link>
		<comments>http://itknowledgeexchange.techtarget.com/virtualization-pro/killing-a-frozen-vm-on-a-vsphere-esx-host/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 15:34:34 +0000</pubDate>
		<dc:creator>Eric Siebert</dc:creator>
				<category><![CDATA[Eric Siebert]]></category>
		<category><![CDATA[stuck]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/virtualization-pro/?p=899</guid>
		<description><![CDATA[Occasionally virtual machines (VMs) get stuck in a zombie state and will not respond to a power-off command using the traditional vSphere client power controls. Rebooting a host will fix this condition &#8212; but rebooting is usually not an option. Fortunately, there are a few methods for forcing the VM to shut down without rebooting the [...]]]></description>
				<content:encoded><![CDATA[<p>Occasionally virtual machines (VMs) get stuck in a zombie state and will not respond to a power-off command using the traditional vSphere client power controls. Rebooting a host will fix this condition &#8212; but rebooting is usually not an option. Fortunately, there are a few methods for forcing the VM to shut down without rebooting the host.</p>
<p>I previously documented these methods with VMware Infrastructure 3 (VI3) and wanted to make sure they all worked with vSphere. The methods below are listed in order of usage preference starting with using normal VM commands and ending with a brute force method.</p>
<p><strong>Method 1 &#8211; Using the vmware-cmd service console command (the command-line interface equivalent of using the vSphere Client)</strong><span id="more-899"></span></p>
<ol type="1">
<li>Log in to the ESX service console.</li>
<li>The vmware-cmd command uses the configuration file name (.vmx) of the VM to specify the VM to perform an operation on. You can type vmware-cmd -l to get a list of all VMs on the host and the path and name of their configuration file. The path uses the Universally Unique Identifier (UUID) or long name of the data store; alternatively, you can use the friendly name instead. If you do not want to type the path when using the vmware-cmd command you can change to the VM&#8217;s directory and run the command without the path.</li>
<li>You can optionally check the power state of the VM by typing vmware-cmd &lt;VM config file path &amp; name&gt; getstate.</li>
<li>To forcibly shutdown a VM type vmware-cmd &lt;VM config file path &amp; name&gt; stop hard.</li>
<li>You can check the state again to see if it worked; if it did the state should now be off.</li>
</ol>
<p><a href="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/28/files/2009/06/kill1.jpg"><img class="alignnone size-medium wp-image-896" src="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/28/files/2009/06/kill1.jpg" alt="" width="642" height="212" /></a></p>
<p><strong>Method 2 &#8211; Using the vm-support command to shut down the VM by first finding the virtual machine ID</strong></p>
<p>&#8230;and then using the vm-support command to forcibly terminate it. This method does a lot more then shutting down the VM, as it also produces debugging information that you can use to troubleshoot an unresponsive VM.</p>
<ol type="1">
<li>Log in to the ESX Service Console.</li>
<li>The vm-support command is a multi-purpose command that is mainly used to troubleshoot host and VM problems. You can use the -X parameter to forcibly shutdown a VM and also produce a file with debugging information. This command will create a .tgz file in the directory that you run it in and cannot be run from a VMFS volume directory (running it in the /tmp directory is recommended). First type vm-support -x to get a list of the virtual machine IDs (VMID) of your running VMs.</li>
<li>To forcibly shut down the VM and generate core dumps and log files, type vm-support -X &lt;VMID&gt;. You will receive prompts asking if you want to take a screenshot of the VM. A screenshot can be useful to see if there are any error messages. You will also be prompted to see if you wish to send an NMI and an ABORT to the VM, which can aid in debugging. You must say yes to the ABORT prompt for the VM to be forcibly stopped. Once the process completes, which can take 10-15 minutes, a .tgz file will be created in the directory in which you ran the command that you can also use for troubleshooting purposes. To avoid filling up your file system when the file is created, switch to the /tmp directory when you run the command.</li>
<li>You can check the state of the VM again either by using the vmware-cmd command or by typing vm-support -x and you should not see the VMID for that VM listed anymore. Be sure and delete the .tgz file that is created when you are done to avoid filling up your host disk.</li>
</ol>
<p><a href="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/28/files/2009/06/kill2.jpg"><img class="alignnone size-medium wp-image-897" src="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/28/files/2009/06/kill2.jpg" alt="" width="644" height="340" /></a></p>
<p><strong>Method 3 &#8211; Using the kill command by first finding the process identifier (PID) of the VM and then using the kill command.</strong></p>
<ol type="1">
<li>Log in to the ESX service console.</li>
<li>The process status (ps) command in Linux shows the currently running processes on a server and the grep command finds the specified text in the output of the ps command. Type ps auxfww | grep &lt;virtualmachinename&gt; to get the process ID (PID) of the VM. You will have two entries returned, one is from the running of the ps command. The longer entry is the running VM process. The longer entry will end in the config file name of the VM and is the one you want to use; the number in the second column of that entry is the PID of the VM.</li>
<li>The kill command in Linux sends a signal to terminate a process using its ID number. The ‘-9&#8242; parameter forces the process to quit immediately and cannot be ignored like the more graceful ‘-15&#8242; parameter can sometimes be. Type kill -9 &lt;PID&gt; which will forcibly terminate the process for the specified VM.</li>
<li>You can check the state using the vmware-cmd command to see if it worked; if it did, the state should now be off.</li>
</ol>
<p><a href="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/28/files/2009/06/kill3.jpg"><img class="alignnone size-medium wp-image-898" src="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/28/files/2009/06/kill3.jpg" alt="" width="642" height="228" /></a></p>
<p>All three of these methods work identically on ESX hosts in both VI3 and vSphere. These methods also work for ESXi, but their execution is a bit different. In a future blog post we will cover how to use these methods with ESXi.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/virtualization-pro/killing-a-frozen-vm-on-a-vsphere-esx-host/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fixing VMware &#8220;no swap file&#8221; VM power-on failures</title>
		<link>http://itknowledgeexchange.techtarget.com/virtualization-pro/fixing-vmware-no-swap-file-vm-power-on-failures/</link>
		<comments>http://itknowledgeexchange.techtarget.com/virtualization-pro/fixing-vmware-no-swap-file-vm-power-on-failures/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 20:02:15 +0000</pubDate>
		<dc:creator>Eric Siebert</dc:creator>
				<category><![CDATA[Eric Siebert]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/virtualization-pro/?p=642</guid>
		<description><![CDATA[Recently I experienced a VMware HA event in my environment which caused the VMs on the affected hosts to be restarted on other servers. While most of the VMs started OK, there were a few that did not. When I manually tried to start them I received the error &#8220;Failed to power on VM &#8211; [...]]]></description>
				<content:encoded><![CDATA[<p>Recently I experienced a VMware HA event in my environment which caused the VMs on the affected hosts to be restarted on other servers. While most of the VMs started OK, there were a few that did not. When I manually tried to start them I received the error &#8220;Failed to power on VM &#8211; No swap file&#8221; and the VM would fail to start. What happened is that several VMs were in a zombie-like state, as they were not shut down gracefully. Even though their statuses were displayed as shutdown in the VMware Infrastructure Client (VI Client), there was still a process running on an ESX host that prevented it from being started.</p>
<p>In effect, while the VM&#8217;s OS was not running it will still in a running state on an ESX host and had a .vswp file already out there that could not be deleted. As a result, when another host tried to start it the .vswp file could not be created because the other host had a lock on it.</p>
<p>To resolve this situation I had to find out the host that still had a running process for the VM and forcibly terminate the process. To do so I had to log in to the service console of each host and run the following command:<strong> ps auxfww | grep <em>VM name</em></strong>. This command returns a list of running process that contain the name of the VM.</p>
<p>When you run the ps command with the VM name listed you will always have one result regardless of if the VM is actually running on the host. This is because the command itself shows up in the result list as the VM name is being used in the command when it is run. However, if the VM is actually running on the host you will receive two results instead of one. The second result will be much longer as it contains several lines of text and will contain the path to the .vmx file of the VM. This second result also contains the process ID (pid) of the VM which can be used to forcibly terminate it. The pid of the VM is located in the second column of the results right after the username (typically root). As you can see in the below example, the first result with a pid of 25914 is the command itself and the second result with a pid of 23896 is the running VM.</p>
<blockquote><p>[root@esx1 root]# ps auxfww | grep win2003-1</p>
<p>root     25914  0.0  0.2  3688  676 pts/0    S    13:17   0:00          \_ grep win2003-1</p>
<p>root     <strong>23896</strong> 0.0  0.2  2008  864 ?        S&lt;   Feb13   4:12 /usr/lib/vmware/bin/vmkload_app /usr/lib/vmware/bin/vmware-vmx -ssched.group=host/user -# name=VMware ESX Server;version=3.5.0;licensename=VMware ESX Server;licenseversion=2.0 build-123630; -@ pipe=/tmp/vmhsdaemon-0/vmxd0af4bb011822fc5; /vmfs/volumes/442d541b-cb5a815d-6083-0017a4a9c074/ win2003-1/ win2003-1.vmx</p></blockquote>
<p>Now that we know the pid of the VM (23896), to forcibly terminate it we type <strong>kill -9 23896</strong>. You can verify that the VM process has been terminated by running the ps command again. Only one result should be returned. Now that the VM has been stopped you can power it on using the VI Client and you should have no problems this time.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/virtualization-pro/fixing-vmware-no-swap-file-vm-power-on-failures/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using live CDs with virtual machines</title>
		<link>http://itknowledgeexchange.techtarget.com/virtualization-pro/using-live-cds-with-virtual-machines/</link>
		<comments>http://itknowledgeexchange.techtarget.com/virtualization-pro/using-live-cds-with-virtual-machines/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 15:39:26 +0000</pubDate>
		<dc:creator>Eric Siebert</dc:creator>
				<category><![CDATA[Eric Siebert]]></category>
		<category><![CDATA[Live CD]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/virtualization-pro/?p=429</guid>
		<description><![CDATA[Live CDs are bootable CD/DVD images that contain an operating system that you can boot from to perform various tasks on a server. When you boot from a live CD, the operating system from the server does not load. Instead the live CD operating system loads, allowing you access to the server&#8217;s file system. There [...]]]></description>
				<content:encoded><![CDATA[<p>Live CDs are bootable CD/DVD images that contain an operating system that you can boot from to perform various tasks on a server. When you boot from a live CD, the operating system from the server does not load. Instead the live CD operating system loads, allowing you access to the server&#8217;s file system. There are hundreds of free live CD’s available that you can download and use, and they are particularly useful for troubleshooting or repairing a problem with a server.</p>
<p>Most of these live CDs use one of the many Linux distributions as there is no cost for using them and they are very compact. There are also some Windows versions that use a special version of Windows called Windows PE. While physical servers usually rely on a physical CD/DVD which must be burned and placed in the server’s CD/DVD-ROM drive, virtual machines can make use of ISO images which are image files that can be directly mounted to a VM’s CD-ROM.</p>
<p>Live CDs have a wide range of functionality. It&#8217;s handy to have a good selection of them available. So when would you want to use a live CD?</p>
<p>•When you have a server that has been infected with a virus or spyware. Booting from a live CD will allow you to run scanning utilities to remove the infection without the server being active.<br />
•	When you have a corrupt operating system that will not boot or that crashes while booting. Booting from a live CD will allow you to repair corrupted files or configuration files.<br />
•	When you&#8217;re installing an application that renders a system unusable. Booting from a live CD will allow you to disable or uninstall the application.<br />
• When you’ve forgotten the administrator password to log in to your server. Booting from a live CD can allow you to crack or reset it.</p>
<p>Almost all live CD images are available as an ISO download which is ready to use on your virtual machines. You simply edit the settings for the virtual machine and select the CD/DVD-ROM drive and map it to either your client CD or a host data store where you can select the ISO file. It’s a good idea to have an ISO data store available to all your hosts that contains the ISO images so you can use them when needed.</p>
<p>As mentioned, there are many live CD images that you can download and use, so to get you started I’ve compiled a list of some of the best ones that will make a good addition to your ISO library.</p>
<p>•	<a href="http://www.ultimatebootcd.com/">Ultimate Boot CD</a> &#8211;  A Swiss Army knife boot CD which has many diagnostic, hard disk and file system tools as well as antivirus and network tools.<br />
•	<a href="http://www.ubcd4win.com/">Ultimate Boot CD for Windows</a> &#8211; A Windows version of the Ultimate Boot CD with a huge array of tools including many antivirus and antispyware, disk, file, security, password reset, network tools and much more.<br />
•	<a href="http://www.knopper.net/knoppix/index-en.html">Knoppix</a> &#8211; A Linux Live CD that contains many tools and utilities.<br />
•	<a href="http://www.remote-exploit.org/backtrack.html">Backtrack</a> &#8211; A huge selection of security tools that you can use to scan for vulnerabilities of your VMs.<br />
•	<a href="http://dnl-eu10.kaspersky-labs.com/devbuilds/RescueDisk/">Kaspersky Resce CD</a> &#8211; A Live CD with anti-virus scanner to clean infected systems.<br />
•	<a href="http://gparted.sourceforge.net/">Gnome Partition Editor</a> &#8211; A hard disk partition utility that lets you do all sorts of things with disk partitions and is particularly useful for resizing existing partitions on your VM after you have increased the size with vmkfstools or the VMware Infrastructure Client.<br />
•	<a href="http://ophcrack.sourceforge.net/">Ophcrack</a> &#8211; A utility that will crack forgotten Windows passwords.<br />
•	<a href="http://www.sysresccd.org/Main_Page">System Rescue CD</a> &#8211; A multi-purpose rescue CD that includes partition editors, file system utilities, password recovery and much more.</p>
<p>These are just a few of the live CDs available. If you would like to build your own live CD based on Windows PE check out the <a href="http://www.nu2.nu/pebuilder/">Bart PE website</a> for more info. You can also check out the <a href="http://www.livecdlist.com/">live CD list website</a> for a huge list of available live CD’s.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/virtualization-pro/using-live-cds-with-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Avoid disk space problems; monitor your snapshots</title>
		<link>http://itknowledgeexchange.techtarget.com/virtualization-pro/avoid-disk-space-problems-monitor-your-snapshots/</link>
		<comments>http://itknowledgeexchange.techtarget.com/virtualization-pro/avoid-disk-space-problems-monitor-your-snapshots/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 17:35:09 +0000</pubDate>
		<dc:creator>Eric Siebert</dc:creator>
				<category><![CDATA[Eric Siebert]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Snapshots]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/virtualization-pro/?p=401</guid>
		<description><![CDATA[In a VMware snapshot series I wrote a few months ago (How VMware snapshots work, Deleting virtual machine snapshots without wasting disk space and Troubleshooting VMware snapshots), I listed a few methods for finding snapshots that are running in your environment. I thought I would expand on those methods and also offer some new methods [...]]]></description>
				<content:encoded><![CDATA[<p>In a VMware snapshot series I wrote a few months ago (<a href="http://searchvmware.techtarget.com/tip/0,289483,sid179_gci1310147,00.html" target="_blank">How VMware snapshots work</a>, <a href="http://searchvmware.techtarget.com/tip/0,289483,sid179_gci1311854,00.html">Deleting virtual machine snapshots without wasting disk space</a> and <a href="http://searchvmware.techtarget.com/tip/0,289483,sid179_gci1313833,00.html">Troubleshooting VMware snapshots</a>), I listed a few methods for finding snapshots that are running in your environment. I thought I would expand on those methods and also offer some new methods for finding snapshots. Snapshots are a handy tool but leaving them running for any longer then necessary is not a good idea, (read the snapshot series for an explanation).</p>
<p>VMware’s vCenter Server does not provide a centralized mechanism for managing snapshots so subsequently you must resort to other methods if you want to find them. Let’s review the various methods that you can use to find snapshots. If you know how to find them, you&#8217;ll be aware of snapshots that are still running and won&#8217;t be (as) surprised later when your volumes run out of disk space.</p>
<p>The first method is fairly simple and relies on the find command that is part of the VMware ESX service console. To use it, log in to the service console, switch to your VMFS volume directory and type the following command. The command will find all files that have &#8216;delta&#8217; in their file names. Deltas indicate snapshot files.</p>
<pre>find –iname “*-delta.vmdk”</pre>
<p>Or, to find orphaned snapshots that have not been modified in a number of days, type:</p>
<pre>find –iname “*-delta.vmdk” –mtime +7 ls</pre>
<p>The second method requires one of the free Perl scripts (<a href="http://engineering.xtravirt.com/products/phd-technologies/snaphunter.html">SnapHunter</a> or <a href="http://vmprofessional.com/index.php?content=snapalert">SnapAlert</a>) that were written by VMware users. This method requires use of a small Perl script which can be run inside the ESX service console or with the remote command-line utility (Remote CLI) and will search for snapshots and create a report. (You have the option to email the report.) To use these scripts you copy it to the service console or the workstation/appliance running the Remote CLI, modify the script with your vCenter or ESX server name and log in credentials, and then run them.</p>
<p>I also listed a third method that used a VB script to query the vCenter Server’s VPX_SNAPSHOT table for active snapshots. While this method works, it will only show snapshots that vCenter Server is aware of and may not show orphaned snapshots or those taken outside of vCenter Server. Also, since the database design is subject to change with any vCenter Server upgrades, this may break any existing SQL queries. So I’d like to recommend a different method instead which involves using PowerShell and the VMware Infrastructure Toolkit to query for snapshots. You can use simple PowerShell commands to check for snapshots. There are a few sample scripts that you can use. You can find them at the following URLS:</p>
<blockquote><p><a href="http://www.peetersonline.nl/index.php/vmware/powershell-oneliner-4/">http://www.peetersonline.nl/index.php/vmware/powershell-oneliner-4/</a><br />
<a href="http://communities.vmware.com/docs/DOC-6980">http://communities.vmware.com/docs/DOC-6980</a></p></blockquote>
<p>Lastly, there are a few more methods that you can take advantage of by using a reporting or search application. Check out the freely available <a href="http://www.robware.net/">RV Tools</a> or vKernel’s <a href="http://www.vkernel.com/products/SearchMyVM/">SearchMyVM</a>. Both enable you to search and report on your virtual environment. These free tools are a good addition to any VMware environment. RV Tools is a .NET application that installs on a workstation and SearchMyVM is a virtual appliance that you can download and import to an ESX host.</p>
<p>Whichever method you choose, you should make sure to periodically look at the snapshots running in your environment. You can automate many of these queries (i.e. using a cron job or Windows task scheduler) so that they run on a scheduled basis. By staying on top of your snapshots, you ensure optimal performance of your hosts and VMs and also avoid disk space problems.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/virtualization-pro/avoid-disk-space-problems-monitor-your-snapshots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Three ways to temporarily move VMs off a VMware ESX host</title>
		<link>http://itknowledgeexchange.techtarget.com/virtualization-pro/temporarily-moving-vms-off-an-esx-host/</link>
		<comments>http://itknowledgeexchange.techtarget.com/virtualization-pro/temporarily-moving-vms-off-an-esx-host/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 19:44:32 +0000</pubDate>
		<dc:creator>Eric Siebert</dc:creator>
				<category><![CDATA[Eric Siebert]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/virtualization-pro/?p=367</guid>
		<description><![CDATA[I recently came across an ITKE question from a user that had some virtual machines (VMs) on an ESX host. He wanted to move the VMs off of it so he could reconfigure the server with more storage, reinstall ESX and then move the VMs back on to it. Presumably he only had one ESX [...]]]></description>
				<content:encoded><![CDATA[<p>I recently came across an ITKE question from a user that had some virtual machines (VMs) on an ESX host. He wanted to move the VMs off of it so he could reconfigure the server with more storage, reinstall ESX and then move the VMs back on to it. Presumably he only had one ESX host with only local disk. There are several options for accomplishing what he wanted to do.</p>
<p>First, you need to find alternate storage to place the VM’s on. This could be a workstation,  a Windows or Linux server or an NFS/iSCSI storage device with enough free space to temporarily hold the VMs. Once you find your temporary home, there are several methods that you can use to move the VMs.</p>
<p><strong>Method 1: Create a network-based data store</strong></p>
<p>The first method is the simplest and involves creating a network-based data store on the ESX host. You can do this with a network file system (NFS) or by using a software iSCSI initiator. If you have a Windows or Linux server that supports NFS, you can create a NFS share and then map your ESX host to it to use as a data store by creating a new data store. You can also setup one of the open-source iSCSI appliances like OpenFiler to use as a data store for your ESX host. Once you have a new data store you simply shut down the VMs and use the service console command-line tools to move the VM to the new data store. The vmkfstools –i command will allow you to clone the VMs disk to another VMFS datastore. Then, after you copy the VMs disk to the new data store, you simply add the data store back to the newly rebuilt ESX host and use vmkfstools –i to copy the disk back to it and create a new VM, and tell it to use an existing disk.</p>
<p><strong>Method 2: Use VMware Converter</strong></p>
<p>Another method is to use VMware Converter to migrate the VM to a local workstation or network drive. To do this just install Converter on the VM, choose to convert the local server, and for the destination choose “Other Virtual Machine.” You can then select a network path to store the new VM. It’s a good idea to resize the VM so there is less data to transfer; you can always resize it back to its original size when you move it back to the ESX host.</p>
<p><strong>Method 3: Use a secure copy (SCP) file transfer utility</strong></p>
<p>Finally, the last method is to use one of the secury copy (SCP) file transfer utilities to copy the VM&#8217;s files to a local workstation or network drive. <a href="http://www.veeam.com/esx-fastscp.html" target="_blank">FastSCP</a> works best for this. It copies data the fastest because it does not encrypt the data being copied. Then you simply copy the data back to the host after it is rebuilt and either re-register the VM or create a new one and tell it to use an existing disk.</p>
<p>Once you copy virtual disks to an ESX host it&#8217;s always a good idea to clone them before using them using vmkfstools as it allocates all the disk space at once which results in a disk with less fragmentation. Tools like FastSCP only allocate space as the data is copied which can result in more fragmentation of the virtual disk file. To clone a disk with vmkfstools just type vmkfstools –i  . Once the cloning process completes you can remove the existing disk from the VM and add a new one and browse to the newly created virtual disk.</p>
<p>Whichever method you choose, make sure you have a good backup of the VM before starting.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/virtualization-pro/temporarily-moving-vms-off-an-esx-host/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
