<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities : Document List - VI: VMware ESX™ 3.5</title>
    <link>http://communities.vmware.com/community/vmtn/vi/esx3.5?view=documents</link>
    <description>Latest Documents in VI: VMware ESX™ 3.5</description>
    <language>en</language>
    <pubDate>Fri, 30 Oct 2009 17:53:57 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-10-30T17:53:57Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Has anyone figured out VCB 1.5 custom quiescing scripts?</title>
      <link>http://communities.vmware.com/docs/DOC-11094</link>
      <description>Has anyone played with the custom scripts for VCB 1.5 / ESX3.5U2? According to the VM Backup Guide pg 52, the pre-freeze and post-thaw scripts are now located under C:\Program Files\VMware\VMware Tools\backupScripts.d.&lt;br /&gt;
&lt;br /&gt;
For pre-freeze, it says "All scripts are invoked in ascending alphabetical order with freeze as the first argument." I created a pre-freeze-script.bat and a freeze_script_1.bat under that directory. Neither worked. Also, C:\windows\pre-freeze-script.bat does not work either...&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Moderator" since there doesn't seem to be a VCB community, I posted here, please move if appropriate.&lt;br /&gt;
&lt;p /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Bump..... :o(&lt;br /&gt;
&lt;hr /&gt;
1.Make sure you installed the latest VMtools on the guest. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
2. We ended up using FREEZE.bat and that seems to work.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Thanks Jason - &lt;br /&gt;
&lt;br /&gt;
I renamed C:\Program Files\VMware\VMware Tools\backupScripts.d\freeze.bat to C:\Program Files\VMware\VMware Tools\backupScripts.d\FREEZE.bat&lt;br /&gt;
&lt;br /&gt;
That did not work. I ran a repair to vmware tools and then it worked. The file names are case sensitive.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
I used C:\Program Files\VMware\VMware Tools\backupScripts.d\THAW.bat for the thaw script. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
the problem is that scripts are launched twice. Before and after creation of snapshot.&lt;br /&gt;
&lt;p /&gt;
So before snapshot is made scripts are launched in ascending alphabetical order - freeze then thaw &lt;br /&gt;
&lt;p /&gt;
and after creation of snapshot in descending order - first thaw for the second time and then freeze ... as it written in backup guide&lt;br /&gt;
&lt;p /&gt;
but I don't understand why it's like that ...&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Here is what we have found out:&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Each script in the backupscripts.d folder will get ran for EACH Argument sent. So as a example before a backup snaps it will run each script in that folder with the argument of FREEZE starting with freeze.bat in that folder. When THAW is called the same thing happens. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
So if you have 3 scripts in that directory each will get ran for FREEZE and each will run for THAW. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
What we did was create 1 script that will take Arguments like FREEZE, THAW, FREEZEFAIL&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
you can verify this by creating 2 scripts in that directory that write the current time to a file. Run a VCB job and you will see that file get written to 4 times. 2 for the FREEZE and 2 for the THAW.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
Ok I understand but now how can I stop the database before the snap and start it after snap ? &lt;br /&gt;
&lt;p /&gt;
If I have two scripts, first for stopping the databases and second for starting them again, both scripts will run before and after the snap in the different order. That's no use.&lt;br /&gt;
&lt;p /&gt;
database will stop and start before snapshot and start again and stop after backup.&lt;br /&gt;
&lt;p /&gt;
In the previous versions of VCB it was ok.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Something like this:&lt;br /&gt;
&lt;br /&gt;
if "%1%" == "freeze" goto doFreeze&lt;br /&gt;
&lt;br /&gt;
goto doThaw&lt;br /&gt;
&lt;br /&gt;
:doFreeze&lt;br /&gt;
&lt;br /&gt;
call c:\windows\pre-freeze.bat&lt;br /&gt;
&lt;br /&gt;
goto EOF&lt;br /&gt;
&lt;br /&gt;
:doThaw&lt;br /&gt;
&lt;br /&gt;
call c:\windows\post-thaw.bat&lt;br /&gt;
&lt;br /&gt;
so you would create 1 script and have a section for Freeze and Thaw...&lt;br /&gt;
&lt;hr /&gt;
Ok now it works. &lt;br /&gt;
&lt;br /&gt;
The argument send by vcb was the missing factor ...&lt;br /&gt;
&lt;p /&gt;
Thanks.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
... there is one more thing&lt;br /&gt;
&lt;br /&gt;
after FREEZE section of the script is done snapshot is being made but it's not completed but finished in 95% and waiting.&lt;br /&gt;
&lt;p /&gt;
It is completed in 100% but not before a thaw section is done. Shouldn't snapshot be completed when database is stopped ?&lt;br /&gt;
&lt;p /&gt;
Is it normal ?&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Jason - &lt;br /&gt;
&lt;br /&gt;
What did you actually name the script? Is this a uppercase / lowercase thing as well? &lt;br /&gt;
&lt;p /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Lowser case. Freeze.bat&lt;br /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
It doesn't matter. VCB will execute anything that's in ...backuScripts.d folder.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
I tried a few file names before. The FREEZE.bat and THAW.bat seem to work no matter what the contents. But they execute twice. I think the " IF %1 == Freeze" statement makes it non-case sensitive. I have to test it out in my lab. On college tours with my daughter this week, so I have limited connectivity...&lt;br /&gt;
&lt;br /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
This is correct. Each script in that folder will run regardless of name for each operation. You will need to create 1 script that accepts Freeze and Thaw as arguments.&lt;br /&gt;
&lt;hr /&gt;
OK. I re-ran all of the tests again. All versions are confirmed as latest builds. I had to set the date back to allow the VM to power on because of the issues with ESX3.5U2...&lt;br /&gt;
&lt;p /&gt;
A script with "if %1% == "freeze'" as the first argument - it will execute as a pre freeze script.&lt;br /&gt;
&lt;br /&gt;
A script with "if %1% == "thaw"" as the first argument - it will execute as a post thaw script.&lt;br /&gt;
&lt;br /&gt;
If multiple scripts exist in backupScripts.d, AND the contain the argument, they are executed in order as documented (reverse for thaw)&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
HOWEVER....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
If the name of the file is freeze.bat, it will execute twice. If it is called thaw.bat, it will also execute twice. This has been confirmed by others.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Thanks to all for the assistance.&lt;br /&gt;
&lt;br /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
After further testing, I can confirm that ALL custom scripts placed in the backupScripts.d directory will execute during both the pre-freeze AND post-thaw events. This means that logic needs to be placed in the script so that the desired result is gained. If no "IF' statements are contained in the scripts, they will be executed during both the pre-freeze and post-thaw events, which could be undesireable. I also confirmed that these script names are NOT case-sensitive.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
thank you for this solution. I my situation it works only partly. If I manually stop service and than manually execute script in backupScripts.d directory script start service. If I start backup of VM via VCB than VCB send "freeze" and script stop the service but after a while job fail based on "Custom Pre-Freeze script failed". I don't know where I would looking for error &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/sad.gif" alt=":-(" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
You can try checking the logs on the VM under %TEMP% and on the ESX host in the VM's directory.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
************************&lt;br /&gt;
"There is an island of opportunity in the middle of every difficulty. Miss that, though, and you're pretty much doomed."&lt;br /&gt;
despair.com&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
I would like more accurately specify error message. During creating snapshot I get message:&lt;br /&gt;
&lt;br /&gt;
Creating quiesced snapshot failed ...... script in the virtual machine exited with non-zero return code.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
If you did not do a "COMPLETE" install of VMware Tools, the sync driver does not install. Run the VMware Tools installer and modify the install, then add the sync driver. If you are running ESX3.5 add the VSS driver too. See the attached screenshot.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
************************&lt;br /&gt;
"There is an island of opportunity in the middle of every difficulty. Miss that, though, and you're pretty much doomed."&lt;br /&gt;
despair.com&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
I add VSS driver - still sthe same. It looks like VCB don't send THAW argument.&lt;br /&gt;
&lt;hr /&gt;
Can you post a copy of the script you are running?&lt;br /&gt;
&lt;hr /&gt;
I took script code from this thread. I change only directory with "execution" scripts. &lt;br /&gt;
&lt;br /&gt;
if "%1%" == "freeze" goto doFreeze&lt;br /&gt;
&lt;p /&gt;
goto doThaw&lt;br /&gt;
&lt;p /&gt;
:doFreeze&lt;br /&gt;
&lt;p /&gt;
call "c:\Program Files\VMware\VMware Tools\services_scripts\freeze.bat"&lt;br /&gt;
&lt;p /&gt;
goto EOF&lt;br /&gt;
&lt;p /&gt;
:doThaw&lt;br /&gt;
&lt;p /&gt;
call "c:\Program Files\VMware\VMware Tools\services_scripts\thaw.bat"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Can you post " freeze.bat"&lt;br /&gt;
&lt;hr /&gt;
I'm not sure if the VSS driver actually NEEDS to pre-freeze / post-thaw. VSS does it differently. Assuming you are running ESX 3.5U2&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
************************&lt;br /&gt;
"There is an island of opportunity in the middle of every difficulty. Miss that, though, and you're pretty much doomed."&lt;br /&gt;
despair.com&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
You wrote that I shoul add VSS driver. I think VSS is especially for databases.&lt;br /&gt;
&lt;hr /&gt;
You wrote that I shoul add VSS driver &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";)" /&gt;. I think VSS is especially for databases.&lt;br /&gt;
&lt;hr /&gt;
I cant find it in the VM Backup Guide, but I think only the SYNC driver uses the scripts. I believe the VSS driver just uses VSS and the script is NOT required. The VSS driver takes care of quiescing the app and disk.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Dave&lt;br /&gt;
&lt;br /&gt;
************************&lt;br /&gt;
"There is an island of opportunity in the middle of every difficulty. Miss that, though, and you're pretty much doomed."&lt;br /&gt;
despair.com&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Correct, If you are using VMware's VSS provider then it will be called automatically by VCB.&lt;br /&gt;
&lt;hr /&gt;
Some additional information:&lt;br /&gt;
If the VSS driver is installed together with the recent VMware Tools the new location and behaviour is used for custum scripts. The scripts are called every time you start to use VCB.&lt;br /&gt;
&lt;br /&gt;
If you only have the the sync installed the old path under &amp;lt;%windir%&amp;gt;/system32 is used.&lt;br /&gt;
&lt;p /&gt;
The above isnt true for a guest VM which runs the WinXP OS. Because of a bug the old location is &lt;b&gt;always&lt;/b&gt; used. I have to to dig for the PR where VMware describes the problem.&lt;br /&gt;
&lt;p /&gt;
This drives me nuts because my Target system was first a W2k3 and later i testet with WinXP because i dont want to backup my 600GB production VM. &lt;br /&gt;
&lt;p /&gt;
Here is my current script which works around for every of my problems.&lt;br /&gt;
&lt;p /&gt;
Placed it under the new location ../VMware Tools/backupScripts.d&lt;br /&gt;
=========================================================&lt;br /&gt;
@echo off&lt;br /&gt;
&lt;p /&gt;
if "%1%" == "" goto noParam&lt;br /&gt;
if "%1%" == "freeze" goto doFreeze&lt;br /&gt;
if "%1%" == "thaw" goto dothaw&lt;br /&gt;
if "%1%" == "freezeFail" goto dofreezefail&lt;br /&gt;
goto wrongParam&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
:doFreeze&lt;br /&gt;
call c:\windows\pre-freeze-script.bat&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
:dothaw&lt;br /&gt;
call c:\windows\post-thaw-script.bat&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
:dofreezefail&lt;br /&gt;
call c:\windows\post-freezefail-script.bat&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
:noParam&lt;br /&gt;
echo "Usage: %0 "&lt;br /&gt;
echo At least one Parameter is needed!&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
:wrongParam&lt;br /&gt;
echo "Usage: %0 "&lt;br /&gt;
echo "%1" is not a valid parameter!&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
:Ende&lt;br /&gt;
========================================================&lt;br /&gt;
&lt;p /&gt;
Regards&lt;br /&gt;
Joerg&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Remember if you found this or others answers helpful do not forget to award points by marking an answer as helpful or correct **&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Some additional information:&lt;br /&gt;
If the VSS driver is installed together with the recent VMware Tools the new location and behaviour is used for custom scripts. The scripts are called every time you start to use VCB.&lt;br /&gt;
&lt;br /&gt;
If you only have the the sync installed the old path under &amp;lt;%windir%&amp;gt;/ is used.&lt;br /&gt;
&lt;br /&gt;
The above isnt true for a guest VM which runs the WinXP OS. Because of a bug the old location is &lt;b&gt;always&lt;/b&gt; used. I have to to dig for the PR where VMware describes the problem.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
This drives me nuts because my Target system was first a W2k3 and later i testet with WinXP because i dont want to backup my 600GB production VM. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Here is my current script which works around for every of my problems.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Placed it under the new location ../VMware Tools/backupScripts.d&lt;br /&gt;
=========================================================&lt;br /&gt;
@echo off&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
if "%1%" == "" goto noParam&lt;br /&gt;
if "%1%" == "freeze" goto doFreeze&lt;br /&gt;
if "%1%" == "thaw" goto dothaw&lt;br /&gt;
if "%1%" == "freezeFail" goto dofreezefail&lt;br /&gt;
goto wrongParam&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
:doFreeze&lt;br /&gt;
call c:\windows\pre-freeze-script.bat&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
:dothaw&lt;br /&gt;
call c:\windows\post-thaw-script.bat&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
:dofreezefail&lt;br /&gt;
call c:\windows\post-freezefail-script.bat&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
:noParam&lt;br /&gt;
echo "Usage: %0 "&lt;br /&gt;
echo At least one Parameter is needed!&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
:wrongParam&lt;br /&gt;
echo "Usage: %0 "&lt;br /&gt;
echo "%1" is not a valid parameter!&lt;br /&gt;
goto Ende&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
:Ende&lt;br /&gt;
========================================================&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Regards&lt;br /&gt;
Joerg&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Remember if you found this or others answers helpful do not forget to award points by marking an answer as helpful or correct **&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Altix, thank very much!!! Your script works.&lt;br /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
The scripts works fine!&lt;br /&gt;
&lt;p /&gt;
I'm only wondering wherefor the freezefail is? What the meaning of this argument?&lt;br /&gt;
&lt;p /&gt;
Can anyone tell?&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Regards,&lt;br /&gt;
&lt;p /&gt;
Matthijs&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
HA! I just saw your question..Only two months late....&lt;br /&gt;
&lt;br /&gt;
Freezefail is when the freeze process returns a non-zero code, allows you to do a little error notification or cleanup. &lt;br /&gt;
&lt;p /&gt;
Dave Convery&lt;br /&gt;
VMware vExpert 2009&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.dailyhypervisor.com/"&gt;http://www.dailyhypervisor.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Careful. We don't want to learn from this.&lt;br /&gt;
Bill Watterson, "Calvin and Hobbes"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/160702"&gt;Has anyone figured out VCB 1.5 custom quiescing scripts?&lt;/a&gt;</description>
      <pubDate>Fri, 30 Oct 2009 17:53:05 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-11094</guid>
      <dc:date>2009-10-30T17:53:05Z</dc:date>
      <clearspace:dateToText>3 weeks, 4 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>IETF X.509 Certificate Signature Collision Vulnerability</title>
      <link>http://communities.vmware.com/docs/DOC-10775</link>
      <description>&lt;br /&gt;
 Hi all, I have the next cuestion..&lt;br /&gt;
&lt;p /&gt;
How I know if this affect my VMWare ESX 3.5.0&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Vulnerability Report&lt;br /&gt;
.indent {&lt;br /&gt;
margin-left: 1cm;&lt;br /&gt;
}&lt;br /&gt;
.proof {&lt;br /&gt;
white-space: pre;&lt;br /&gt;
font-family: monospace;&lt;br /&gt;
width: 90%;&lt;br /&gt;
word-wrap: break-word;&lt;br /&gt;
}*CVE#:*&lt;br /&gt;
&lt;div class="indent"&gt;&lt;a class="jive-link-external" href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-2761"&gt;CVE-2004-2761&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;b&gt;Summary:&lt;/b&gt;&lt;br /&gt;
&lt;div class="indent"&gt;X.509 Certificates using the MD5 algorithm may be affected by &lt;br /&gt;
a vulnerability that can weaken security.&lt;br /&gt;
&lt;/div&gt;
&lt;b&gt;Details:&lt;/b&gt;&lt;br /&gt;
&lt;div class="indent"&gt;A vulnerability exists in X.509 certificates which, when &lt;br /&gt;
signed via MD5, may allow for phishing attacks. The flaw is specific to &lt;br /&gt;
weaknesses in the MD5 algorithm used to sign X.509 certificates. It is possible &lt;br /&gt;
for a potential attacker to generate multiple pairs of certificates, which share &lt;br /&gt;
like MD5 signatures. Typical exploration would allow the attacker to impersonate &lt;br /&gt;
a legitimate website.&lt;br /&gt;
&lt;/div&gt;
&lt;b&gt;Fix:&lt;/b&gt;&lt;br /&gt;
&lt;div class="indent"&gt;See references or contact the vendor for appropriate patch &lt;br /&gt;
information. Typically, this problem is associated with NSS libraries or FireFox &lt;br /&gt;
packages, among other applications.&lt;br /&gt;
&lt;br /&gt;
Note: According to a paper discussing &lt;br /&gt;
the vulnerability, written by the discovering team, creating rogue certificates &lt;br /&gt;
requires prior knowledge of a pre-signed certificate. Therefore it can be &lt;br /&gt;
assumed that any certificate created before the announcement of the &lt;br /&gt;
vulnerability is effectively safe from such an attack. If the certificate was &lt;br /&gt;
created prior to 2009, this issue can be considered a false positive. Any &lt;br /&gt;
certificate signed with MD5 created in 2009 or later, however, should be &lt;br /&gt;
replaced by a new certificate signed with a stronger hashing &lt;br /&gt;
method.&lt;br /&gt;
&lt;br /&gt;
Workaround:&lt;br /&gt;
&lt;br /&gt;
Utilize an alternative hashing method to sign &lt;br /&gt;
certificates (ex: SHA-256, SHA-512)&lt;/div&gt;
&lt;br /&gt;</description>
      <pubDate>Fri, 25 Sep 2009 00:01:35 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10775</guid>
      <dc:date>2009-09-25T00:01:35Z</dc:date>
      <clearspace:dateToText>2 months, 1 day ago</clearspace:dateToText>
    </item>
    <item>
      <title>How to expand the ESX Datastore on SAS RAID pools using CLI on IBM BCS</title>
      <link>http://communities.vmware.com/docs/DOC-10661</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=2411">blade</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">center</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">raid</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">expand</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">failed</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">ibm</category>
      <pubDate>Mon, 31 Aug 2009 06:01:01 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10661</guid>
      <dc:date>2009-08-31T06:01:01Z</dc:date>
      <clearspace:dateToText>2 months, 3 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Ghetto Tech Preview - ghettoVCB-restore.sh - Restoring VM's backed up from ghettoVCB to ESX(i) 3.5 and 4.0+</title>
      <link>http://communities.vmware.com/docs/DOC-10595</link>
      <description>&lt;h1&gt;Table of Contents:&lt;/h1&gt;
&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;Description&lt;/li&gt;
&lt;li&gt;Requirements&lt;/li&gt;
&lt;li&gt;Setup&lt;/li&gt;
&lt;li&gt;Usage&lt;/li&gt;
&lt;li&gt;Sample Execution&lt;/li&gt;
&lt;li&gt;Change Log&lt;/li&gt;
&lt;li&gt;Known Issues&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h2&gt;Description:&lt;/h2&gt;
&lt;br /&gt;
This script performs a restore of virtual machines backed up using &lt;b&gt;&lt;a class="jive-link-wiki" href="http://communities.vmware.com/docs/DOC-8760"&gt;ghettoVCB&lt;/a&gt;&lt;/b&gt;. Tasks are performed directly within the service console of the ESX(i) server involved in the restore process. This is currently a Ghetto Tech Preview that includes basic restore functionality. Two main use cases are supported in this release:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1)&lt;/b&gt;	Restore a VM that contains ALL VMDKs on one datastore&lt;br /&gt;
&lt;b&gt;2)&lt;/b&gt;	Restore a VM that has VMDKs located on multiple datastores&lt;br /&gt;
&lt;br /&gt;
In all cases, restored VMs will have VMDKs that reside on the SAME datastore chosen for the restore process. Please ensure that there is sufficient space on the target datastore before attempting a restore operation. In the near future, restoration of VMs backed up using the compression feature of ghettoVCB will be implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color:blue"&gt;Features&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Support for logging output&lt;/li&gt;
&lt;li&gt;Support for various debugging output&lt;/li&gt;
&lt;li&gt;Allow spaces in VM(s) backup list (not recommended and not a best practice)&lt;/li&gt;
&lt;li&gt;Support for restore in the following formats: &lt;b&gt;ZEROEDTHICK&lt;/b&gt; (default behavior), &lt;b&gt;2GB SPARSE&lt;/b&gt;, &lt;b&gt;THIN&lt;/b&gt; or &lt;b&gt;EAGERZEROEDTHICK&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Requirements:&lt;/h2&gt;
VMs backed up using &lt;b&gt;&lt;a class="jive-link-wiki" href="http://communities.vmware.com/docs/DOC-8760"&gt;ghettoVCB.sh&lt;/a&gt;&lt;/b&gt; on ESX(i) 3.5 or 4.0&lt;br /&gt;
SSH console access to ESX/ESXi 3.5 or 4.0 host&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Setup:&lt;/h2&gt;
&lt;b&gt;1)&lt;/b&gt; Download &lt;b&gt;ghettoVCB-restore.sh&lt;/b&gt; to either your ESX or ESXi&lt;br /&gt;
&lt;b&gt;2)&lt;/b&gt; Change the permissions on the script to ensure it can be executed:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;chmod +x ghettoVCB-restore.sh
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Usage:&lt;/h2&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB-restore.sh
###############################################################################
#
# ghettoVCB-restore for ESX/ESXi 3.5u2+ &amp;#38; 4.x+
# Author: William Lam
# http://www.engineering.ucsb.edu/~duonglt/vmware/
# Created: 08/18/2009
# Last modified: 08/25/2009
#
###############################################################################

Usage: ./ghettoVCB-restore.sh -c [VM_BACKUP_UP_LIST] -l [LOG_FILE]

OPTIONS:
   -c     VM backup list
   -l     File ot output logging

(e.g.)

Output will go to stdout
        ./ghettoVCB-restore.sh -c vms_to_restore

Output will log to /tmp/ghettoVCB-restore.log
        ./ghettoVCB-restore.sh -c vms_to_restore -l /tmp/ghettoVCB-restore.log

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Standard input for script is a file that contains:&lt;br /&gt;
&lt;b&gt;1)&lt;/b&gt;	Full path to the backed up VM&lt;br /&gt;
&lt;b&gt;2)&lt;/b&gt;	Full restore path&lt;br /&gt;
&lt;b&gt;3)&lt;/b&gt;	Restoration disk format&lt;br /&gt;
Reminder: When creating this file on a non-Linux/UNIX system, one may introduce ^M characters that will cause the script to misbehave. To ensure that this does not occur, please create the file on the ESX/ESXi host. &lt;br /&gt;
&lt;br /&gt;
Here is a sample of what the file should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# cat vms_to_restore
#&amp;quot;&amp;lt;DIRECTORY or .TGZ&amp;gt;;&amp;lt;DATASTORE_TO_RESTORE_TO&amp;gt;;&amp;lt;DISK_FORMAT_TO_RESTORE&amp;gt;&amp;quot;
# DISK_FORMATS
# 1 = zeroedthick
# 2 = 2gbsparse
# 3 = thin
# 4 = eagerzeroedthick
# e.g.
# &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/VCAP/VCAP-2009-08-18--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;1&amp;quot;
&amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/VCAP/VCAP-2009-08-20--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;1&amp;quot;
&amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/sideswipe/sideswipe-2009-08-20--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;1&amp;quot;
&amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/stupid ass vm with spaces/stupid ass vm with spaces-2009-08-20--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;2&amp;quot;
&amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/vMA-resize/vMA-resize-2009-08-23--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;3&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Comments in the input file is acceptable so long as the intended line is preceded by a #. The above sample VM restore file, &lt;b&gt;vms_to_restore&lt;/b&gt;, describes the following backup:&lt;br /&gt;
&lt;br /&gt;
&lt;table class="jive-wiki-table"&gt;
&lt;tr&gt;
&lt;td&gt;VM to restore&lt;/td&gt;
&lt;td&gt;Datastore to restore to&lt;/td&gt;
&lt;td&gt;VMDK format&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/VCAP/VCAP-2009-08-20--1&lt;/td&gt;
&lt;td&gt;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage&lt;/td&gt;
&lt;td&gt;zeroedthick&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/sideswipe/sideswipe-2009-08-20--1&lt;/td&gt;
&lt;td&gt;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage&lt;/td&gt;
&lt;td&gt;zeroedthick&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/stupid ass vm with spaces/stupid ass vm with spaces-2009-08-20--1&lt;/td&gt;
&lt;td&gt;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage&lt;/td&gt;
&lt;td&gt;2gbsparse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/vMA-resize/vMA-resize-2009-08-23--1&lt;/td&gt;
&lt;td&gt;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage&lt;/td&gt;
&lt;td&gt;thin&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br clear="left" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Sample Execution:&lt;/h2&gt;
&lt;br /&gt;
&lt;b&gt;Execute restore with output going to stdout (restore the first two VMs listed from above):&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Input file:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# cat vms_to_restore
&amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/VCAP/VCAP-2009-08-20--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;1&amp;quot;
&amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/sideswipe/sideswipe-2009-08-20--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;1&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB-restore.sh -c vms_to_restore
################## Restoring VM: VCAP  #####################
Start time: Sun Aug 23 22:31:26 PDT 2009
Restoring VM from: &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/VCAP/VCAP-2009-08-20--1&amp;quot;
Restoring VM to Datastore: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage&amp;quot; using Disk Format: &amp;quot;zeroedthick&amp;quot;
Creating VM directory: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP&amp;quot; ...
Copying &amp;quot;VCAP.vmx&amp;quot; file ...
Restoring VM's VMDK(s) ...
Updating VMDK entry in &amp;quot;VCAP.vmx&amp;quot; file ...
Destination disk format: VMFS zeroedthick
Cloning disk '/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/VCAP/VCAP-2009-08-20--1/VCAP.vmdk'...
Clone: 100% done.
Registering VCAP ...
End time: Sun Aug 23 22:32:32 PDT 2009
################## Completed restore for VCAP! #####################

################## Restoring VM: sideswipe  #####################
Start time: Sun Aug 23 22:32:32 PDT 2009
Restoring VM from: &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/sideswipe/sideswipe-2009-08-20--1&amp;quot;
Restoring VM to Datastore: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage&amp;quot; using Disk Format: &amp;quot;zeroedthick&amp;quot;
Creating VM directory: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/sideswipe&amp;quot; ...
Copying &amp;quot;sideswipe.vmx&amp;quot; file ...
Restoring VM's VMDK(s) ...
Updating VMDK entry in &amp;quot;sideswipe.vmx&amp;quot; file ...
Destination disk format: VMFS zeroedthick
Cloning disk '/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/sideswipe/sideswipe-2009-08-20--1/sideswipe.vmdk'...
Clone: 100% done.
Updating VMDK entry in &amp;quot;sideswipe.vmx&amp;quot; file ...
Destination disk format: VMFS zeroedthick
Cloning disk '/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/sideswipe/sideswipe-2009-08-20--1/4a31aece-e34d675a-72cf-003048d9586a/sideswipe.vmdk'...
Clone: 100% done.
Updating VMDK entry in &amp;quot;sideswipe.vmx&amp;quot; file ...
Destination disk format: VMFS zeroedthick
Cloning disk '/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/sideswipe/sideswipe-2009-08-20--1/4a31aece-e34d675a-72cf-003048d9586a/sideswipe_1.vmdk'...
Clone: 100% done.
Updating VMDK entry in &amp;quot;sideswipe.vmx&amp;quot; file ...
Destination disk format: VMFS zeroedthick
Cloning disk '/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/sideswipe/sideswipe-2009-08-20--1/sideswipe_1.vmdk'...
Clone: 100% done.
Registering sideswipe ...
End time: Sun Aug 23 22:34:46 PDT 2009
################## Completed restore for sideswipe! #####################


Start time: Sun Aug 23 22:31:26 PDT 2009
End   time: Sun Aug 23 22:34:46 PDT 2009
Duration  : 3.33 Minutes


---------------------------------------------------------------------------------------------------------------

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Execute restore with output going to log file &lt;b&gt;/tmp/ghettoVCB-restore.log&lt;/b&gt; (restore the last two VMs listed from above):&lt;br /&gt;
&lt;br /&gt;
Input file:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# cat vms_to_restore
&amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/stupid ass vm with spaces/stupid ass vm with spaces-2009-08-20--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;2&amp;quot;
&amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/vMA-resize/vMA-resize-2009-08-23--1;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage;3&amp;quot;

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB-restore.sh -c vms_to_restore -l /tmp/ghettoVCB-restore.log
Logging output to &amp;quot;/tmp/ghettoVCB-restore.log&amp;quot; ...

cat /tmp/ghettoVCB-restore.log
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Display debug information level 1&lt;/b&gt;:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB-restore.sh -c vms_to_restore -d 1

################ DEBUG MODE ##############
Virtual Machine: &amp;quot;VCAP&amp;quot;
VM_VMX: &amp;quot;VCAP.vmx&amp;quot;
VM_ORG_FOLDER: &amp;quot;VCAP-2009-08-20--1&amp;quot;
VM_FOLDER_NAME: &amp;quot;VCAP&amp;quot;
VMDK_LIST_TO_MODIFY:
scsi0:0.fileName = &amp;quot;VCAP.vmdk&amp;quot;
scsi0:0.fileName  = &amp;quot;VCAP-0.vmdk&amp;quot;
##########################################


################ DEBUG MODE ##############
Virtual Machine: &amp;quot;sideswipe&amp;quot;
VM_VMX: &amp;quot;sideswipe.vmx&amp;quot;
VM_ORG_FOLDER: &amp;quot;sideswipe-2009-08-20--1&amp;quot;
VM_FOLDER_NAME: &amp;quot;sideswipe&amp;quot;
VMDK_LIST_TO_MODIFY:
scsi0:0.fileName = &amp;quot;sideswipe.vmdk&amp;quot;
scsi0:0.fileName  = &amp;quot;sideswipe-0.vmdk&amp;quot;
scsi0:1.fileName = &amp;quot;/vmfs/volumes/4a31aece-e34d675a-72cf-003048d9586a/sideswipe/sideswipe.vmdk&amp;quot;
scsi0:1.fileName  = &amp;quot;sideswipe-1.vmdk&amp;quot;
scsi1:8.fileName = &amp;quot;/vmfs/volumes/4a31aece-e34d675a-72cf-003048d9586a/sideswipe/sideswipe_1.vmdk&amp;quot;
scsi1:8.fileName  = &amp;quot;sideswipe-2.vmdk&amp;quot;
scsi3:12.fileName = &amp;quot;sideswipe_1.vmdk&amp;quot;
scsi3:12.fileName  = &amp;quot;sideswipe-3.vmdk&amp;quot;
##########################################


Start time: Sun Aug 23 23:04:49 PDT 2009
End   time: Sun Aug 23 23:04:49 PDT 2009
Duration  : 0 Seconds

---------------------------------------------------------------------------------------------------------------

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Display debug information level 2&lt;/b&gt;:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB-restore.sh -c vms_to_restore -d 2
################## Restoring VM: stupid ass vm with spaces  #####################
==========&amp;gt; DEBUG MODE LEVEL 2 ENABLED &amp;lt;==========
Start time: Sun Aug 23 23:05:11 PDT 2009
Restoring VM from: &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/stupid ass vm with spaces/stupid ass vm with spaces-2009-08-20--1&amp;quot;
Restoring VM to Datastore: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage&amp;quot; using Disk Format: &amp;quot;2gbsparse&amp;quot;
Creating VM directory: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/stupid ass vm with spaces&amp;quot; ...
Copying &amp;quot;stupid ass vm with spaces.vmx&amp;quot; file ...
Restoring VM's VMDK(s) ...
Updating VMDK entry in &amp;quot;stupid ass vm with spaces.vmx&amp;quot; file ...

SOURCE: &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/stupid ass vm with spaces/stupid ass vm with spaces-2009-08-20--1/stupid ass vm with spaces.vmdk&amp;quot;
        ORIGINAL_VMX_LINE: --&amp;gt;scsi0:0.fileName = &amp;quot;stupid ass vm with spaces.vmdk&amp;quot;&amp;lt;--
DESTIONATION: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/stupid ass vm with spaces/stupid ass vm with spaces-0.vmdk&amp;quot;
        MODIFIED_VMX_LINE: --&amp;gt;scsi0:0.fileName  = &amp;quot;stupid ass vm with spaces-0.vmdk&amp;quot;&amp;lt;--
Updating VMDK entry in &amp;quot;stupid ass vm with spaces.vmx&amp;quot; file ...

SOURCE: &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/stupid ass vm with spaces/stupid ass vm with spaces-2009-08-20--1/4a31aece-e34d675a-72cf-003048d9586a/stupid ass vm with spaces.vmdk&amp;quot;
        ORIGINAL_VMX_LINE: --&amp;gt;scsi0:1.fileName = &amp;quot;/vmfs/volumes/4a31aece-e34d675a-72cf-003048d9586a/stupid ass vm with spaces/stupid ass vm with spaces.vmdk&amp;quot;&amp;lt;--
DESTIONATION: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/stupid ass vm with spaces/stupid ass vm with spaces-1.vmdk&amp;quot;
        MODIFIED_VMX_LINE: --&amp;gt;scsi0:1.fileName  = &amp;quot;stupid ass vm with spaces-1.vmdk&amp;quot;&amp;lt;--
Updating VMDK entry in &amp;quot;stupid ass vm with spaces.vmx&amp;quot; file ...

SOURCE: &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/stupid ass vm with spaces/stupid ass vm with spaces-2009-08-20--1/4a31aece-e34d675a-72cf-003048d9586a/stupid ass vm with spaces_1.vmdk&amp;quot;
        ORIGINAL_VMX_LINE: --&amp;gt;scsi0:2.fileName = &amp;quot;/vmfs/volumes/4a31aece-e34d675a-72cf-003048d9586a/stupid ass vm with spaces/stupid ass vm with spaces_1.vmdk&amp;quot;&amp;lt;--
DESTIONATION: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/stupid ass vm with spaces/stupid ass vm with spaces-2.vmdk&amp;quot;
        MODIFIED_VMX_LINE: --&amp;gt;scsi0:2.fileName  = &amp;quot;stupid ass vm with spaces-2.vmdk&amp;quot;&amp;lt;--
Registering stupid ass vm with spaces ...
End time: Sun Aug 23 23:05:11 PDT 2009
################## Completed restore for stupid ass vm with spaces! #####################

################## Restoring VM: vMA-resize  #####################
==========&amp;gt; DEBUG MODE LEVEL 2 ENABLED &amp;lt;==========
Start time: Sun Aug 23 23:05:11 PDT 2009
Restoring VM from: &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/vMA-resize/vMA-resize-2009-08-23--1&amp;quot;
Restoring VM to Datastore: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage&amp;quot; using Disk Format: &amp;quot;thin&amp;quot;
Creating VM directory: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vMA-resize&amp;quot; ...
Copying &amp;quot;vMA-resize.vmx&amp;quot; file ...
Restoring VM's VMDK(s) ...
Updating VMDK entry in &amp;quot;vMA-resize.vmx&amp;quot; file ...

SOURCE: &amp;quot;/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS/vMA-resize/vMA-resize-2009-08-23--1/vMA-resize.vmdk&amp;quot;
        ORIGINAL_VMX_LINE: --&amp;gt;scsi0:0.fileName = &amp;quot;vMA-resize.vmdk&amp;quot;&amp;lt;--
DESTIONATION: &amp;quot;/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/vMA-resize/vMA-resize-0.vmdk&amp;quot;
        MODIFIED_VMX_LINE: --&amp;gt;scsi0:0.fileName  = &amp;quot;vMA-resize-0.vmdk&amp;quot;&amp;lt;--
Registering vMA-resize ...
End time: Sun Aug 23 23:05:11 PDT 2009
################## Completed restore for vMA-resize! #####################


Start time: Sun Aug 23 23:05:11 PDT 2009
End   time: Sun Aug 23 23:05:11 PDT 2009
Duration  : 0 Seconds

---------------------------------------------------------------------------------------------------------------

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Change Log:&lt;/h2&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Known Issues:&lt;/h2&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">ghettovcb</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">restore</category>
      <pubDate>Mon, 24 Aug 2009 06:28:38 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10595</guid>
      <dc:date>2009-08-24T06:28:38Z</dc:date>
      <clearspace:dateToText>3 months, 22 hours ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
    </item>
    <item>
      <title>Kill PID process</title>
      <link>http://communities.vmware.com/docs/DOC-10553</link>
      <description>&lt;ol&gt;
&lt;li&gt;Stopping the virtual machine by issuing the command &lt;b&gt;vmware-cmd /vmfs/volumes/&amp;lt;datastorename&amp;gt;/&amp;lt;vmname&amp;gt;/&amp;lt;vmname&amp;gt;.vmx stop&lt;/b&gt;. This must be done on the ESX host where the Virtual Machine is running!&lt;/li&gt;
&lt;li&gt;If this does not work, one can issue the following command: &lt;b&gt;vmware-cmd /vmfs/volumes/&amp;lt;datastorename&amp;gt;/&amp;lt;vmname&amp;gt;/&amp;lt;vmname&amp;gt;.vmx stop&lt;/b&gt; &lt;b&gt;hard.&lt;/b&gt; This will try to kill the Virtual Machine instantly.&lt;/li&gt;
&lt;li&gt;A final solution is to kill the &lt;b&gt;PID (process ID)&lt;/b&gt;. Issue the following command: &lt;b&gt;ps auxfww | grep &amp;lt;vmname&amp;gt;&lt;/b&gt; to locate the correct PID (BTW: this cannot be done via *ESXTOP*). The first number to appear in the output is your PID. The PID can be used to terminate the process by issuing &lt;b&gt;kill -9 PID.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;There is a problem using PS to kill the running VM process, in that it can still leave the VM World running in the background. &lt;br clear="all" /&gt;	Another way to stop an errant VM is to issue the commands vm-support -x to list the running VMs and their World IDs, then vm-support -X worldid (note the x is case sensitive in both commands). This then prompts the user with a couple of questions, then runs a debug stop of the VM, and creates a set of log files as well that you can forward to VMware tech support for them to check if you so desire&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/113406"&gt;esxRanger and ESX 3.01 and Kill Process?&lt;/a&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">pid</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">command_line</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">kill</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">process</category>
      <pubDate>Mon, 17 Aug 2009 16:41:20 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10553</guid>
      <dc:date>2009-08-17T16:41:20Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>Script : Listing of all datastores and extents</title>
      <link>http://communities.vmware.com/docs/DOC-10459</link>
      <description>This simple script is listing all datastores AND extents of your host server.&lt;br /&gt;
I wrote this one because sometimes our Storage team is requesting us if they could work on specifics LUN IDs, and if these are just additional extents, I had to review one-by-one all the properties of each datastores (and clusters).&lt;br /&gt;
I had enough, so .. voilà !&lt;br /&gt;
&lt;br /&gt;
Enjoy,&lt;br /&gt;
&lt;br /&gt;
Eric&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;i&gt;#!/bin/bash&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;# Listing of LUNs extents&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;echo "List of LUNs extents :"&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;for filename in $(ls -la /vmfs/volumes/ |grep ^l |awk '{ print $NF }') ;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;do&lt;/i&gt;&lt;br /&gt;
 &lt;i&gt;echo "------------------------------------------------"&lt;/i&gt;&lt;br /&gt;
 &lt;i&gt;echo "Datastore Name : " $(vmkfstools -P /vmfs/volumes/$filename/ -h | grep label |awk '{ print $NF }')&lt;/i&gt;&lt;br /&gt;
 &lt;i&gt;vmkfstools -P /vmfs/volumes/$filename/ -h | grep vmhba&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;done&lt;/i&gt;&lt;br /&gt;
 &lt;i&gt;echo "------------------------------------------------"&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;echo "All done !"&lt;/i&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vmfs</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">extents</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">script</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">luns</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">lun</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">san</category>
      <pubDate>Thu, 06 Aug 2009 12:45:18 GMT</pubDate>
      <author>eric.paquay@gmail.com</author>
      <guid>http://communities.vmware.com/docs/DOC-10459</guid>
      <dc:date>2009-08-06T12:45:18Z</dc:date>
      <clearspace:dateToText>3 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Fax hardware for vm's?</title>
      <link>http://communities.vmware.com/docs/DOC-10284</link>
      <description>Have anyone found a solution for running fax software in a vm and fax hardware on the network? Currently I can only find some ISDN pci cards and that doesn't work with a vm. I hope that a solution like AnywhereUSB for usb devices is out there just for faxing.&lt;br /&gt;
&lt;hr /&gt;
You could use good old COM Modems even COM ISDN Modems would help you&lt;br /&gt;
&lt;hr /&gt;
COM modems work great, and unlike PCI modems, when a COM modem locks, you cycle its power. When a PCI modem locks, you cycle the whole host. Not a good thing on an ESX host.&lt;br /&gt;
&lt;hr /&gt;
I believe GFi do an IP Based solution..&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.gfi.com/"&gt;http://www.gfi.com/&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;
GFI has IP based software, but requires a PBX or some other hardware device to manage fax calls.&lt;br /&gt;
&lt;br /&gt;
It seems that there currently aren't any available product for virtualization other than traditionel serial attached solutions (modems) that can be connected by tcp/ip&lt;br /&gt;
&lt;hr /&gt;
I strongly suggest the IP based soluton.... better if using an ethernet connection over optical fibers, yes it requires some additional hardware but it decouples your ESX server from the phone lines (something you still have to consider with COM modems).&lt;br /&gt;
Think at what could happen if, during a thunderstorm, lighting hits the phone line where the modem is connected... it can blew up your ESX server!&lt;br /&gt;
And don't tell me the chances are low.. it has already happened.. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/sad.gif" alt=":(" /&gt;&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
&lt;br /&gt;
Antonello&lt;br /&gt;
&lt;hr /&gt;
Another reason to use IP based solutions and decouple fax modems from the host a VM runs on is that they make moving VMs around (VMotion) a lot harder if not impossible.&lt;br /&gt;
&lt;br /&gt;
Frank.&lt;br /&gt;
&lt;hr /&gt;
Agreed.&lt;br /&gt;
&lt;br /&gt;
We are using RightFax from Captaris in this same setup.  We have the Fax Work Server in a VM and the two remote board servers are stand alone physicals with the full length PCI card.  We went with this option because it provided a good measure of redundancy in the critical patient care setup of pharmacy prescription transmission in both the front end and back end aspects.&lt;br /&gt;
&lt;hr /&gt;
We are about to try GFI Faxmaker with Eicon Diva Soft IP on an ESX 3 VM, coupled to Cisco CM. &lt;br /&gt;
I'll keep you posted on whether it works!!&lt;br /&gt;
&lt;hr /&gt;
We are in the process of getting two PowerEdge 2900's and had planned on putting in a Brooktrout fax card in each.  We have RightFax to send scripts to pharmacies.  If we run Rightfax on a VM, does anyone know if their is a problem with using one or both fax boards and then if a PE2900 fails everything will still works because one of the fax board resources is still available.&lt;br /&gt;
&lt;hr /&gt;
If you're using ESX, the fax cards will not work at all.&lt;br /&gt;
&lt;br /&gt;
VMware ESX server has no support for devices such as fax cards, which is why our fax servers are remaining as physical servers.&lt;br /&gt;
&lt;br /&gt;
As far as VMware Server goes, I would imagine the same issue would apply.&lt;br /&gt;
&lt;hr /&gt;
Here's a good post on the very question you're posing:&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/community/thread.jspa?messageID=396541&amp;#38;#396541"&gt;http://www.vmware.com/community/thread.jspa?messageID=396541&amp;#38;#396541&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It deals with VMware Server (GSX) but it still holds.  Basically, with an internal card, you're SOL.&lt;br /&gt;
&lt;br /&gt;
Here's a clip from that posting that sums up the issue pretty well (thanks FP@PM!):&lt;br /&gt;
&lt;br /&gt;
"The concept of a hosted virtual machine is that the vserver can be moved to any host server and work. Any device on the host must be seen by the host and must have a VMware virtual counterpart. So yes your host will see you Fax Card but a virtual server on that host will only see a serial port. So if your software on the virtual server can make use of a comm port the application will work, but if it need the drivers of the card to function then it will not."&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Hi , &lt;br /&gt;
I'm interested in your test , can you provide more details ?&lt;br /&gt;
I understand you'll install GFI Faxmaker on a VM and use a fax board on a different physical server equipped with EICON SOFT IP , am I right ?&lt;br /&gt;
How it worked ?&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;hr /&gt;
With Eicon  Diva soft IP you don't need any fax hardware what so ever!&lt;br /&gt;
&lt;br /&gt;
We've got the server talking directly to the Cisco Voice Router which is connected to an ISDN line (we found it easier not to configure Call Manager) so in theroy VMotion should work. &lt;br /&gt;
&lt;br /&gt;
The software was just over &amp;pound;400 for 2 lines and we're just about to pilot with the first 10 users. Adding more lines is just a software upgrade. &lt;br /&gt;
&lt;br /&gt;
One thing worth mentioning is that Eicon Diva Soft IP looks like it comes with a USB dongle if you read some manuals but it doesn't.&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/66207"&gt;Fax hardware for vm's?&lt;/a&gt;</description>
      <pubDate>Thu, 02 Jul 2009 18:29:25 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10284</guid>
      <dc:date>2009-07-02T18:29:25Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Buslogic to Lsi</title>
      <link>http://communities.vmware.com/docs/DOC-10268</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=2411">lsilogic_buslogic</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">lsi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">buslogic</category>
      <pubDate>Wed, 01 Jul 2009 11:57:54 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-10268</guid>
      <dc:date>2009-07-01T11:57:54Z</dc:date>
      <clearspace:dateToText>2 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>How-to Setup Internal routing on VI3i Host with Vyatta Virtual Router</title>
      <link>http://communities.vmware.com/docs/DOC-9617</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">networking</category>
      <pubDate>Mon, 09 Mar 2009 15:39:55 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9617</guid>
      <dc:date>2009-03-09T15:39:55Z</dc:date>
      <clearspace:dateToText>8 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>after insert a hot-plugable Disk into my proLiant , How to use max capacity</title>
      <link>http://communities.vmware.com/docs/DOC-9659</link>
      <description>&lt;br /&gt;
Hello Welcome to the community,&lt;br /&gt;
&lt;p /&gt;
I'm a Esxi starter an have a Problem after plug in a 4th Disk into my Dell ProLiant server.&lt;br /&gt;
&lt;p /&gt;
The Dell  ArrayConfigurationUtility expands my  existing logical Drive and set the capacity from 268 GB to 410 GB.&lt;br /&gt;
&lt;p /&gt;
That's fine up to here. In the VI Client under &amp;lt;configuration&amp;lt;strorage&amp;lt;properties the Device shows Capacity 410 GB but on the left site &lt;br /&gt;
&lt;p /&gt;
there is an extent with capacity 268 gb. If i klick on the add extent button i get an empty Form.&lt;br /&gt;
&lt;p /&gt;
How can I get max capacity on the extent or is it possible to expand the extent.&lt;br /&gt;
&lt;p /&gt;
Thanks &lt;br /&gt;
&lt;p /&gt;
Heiko Mevius</description>
      <pubDate>Mon, 09 Mar 2009 09:18:14 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9659</guid>
      <dc:date>2009-03-09T09:18:14Z</dc:date>
      <clearspace:dateToText>8 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>ghettoVCB with log to file</title>
      <link>http://communities.vmware.com/docs/DOC-9653</link>
      <description>I took the liberty to tweek lamw's awsome script&lt;br /&gt;
&lt;br /&gt;
I simply add a variable called  LOG_FILE_LOCATION and had most of the ECHO command to pipe in a file.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
You can get the original script here &lt;a class="jive-link-wiki" href="http://communities.vmware.com/docs/DOC-8760"&gt;ghettoVCB.sh - Free alternative for backing up VM's for ESX(i) 3.5 and 4.0+&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
I used the script on ESXi and had no problems with it...&lt;span style="color:#ff0000"&gt;this dosen't mean you should'nt test it before!!!&lt;/span&gt; &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;All credits for the script should go to lamw&lt;/b&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">ghettovcb</category>
      <pubDate>Wed, 04 Mar 2009 17:19:35 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9653</guid>
      <dc:date>2009-03-04T17:19:35Z</dc:date>
      <clearspace:dateToText>8 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Exchange Server 2007 Design Considerations</title>
      <link>http://communities.vmware.com/docs/DOC-9537</link>
      <description />
      <pubDate>Wed, 18 Feb 2009 21:06:27 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9537</guid>
      <dc:date>2009-02-18T21:06:27Z</dc:date>
      <clearspace:dateToText>9 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>Virtualizing Microsoft Exchange Server 2007</title>
      <link>http://communities.vmware.com/docs/DOC-9536</link>
      <description />
      <pubDate>Wed, 18 Feb 2009 20:59:49 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9536</guid>
      <dc:date>2009-02-18T20:59:49Z</dc:date>
      <clearspace:dateToText>9 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>Installing ESX 3.5 on Workstation</title>
      <link>http://communities.vmware.com/docs/DOC-9535</link>
      <description />
      <pubDate>Wed, 18 Feb 2009 20:56:25 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9535</guid>
      <dc:date>2009-02-18T20:56:25Z</dc:date>
      <clearspace:dateToText>9 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>Hp and Vmware</title>
      <link>http://communities.vmware.com/docs/DOC-9534</link>
      <description />
      <pubDate>Wed, 18 Feb 2009 20:53:42 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9534</guid>
      <dc:date>2009-02-18T20:53:42Z</dc:date>
      <clearspace:dateToText>9 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>Can't Add Harddisk capacity 500 GB</title>
      <link>http://communities.vmware.com/docs/DOC-9380</link>
      <description>I have VM on ESX 3.5 when i try add hard disk capacity 500 GB have error "a general system error occurred: The file is too big for the filesystem"</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <pubDate>Wed, 21 Jan 2009 06:07:07 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9380</guid>
      <dc:date>2009-01-21T06:07:07Z</dc:date>
      <clearspace:dateToText>10 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>DualCPU w/ different CPUID &amp;#38; Microcode Level</title>
      <link>http://communities.vmware.com/docs/DOC-9376</link>
      <description>Hello All,&lt;br /&gt;
&lt;br /&gt;
I have a IBM HS21 XM in a BladeCenter S chassis w/ 2 Xeon Quad core&lt;br /&gt;
CPUs . Both cpus are the same speed but they have different CPUIDs and&lt;br /&gt;
Microcode levels.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
ESX 3i 3.5.0 build-123629  will load and run fine w/ 1 cpu but freezes while booting if both cpus are installed.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Thanks for any help,&lt;br /&gt;
&lt;p /&gt;
Scott</description>
      <pubDate>Tue, 20 Jan 2009 23:16:08 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9376</guid>
      <dc:date>2009-01-20T23:16:08Z</dc:date>
      <clearspace:dateToText>10 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>ghettoClone.sh - Automate cloning VM(s) for ESX/ESXi 3.5u2+ utilizing VMware VIMA: RCLI + VI Perl Toolkit</title>
      <link>http://communities.vmware.com/docs/DOC-9321</link>
      <description>&lt;h2&gt;Description &lt;/h2&gt;
&lt;br /&gt;
This script utilizes &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_rcli.pdf"&gt;VMware RCLI&lt;/a&gt; (Remote command line interface) and &lt;a class="jive-link-external" href="http://www.vmware.com/support/developer/viperltoolkit/viperl15/doc/perl_toolkit_utilities_idx.html"&gt;VMware VI Perl Toolkit&lt;/a&gt; found in &lt;a class="jive-link-external" href="http://www.vmware.com/download/download.do?downloadGroup=VI-RCLI-U2"&gt;VMware VIMA&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
VMware currently provides few automated options to clone existing virtual machines that require the use of Virtual Center. That is, virtual machine cloning can be achieved through the use of VI Client and tools like &lt;b&gt;“vmclone.pl”&lt;/b&gt; (which is part of the VI Perl Toolkit) however it is a stringent requirement that Virtual Center must be present in the virtual infrastructure to take advantage of these options. In contrast, virtual machine cloning can also be achieved manually by executing a sequence of commands through the Service Console. The benefit of this option is that Virtual Center is not needed however it quickly becomes cumbersome and impractical if a large number of virtual machines are to be cloned.&lt;br /&gt;
&lt;br /&gt;
The motivation for this script ( &lt;b&gt;ghettoClone.sh&lt;/b&gt; ) then is to provide administrators with a means to automatically clone and deploy a large subset of virtual machines into a virtual environment without requiring tedious Service Console work or Virtual Center. Furthermore, for ease of accessibility, the free VMware VIMA appliance was chosen as the central launch point for the cloning process. &lt;b&gt;ghettoClone.sh&lt;/b&gt; is executed from within VIMA and is compatible with both ESX and ESXi 3.5u2+. It accepts a single source virtual machine along with inputted configuration parameters to tailor cloned virtual machines.  &lt;br /&gt;
&lt;br /&gt;
Please note that &lt;b&gt;ghettoClone.sh&lt;/b&gt; will generate full one to one copies of the source VM (which include all VMDK files associated with it). Each cloned virtual machine will inherit all attributes pertaining to the source VM except that of the UUID bio/location ID’s and display name which will be unique across all generated clones. If you're looking to deploy Linked Clones, please refer to this script instead: &lt;a class="jive-link-external" href="http://communities.vmware.com/docs/DOC-9020"&gt;http://communities.vmware.com/docs/DOC-9020&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color:red"&gt;Important Note:&lt;/span&gt;&lt;/b&gt; Upon execution of the cloning process, the user will be prompted to select an available datastore where cloned virtual machines will be stored. It is up to the user to ensure that there is enough space prior to executing the cloning process. This includes but is not limited to considering swap file sizes and room for possible snapshots. The cloning process will begin immediately after confirmation of the datastore so please proceed with caution. It is recommended that the &lt;b&gt;dry run&lt;/b&gt; process is executed before committing to a configuration.  &lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Requirements:&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;VMware VIMA (virtual appliance)&lt;/li&gt;
&lt;li&gt;ESX/ESXi 3.5u2+&lt;/li&gt;
&lt;li&gt;my-vmregister.pl (modified version of the sample code provided by VMware) [Download at the bottom]&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h2&gt;Usage:&lt;/h2&gt;
&lt;br /&gt;
&lt;b&gt;ghettoClone.sh input parameters:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Usage: ./ghettoClone.sh [-h SERVER] [-v VM_TO_CLONE] [-n NAMING_CONVENTION] [-s START] [-e END] [-f NAME_FILE] -d

Please quote your params if you dare to use spaces in your naming conventions!
Ensure this script is being executed on VMware VIMA and your ESX/ESXi hosts are 3.5u2+

OPTIONS:
   -h   ESX/ESXi 3.5+ Server IP or Hostname
   -v   VM to clone (VM display name)
   -n   Clone naming convention
   -s   Starting value
   -e   Ending value
   -f   File containg naming convention for VM clones (separate each name with newline)
   -d   Dry run, produces only text output of what would be executed based on input parameters

(e.g.)
        ./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB_TEST -n &amp;quot;UCSB-CLONE-&amp;quot; -s 1 -e 10
        ./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB_TEST -n &amp;quot;UCSB-CLONE-&amp;quot; -s 1 -e 10 -d
        ./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB_TEST -f cloneInputFile.txt
        ./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB_TEST -f cloneInputFile.txt -d
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Use cases&lt;/h2&gt;
&lt;br /&gt;
There are 2 supported use cases:&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Option 1 - &lt;/span&gt;&lt;/b&gt; Deploy clones from source VM by specifying a cloned VM naming convention and amount (start/end parameter) of clones. &lt;/h4&gt;
&lt;br /&gt;
&lt;h4&gt;&lt;b&gt;&lt;span style="color:green"&gt;Option 2 - &lt;/span&gt;&lt;/b&gt; Deploy clones from source VM by specifying a subset of VM names through an input file. The amount of cloned VMs will directly correlate with the amount of display names present in the input file. &lt;/h4&gt;
&lt;br /&gt;
Both use cases support the &lt;b&gt;“Dry Run”&lt;/b&gt; feature which allows the user to simulate and validate execution of the script before actual execution of the cloning process. &lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Prerequisite&lt;/h2&gt;
&lt;br /&gt;
Prior to starting, ensure that the VMware VIMA host is managing the appropriate ESX or ESXi 3.5u2+ hosts (those that will be utilizing the ghettoClone.sh script). The script uses VMware VI Fast Pass authentication to connect to the ESX/ESXi server(s). The following steps will demonstrate how to set this up prior to executing the script. &lt;br /&gt;
&lt;br /&gt;
1. Add ESX/ESXi hosts to VIMA managment using  &lt;b&gt;vifp&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A password prompt for the vi-admin account and root password to the pertinent ESX/ESXi host(s) will be presented.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ sudo vifp addserver olga.resnet.ucsb.edu
root@olga.resnet.ucsb.edu's password:
[vi-admin@vima-primp-industries ~]$

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. Verify that the appropriate hosts are being managed by VIMA&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ sudo vifp listservers
olga.resnet.ucsb.edu
himalaya.primp-industries.com

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
3. Lastly, prior to running any of the RCLI or VI Perl Toolkits that utilize VI Fast Pass (not all can), run the following command on the appropriate ESX/ESXi host(s).&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ vifpinit olga.resnet.ucsb.edu

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
To remove a server from VIMA, use the argument &lt;b&gt;“removeserver”&lt;/b&gt; on the host and provide the appropriate credentials. &lt;br /&gt;
&lt;br /&gt;
Now, you're ready to begin!&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Example execution &lt;/h2&gt;
&lt;h3&gt;Environment&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;ESXi 3.5u3 host &lt;/li&gt;
&lt;li&gt;Source VM 1 is Windows XP SP2 with 2 VMDK's (10 GB and 50 MB) named &lt;b&gt;UCSB_TEST&lt;/b&gt; stored on local storage&lt;/li&gt;
&lt;li&gt;Source VM 2 is Windows XP SP2 with 2 VMDK's (10 GB and 100 MB) named &lt;b&gt;UCSB-ENGINEERING&lt;/b&gt; stored on FC LUN&lt;/li&gt;
&lt;li&gt;Clone 3 VMs &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span style="color:blue"&gt;Option 1&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
1. Dry run execution&lt;br /&gt;
&lt;div class="jive-quote"&gt;./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB_TEST -n "UCSB-RESNET-CLONE-" -s 1 -e 3 -d&lt;/div&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ ./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB_TEST -n &amp;quot;UCSB-RESNET-CLONE-&amp;quot; -s 1 -e 3 -d

Retrieving info from: olga.resnet.ucsb.edu ...
Selection    Available space       Maximum Capacity     Type                 Name
1)           34.18 GB              124.75 GB            VMFS                 dlgCore-FC-LUN200.Templates
2)           244.61 GB             255.25 GB            VMFS                 olga-local-SAS.Storage
3)           91.58 GB              151.75 GB            VMFS                 dlgCore-FC-LUN202.VMstorage2
4)           29.19 GB              152.75 GB            VMFS                 dlgCore-FC-LUN203.VMstorage3
5)           53.29 GB              150.75 GB            VMFS                 dlgCore-FC-LUN201.VMstorage1
6)           exit

Please select a datastore in which the cloned virtual machines will be stored:
2
#################### DRY RUN MODE ####################
# Temp working directory: tmp_clone_2009-01-09_144356
# ESX Server to initiate clone: olga.resnet.ucsb.edu
# SOURCE VM: UCSB_TEST
# SOURCE VM PATH: [http://olga-local-SAS.Storage|http://olga-local-SAS.Storage] UCSB_TEST/UCSB_TEST.vmx
# SOURCE VM DIR: [http://olga-local-SAS.Storage|http://olga-local-SAS.Storage] UCSB_TEST
# SOURCE VM DATASTORE: [http://olga-local-SAS.Storage|http://olga-local-SAS.Storage]
# DESTINATION VM DATASTORE: [http://olga-local-SAS.Storage|http://olga-local-SAS.Storage]
# VMDK-[0]: -&amp;gt;UCSB_TEST_1.vmdk&amp;lt;-
# VMDK-[1]: -&amp;gt;UCSB_TEST.vmdk&amp;lt;-
# 2 valid VMDK(s) total
# Clone naming convention: UCSB-RESNET-CLONE-{1-3}
# 3 clone(s) to create
##################################################

Start time: Fri Jan  9 14:36:59 PST 2009
End   time: Fri Jan  9 14:37:04 PST 2009
Duration  : 5 Seconds

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. Select a datastore and start clone duplication ( &lt;b&gt;note&lt;/b&gt;: in this instance, duplication will take place on the same datastore [local storage: source and destination]. Duplication may be faster on FC/iSCSI/NFS and dissimilar source and destination datastores.)&lt;br /&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB_TEST -n "UCSB-RESNET-CLONE-" -s 1 -e 3&lt;/div&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ ./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB_TEST -n &amp;quot;UCSB-RESNET-CLONE-&amp;quot; -s 1 -e 3

Retrieving info from: olga.resnet.ucsb.edu ...
Selection    Available space       Maximum Capacity     Type                 Name
1)           34.18 GB              124.75 GB            VMFS                 dlgCore-FC-LUN200.Templates
2)           244.61 GB             255.25 GB            VMFS                 olga-local-SAS.Storage
3)           91.57 GB              151.75 GB            VMFS                 dlgCore-FC-LUN202.VMstorage2
4)           29.19 GB              152.75 GB            VMFS                 dlgCore-FC-LUN203.VMstorage3
5)           53.29 GB              150.75 GB            VMFS                 dlgCore-FC-LUN201.VMstorage1
6)           exit

Please select a datastore in which the cloned virtual machines will be stored:
2

0% Complete! - Creating clone &amp;quot;UCSB-RESNET-CLONE-1&amp;quot; - 0/3 - Time elapsed: 5 Seconds
0% Complete! - Creating clone &amp;quot;UCSB-RESNET-CLONE-1&amp;quot; - 0/3 - Time elapsed: 31 Seconds
...
0% Complete! - Creating clone &amp;quot;UCSB-RESNET-CLONE-1&amp;quot; - 0/3 - Time elapsed: 6.67 Minutes
33% Complete! - Creating clone &amp;quot;UCSB-RESNET-CLONE-2&amp;quot; - 1/3 - Time elapsed: 6.77 Minutes
...
33% Complete! - Creating clone &amp;quot;UCSB-RESNET-CLONE-2&amp;quot; - 1/3 - Time elapsed: 13.43 Minutes
66% Complete! - Creating clone &amp;quot;UCSB-RESNET-CLONE-3&amp;quot; - 2/3 - Time elapsed: 13.52 Minutes
...
66% Complete! - Creating clone &amp;quot;UCSB-RESNET-CLONE-3&amp;quot; - 2/3 - Time elapsed: 20.45 Minutes
100% Complete! - Creating clone &amp;quot;UCSB-RESNET-CLONE-3&amp;quot; - 3/3 - Time elapsed: 20.53 Minutes

Start time: Fri Jan  9 14:48:23 PST 2009
End   time: Fri Jan  9 15:08:56 PST 2009
Duration  : 20.55 Minutes

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span style="color:green"&gt;Option 2&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
0. Input file&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ cat toCloneList
ALima
AAmbrosio
MKerr
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The script accepts a file listing display names of the VM clones to be created. Each needs to be separated by a newline.&lt;br /&gt;
&lt;br /&gt;
1. Dry run execution&lt;br /&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB-ENGINEERING -f toCloneList -d&lt;/div&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ ./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB-ENGINEERING -f toCloneList -d

Retrieving info from: olga.resnet.ucsb.edu ...
Selection    Available space       Maximum Capacity     Type                 Name
1)           52.83 GB              124.75 GB            VMFS                 dlgCore-FC-LUN200.Templates
2)           244.61 GB             255.25 GB            VMFS                 olga-local-SAS.Storage
3)           91.50 GB              151.75 GB            VMFS                 dlgCore-FC-LUN202.VMstorage2
4)           29.19 GB              152.75 GB            VMFS                 dlgCore-FC-LUN203.VMstorage3
5)           53.29 GB              150.75 GB            VMFS                 dlgCore-FC-LUN201.VMstorage1
6)           exit

Please select a datastore in which the cloned virtual machines will be stored:
3
#################### DRY RUN MODE ####################
# Temp working directory: tmp_clone_2009-01-09_151630
# ESX Server to initiate clone: olga.resnet.ucsb.edu
# SOURCE VM: UCSB-ENGINEERING
# SOURCE VM PATH: [http://dlgCore-FC-LUN200.Templates|http://dlgCore-FC-LUN200.Templates] UCSB-ENGINEERING/UCSB-ENGINEERING.vmx
# SOURCE VM DIR: [http://dlgCore-FC-LUN200.Templates|http://dlgCore-FC-LUN200.Templates] UCSB-ENGINEERING
# SOURCE VM DATASTORE: [http://dlgCore-FC-LUN200.Templates|http://dlgCore-FC-LUN200.Templates]
# DESTINATION VM DATASTORE: [http://dlgCore-FC-LUN202.VMstorage2|http://dlgCore-FC-LUN202.VMstorage2]
# VMDK-[0]: -&amp;gt;UCSB-ENGINEERING_1.vmdk&amp;lt;-
# VMDK-[1]: -&amp;gt;UCSB-ENGINEERING.vmdk&amp;lt;-
# 2 valid VMDK(s) total
# Clone naming convention: [ AAmbrosio ALima MKerr ]
# 3 clone(s) to create
##################################################

Start time: Fri Jan  9 15:16:36 PST 2009
End   time: Fri Jan  9 15:16:41 PST 2009
Duration  : 5 Seconds

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. Select datastore and start clone duplication ( &lt;b&gt;note&lt;/b&gt;: in this instance, duplication will take place from one source FC datastore to different destination FC datastore)&lt;br /&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB-ENGINEERING -f toCloneList&lt;/div&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ ./ghettoClone.sh -h olga.resnet.ucsb.edu -v UCSB-ENGINEERING -f toCloneList

Retrieving info from: olga.resnet.ucsb.edu ...
Selection    Available space       Maximum Capacity     Type                 Name
1)           52.83 GB              124.75 GB            VMFS                 dlgCore-FC-LUN200.Templates
2)           244.61 GB             255.25 GB            VMFS                 olga-local-SAS.Storage
3)           91.50 GB              151.75 GB            VMFS                 dlgCore-FC-LUN202.VMstorage2
4)           29.19 GB              152.75 GB            VMFS                 dlgCore-FC-LUN203.VMstorage3
5)           53.29 GB              150.75 GB            VMFS                 dlgCore-FC-LUN201.VMstorage1
6)           exit

Please select a datastore in which the cloned virtual machines will be stored:
3

0% Complete! - Creating clone &amp;quot;AAmbrosio&amp;quot; - 0/3 - Time elapsed: 10 Seconds
...
0% Complete! - Creating clone &amp;quot;AAmbrosio&amp;quot; - 0/3 - Time elapsed: 2.62 Minutes
33% Complete! - Creating clone &amp;quot;ALima&amp;quot; - 1/3 - Time elapsed: 2.70 Minutes
...
33% Complete! - Creating clone &amp;quot;ALima&amp;quot; - 1/3 - Time elapsed: 5.42 Minutes
66% Complete! - Creating clone &amp;quot;MKerr&amp;quot; - 2/3 - Time elapsed: 5.50 Minutes
...
66% Complete! - Creating clone &amp;quot;MKerr&amp;quot; - 2/3 - Time elapsed: 8.12 Minutes
100% Complete! - Creating clone &amp;quot;MKerr&amp;quot; - 3/3 - Time elapsed: 8.20 Minutes

Start time: Fri Jan  9 15:21:35 PST 2009
End   time: Fri Jan  9 15:29:49 PST 2009
Duration  : 8.23 Minutes

&lt;/code&gt;&lt;/pre&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">update_2</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">update_3</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">rcli</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vmware_vima</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vima</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vi_perl_toolkit</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vitk</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">clones</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">clone</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">cloning</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">full_clone</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx_cloning</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esxi_cloning</category>
      <pubDate>Fri, 09 Jan 2009 23:57:43 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9321</guid>
      <dc:date>2009-01-09T23:57:43Z</dc:date>
      <clearspace:dateToText>10 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>update child resource configuration constantly scrolling in the VI client</title>
      <link>http://communities.vmware.com/docs/DOC-9111</link>
      <description>I cannot connect to certain hosts in my farm from virtualcenter, they show as (not responding).&lt;br /&gt;
Therefore I connect directly to them and in the Recent Tasks pane, i "see Update Child Resource Configuration" constantly scrolling in the tasks list.&lt;br /&gt;
&lt;br /&gt;
This is what is killing the server connectivity.&lt;br /&gt;
&lt;br /&gt;
Ideas?!&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
I have just been having exactly the same problem.&lt;br /&gt;
&lt;br /&gt;
Hosts would briefly go "not responding" then return, also had problems editing VM configs, starting/stopping VMs etc.&lt;br /&gt;
&lt;br /&gt;
Eventually spotted the hosts were continuously doing "Update Child Resource Configuration" many times each second.&lt;br /&gt;
I tried disabling DRS, but no effect.&lt;br /&gt;
Eventually I went through the following sequence for all hosts (fortunately only 5 of them)&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Disconnect host from VC.&lt;/li&gt;
&lt;li&gt;Remove host from VC.&lt;/li&gt;
&lt;li&gt;service vmware-vpxa stop - this stopped the Update Child.. tasks.&lt;/li&gt;
&lt;li&gt;service mgmt-vmware restart.&lt;/li&gt;
&lt;li&gt;Add host back into VC.&lt;/li&gt;
&lt;/ol&gt;
This appears to have resolved the problem and didn't require any VMs to be restarted, but it is not something I would like to repeat too often!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Ce document a &amp;eacute;t&amp;eacute; g&amp;eacute;n&amp;eacute;r&amp;eacute; &amp;agrave; partir du fil de discussion suivant: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/175191"&gt;update child resource configuration constantly scrolling in the VI client&lt;/a&gt;</description>
      <pubDate>Tue, 09 Dec 2008 10:29:16 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9111</guid>
      <dc:date>2008-12-09T10:29:16Z</dc:date>
      <clearspace:dateToText>11 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>my-vmware-cmd.sh - Custom management script for administering a large amount of virtual machines on ESX 3.x and ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9061</link>
      <description>&lt;b&gt;“my-vmware-cmd”&lt;/b&gt; was developed to aid in the day-to-day management of our VDI environment. This script allows specific operations to be executed across a specified set of virtual machines by utilizing a subset of available VMware service console operations. Although specific to our VDI environment, the script is versatile in that it can be extended to other virtual machine environments.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Compatiable with:&lt;/b&gt;&lt;br /&gt;
VMware ESX 3.5 Update 3&lt;br /&gt;
VMware ESXi 3.5 Installable Update 3&lt;br /&gt;
VMware ESX 3.5 Update 2&lt;br /&gt;
VMware ESXi 3.5 Installable Update 2&lt;br /&gt;
VMware ESX 3.5 Update 1&lt;br /&gt;
VMware ESXi 3.5 Installable Update 1&lt;br /&gt;
VMware ESX 3.5 &lt;br /&gt;
VMware ESXi 3.5 Installable&lt;br /&gt;
VMware ESX Server 3.0.3&lt;br /&gt;
VMware ESX Server 3.0.2 Update 1&lt;br /&gt;
VMware ESX Server 3.0.2&lt;br /&gt;
VMware ESX Server 3.0.1&lt;br /&gt;
VMware ESX Server 3.0.0&lt;br /&gt;
&lt;br /&gt;
The script accepts a text file that specifies virtual machine display names. In addition to running the script locally on an ESX/ESXi host, the script can be executed remotely from a &lt;b&gt;centralized host&lt;/b&gt; such as an administrative UNIX/Linux system that has access to the ESX/ESXi hosts that the virtual machines reside on.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Usage:
        Local execution-
            my-vmware-cmd.sh [operation] [vm_input_file] &amp;lt;optional_arguments&amp;gt;
        Remote execution-
            my-vmware-cmd.sh remote [ESX_ESXI_IP_ADDRESS] [operation] [vm_input_file] &amp;lt;optional_arguments&amp;gt;

   Operations:
        start [vm_input_file]
           -- Start all VMs in the input file
        stop [vm_input_file]
           -- Stop all VMs in the input file
        suspend [vm_input_file]
           -- Suspend all VMs in the input file
        resume [vm_input_file]
           -- Resume all suspended VMs in the input file
        reset [vm_input_file]
           -- Hard reset all VMs in the input file
        shutdown [vm_input_file]
           -- Shutdown all VMs in the input file (VMware Tools required)
        reboot [vm_input_file]
           -- Reboot all VMs in the input file (VMware Tools required)
        snap [vm_input_file]
           -- Create administrative pristine snapshot of all VMs in the input file
        revert [vm_input_file]
           -- Revert all VMs in the input file back to pristine state
        purge [vm_input_file]
           -- Removes from local inventory and purges all VMs in the input file
        mac [vm_input_file] [generic|nixdhcp] [http://NETWORK (172.30.0)|http://NETWORK (172.30.0)] [HOST_COUNT_START (200)] &amp;lt;NIC_#&amp;gt; default=0
           -- Extracts MAC addresses and generates either a generic file or one compatible with *nix dhcpd
               ( e.g. my-vmware-cmd.sh mac [vm_input_file] generic )
               ( e.g. my-vmware-cmd.sh mac [vm_input_file] nixdhcp 172.30.0 200 )
        vnic [vm_input_file] &amp;lt;NIC_#&amp;gt; default=0
           -- Change vNic portgroup for all VMs in the input file
               ( e.g. my-vmware-cmd.sh vnic [vm_input_file] 3 )
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
The majority of operations are relatively self explanatory; this document will focus on three operations that are specific to our VDI environment. &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;purge&lt;/li&gt;
&lt;li&gt;mac&lt;/li&gt;
&lt;li&gt;vnic&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
These operations will be demonstrated across 32 linked clones that have been generated from the developed &lt;a class="jive-link-external" href="http://communities.vmware.com/docs/DOC-9020"&gt;ghetto-esx-linked-clones.sh&lt;/a&gt; script.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h4&gt;&lt;b&gt;purge&lt;/b&gt;&lt;/h4&gt;
This operation unregisters and removes specified linked clones that have been generated from &lt;b&gt;ghetto-esx(i)-linked-clones.sh&lt;/b&gt;. Linked clones must be purged prior to updating the Master VM image associated to the clones. The issue arises from the fact that linked clones are tied to the Master VMDK. Modifications to respective Master images are not possible until associated LCs are destroyed. When a &lt;b&gt;“delete from disk”&lt;/b&gt; operation is issued in VIClient on said VMs, all attributes of the VMs will be removed including referenced VMDKs. In this circumstance, the Master VMDK in which all linked clones are referencing will be removed. &lt;br /&gt;
&lt;br /&gt;
Basically, the purge operation handles linked clone deletions properly by locally unregistering specified linked clones and deleting their respective directories while leaving the Master VM image intact. One caveat to this process is that the inventory change will be reflected on Virtual Center as an orphaned VM. In this case, one just needs to issue &lt;b&gt;”remove from inventory”&lt;/b&gt; operations on the orphaned VMs. &lt;br /&gt;
&lt;p /&gt;
&lt;span style="color:blue"&gt;&lt;b&gt;Virtual Machine Input file(s):&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@olga lamw]# cat vm_input_file_1
LinkedCLones-1
LinkedCLones-2
LinkedCLones-3
LinkedCLones-4
LinkedCLones-5
LinkedCLones-6
LinkedCLones-7
LinkedCLones-8
LinkedCLones-9
LinkedCLones-10
LinkedCLones-11
LinkedCLones-12
LinkedCLones-13
LinkedCLones-14
LinkedCLones-15
LinkedCLones-16

[root@olga lamw]# cat vm_input_file_2
LinkedCLones-17
LinkedCLones-18
LinkedCLones-19
LinkedCLones-20
LinkedCLones-21
LinkedCLones-22
LinkedCLones-23
LinkedCLones-24
LinkedCLones-25
LinkedCLones-26
LinkedCLones-27
LinkedCLones-28
LinkedCLones-29
LinkedCLones-30
LinkedCLones-31
LinkedCLones-32

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:blue"&gt;&lt;b&gt;Local Execution on ESX host:&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h3&gt;Scenario: Purge Linked Clones 1-16 on local ESX Host&lt;/h3&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@olga lamw]# vmware -v
VMware ESX Server 3.5.0 build-123630

[root@olga lamw]# ./my-vmware-cmd.sh purge vm_input_file_1
###############################################################################
#
# UCSB ResNet Virtual Machine Managment Tool for VMware ESX 3.5+ and ESXi
# Author: william2003[at]gmail[dot]com
# Created: 07/05/2008
#
###############################################################################

Validating Virtual Machine list against VMs on ESX Server: olga.resnet.ucsb.edu

&amp;quot;LinkedCLones-1&amp;quot;
&amp;quot;LinkedCLones-2&amp;quot;
&amp;quot;LinkedCLones-3&amp;quot;
&amp;quot;LinkedCLones-4&amp;quot;
&amp;quot;LinkedCLones-5&amp;quot;
&amp;quot;LinkedCLones-6&amp;quot;
&amp;quot;LinkedCLones-7&amp;quot;
&amp;quot;LinkedCLones-8&amp;quot;
&amp;quot;LinkedCLones-9&amp;quot;
&amp;quot;LinkedCLones-10&amp;quot;
&amp;quot;LinkedCLones-11&amp;quot;
&amp;quot;LinkedCLones-12&amp;quot;
&amp;quot;LinkedCLones-13&amp;quot;
&amp;quot;LinkedCLones-14&amp;quot;
&amp;quot;LinkedCLones-15&amp;quot;
&amp;quot;LinkedCLones-16&amp;quot;

Purge the following 16 Virtual Machine(s) y/n?
y
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:blue"&gt;&lt;b&gt;Purging Virtual Machines in the specified list:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Purging has been confirmed for the following 16 Virtual machine(s)

Unregistering &amp;quot;LinkedCLones-1&amp;quot; VM_ID=15856 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-1
Unregistering &amp;quot;LinkedCLones-2&amp;quot; VM_ID=15872 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-2
Unregistering &amp;quot;LinkedCLones-3&amp;quot; VM_ID=15888 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-3
Unregistering &amp;quot;LinkedCLones-4&amp;quot; VM_ID=15904 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-4
Unregistering &amp;quot;LinkedCLones-5&amp;quot; VM_ID=15920 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-5
Unregistering &amp;quot;LinkedCLones-6&amp;quot; VM_ID=15936 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-6
Unregistering &amp;quot;LinkedCLones-7&amp;quot; VM_ID=15952 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-7
Unregistering &amp;quot;LinkedCLones-8&amp;quot; VM_ID=15968 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-8
Unregistering &amp;quot;LinkedCLones-9&amp;quot; VM_ID=15984 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-9
Unregistering &amp;quot;LinkedCLones-10&amp;quot; VM_ID=16000 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-10
Unregistering &amp;quot;LinkedCLones-11&amp;quot; VM_ID=16016 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-11
Unregistering &amp;quot;LinkedCLones-12&amp;quot; VM_ID=16032 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-12
Unregistering &amp;quot;LinkedCLones-13&amp;quot; VM_ID=16048 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-13
Unregistering &amp;quot;LinkedCLones-14&amp;quot; VM_ID=16064 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-14
Unregistering &amp;quot;LinkedCLones-15&amp;quot; VM_ID=16080 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-15
Unregistering &amp;quot;LinkedCLones-16&amp;quot; VM_ID=16096 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-16

Start time: Mon Dec  8 22:45:36 PST 2008
End   time: Mon Dec  8 22:46:11 PST 2008
Duration  : 35 Seconds

Completed purge for all specified Virtual Machines!
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:green"&gt;&lt;b&gt;Remote Execution on non-ESX host (VIMA):&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h3&gt;Scenario: Purge Linked Clones 17-32 from remote VIMA host&lt;/h3&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ vmware -v
-bash: vmware: command not found
[vi-admin@vima-primp-industries ~]$ uname -a
Linux vima-primp-industries.com 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[vi-admin@vima-primp-industries ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
[vi-admin@vima-primp-industries ~]$

[vi-admin@vima-primp-industries ~]$ ./my-vmware-cmd.sh remote 172.30.0.64 purge vm_input_file_2
###############################################################################
#
# UCSB ResNet Virtual Machine Managment Tool for VMware ESX 3.5+ and ESXi
# Author: william2003[at]gmail[dot]com
# Created: 07/05/2008
#
###############################################################################

Executing remote operation: &amp;quot;purge&amp;quot; on host: 172.30.0.64 with the following specified Virtual Machines:

#####################################
LinkedCLones-17
LinkedCLones-18
LinkedCLones-19
LinkedCLones-20
LinkedCLones-21
LinkedCLones-22
LinkedCLones-23
LinkedCLones-24
LinkedCLones-25
LinkedCLones-26
LinkedCLones-27
LinkedCLones-28
LinkedCLones-29
LinkedCLones-30
LinkedCLones-31
LinkedCLones-32
#####################################

OPERATION WILL BE EXECUTED IMMEDIATELY ONCE AUTHENTICATION ON REMOTE HOST SUCCEEDS!
Would you like to continue y/n?
y
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:green"&gt;&lt;b&gt;Purging Virtual Machines in the specified list:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;root@172.30.0.64's password:
Validating Virtual Machine list against VMs on ESX Server: olga.resnet.ucsb.edu

Unregistering &amp;quot;LinkedCLones-17&amp;quot; VM_ID=16112 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-17
Unregistering &amp;quot;LinkedCLones-18&amp;quot; VM_ID=16128 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-18
Unregistering &amp;quot;LinkedCLones-19&amp;quot; VM_ID=16144 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-19
Unregistering &amp;quot;LinkedCLones-20&amp;quot; VM_ID=16160 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-20
Unregistering &amp;quot;LinkedCLones-21&amp;quot; VM_ID=16176 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-21
Unregistering &amp;quot;LinkedCLones-22&amp;quot; VM_ID=16192 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-22
Unregistering &amp;quot;LinkedCLones-23&amp;quot; VM_ID=16208 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-23
Unregistering &amp;quot;LinkedCLones-24&amp;quot; VM_ID=16224 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-24
Unregistering &amp;quot;LinkedCLones-25&amp;quot; VM_ID=16240 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-25
Unregistering &amp;quot;LinkedCLones-26&amp;quot; VM_ID=16256 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-26
Unregistering &amp;quot;LinkedCLones-27&amp;quot; VM_ID=16272 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-27
Unregistering &amp;quot;LinkedCLones-28&amp;quot; VM_ID=16288 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-28
Unregistering &amp;quot;LinkedCLones-29&amp;quot; VM_ID=16304 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-29
Unregistering &amp;quot;LinkedCLones-30&amp;quot; VM_ID=16320 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-30
Unregistering &amp;quot;LinkedCLones-31&amp;quot; VM_ID=16336 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-31
Unregistering &amp;quot;LinkedCLones-32&amp;quot; VM_ID=16352 and removing /vmfs/volumes/dlgCore-FC-LUN200.Templates/LinkedCLones-32

Start time: Mon Dec  8 22:56:45 PST 2008
End   time: Mon Dec  8 22:57:19 PST 2008
Duration  : 34 Seconds

Completed purge for all specified Virtual Machines!
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h4&gt;&lt;b&gt;mac&lt;/b&gt;&lt;/h4&gt;
This operation extracts MAC addresses associated with specified VMs and outputs a file named: &lt;b&gt;"dhcp-eth#-YYYY-MM-DD-HHMMSS"&lt;/b&gt;. This outputted file can then be used to reserve IPs on either Windows or *nix DHCP servers. There are two output options, one being a generic output relating VM names to their respective MAC address and the other a prepared file that is compatible with popular *nix dhcpd releases. &lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Scenario: Extract MAC Addresses for the 32 Linked Clones and output in a generic form.&lt;/h3&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:green"&gt;&lt;b&gt;Local Execution on ESXi host:&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;~ # vmware -v
VMware ESX Server 3i 3.5.0 build-123629
~ # ./my-vmware-cmd.sh mac vm_input_file generic
###############################################################################
#
# UCSB ResNet Virtual Machine Managment Tool for VMware ESX 3.x and ESXi
# Author: william2003[at]gmail[dot]com
# Created: 07/05/2008
#
###############################################################################

Validating Virtual Machine list against VMs on ESX Server: olga.resnet.ucsb.edu

Start time: Sat Dec 20 03:38:55 UTC 2008
End   time: Sat Dec 20 03:38:58 UTC 2008
Duration  : 3 Seconds

Completed &amp;quot;dhcp-eth0-2008-12-20-033855&amp;quot; generation file for all specified Virtual Machines!

~ #
~ # cat dhcp-eth0-2008-12-20-033855
LinkedClones1   005056b45d33
LinkedClones10  005056b45a2f
LinkedClones11  005056b450ec
LinkedClones12  005056b44182
LinkedClones13  005056b43790
LinkedClones14  005056b40346
LinkedClones15  005056b407fb
LinkedClones16  005056b42a3f
LinkedClones17  005056b44c11
LinkedClones18  005056b41f24
LinkedClones19  005056b42308
LinkedClones2   005056b4440f
LinkedClones20  005056b47039
LinkedClones21  005056b44219
LinkedClones22  005056b4699b
LinkedClones23  005056b42e7c
LinkedClones24  005056b4028b
LinkedClones25  005056b46f1c
LinkedClones26  005056b42299
LinkedClones27  005056b4225e
LinkedClones28  005056b42eed
LinkedClones29  005056b425fd
LinkedClones3   005056b42502
LinkedClones30  005056b45556
LinkedClones31  005056b477c3
LinkedClones32  005056b425df
LinkedClones4   005056b428d7
LinkedClones5   005056b4602f
LinkedClones6   005056b46e43
LinkedClones7   005056b41139
LinkedClones8   005056b4683d
LinkedClones9   005056b40566
~ #
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;h3&gt;Scenario: Create DHCP IP reservation file for the 32 Linked Clones on Network: "&lt;b&gt;172.30.200&lt;/b&gt;", starting from Host: "&lt;b&gt;50&lt;/b&gt;" and increment to the last VM.&lt;/h3&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:green"&gt;&lt;b&gt;Remote Execution on non ESX host (VIMA):&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[vi-admin@vima-primp-industries ~]$ vmware -v
-bash: vmware: command not found
[vi-admin@vima-primp-industries ~]$ uname -a
Linux vima-primp-industries.com 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[vi-admin@vima-primp-industries ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
[vi-admin@vima-primp-industries ~]$

[vi-admin@vima-primp-industries ~]$ ./my-vmware-cmd.sh remote 172.30.0.64 mac vm_input_file linux 172.30.200 50
###############################################################################
#
# UCSB ResNet Virtual Machine Managment Tool for VMware ESX 3.x and ESXi
# Author: william2003[at]gmail[dot]com
# Created: 07/05/2008
#
###############################################################################

Connecting to 172.30.0.64 to extract MAC Addresses:
root@172.30.0.64's password:

Completed &amp;quot;dhcp-2008-12-06-182712&amp;quot; generation file for all specified Virtual Machines!

[vi-admin@vima-primp-industries ~]$ cat dhcp-2008-12-06-182712
host LinkedClones-1        { hardware ethernet 00:50:56:b4:19:f8; fixed-address 172.30.200.50; }
host LinkedClones-2        { hardware ethernet 00:50:56:b4:3f:7b; fixed-address 172.30.200.51; }
host LinkedClones-3        { hardware ethernet 00:50:56:b4:36:af; fixed-address 172.30.200.52; }
host LinkedClones-4        { hardware ethernet 00:50:56:b4:0a:13; fixed-address 172.30.200.53; }
host LinkedClones-5        { hardware ethernet 00:50:56:b4:4c:cb; fixed-address 172.30.200.54; }
host LinkedClones-6        { hardware ethernet 00:50:56:b4:26:a9; fixed-address 172.30.200.55; }
host LinkedClones-7        { hardware ethernet 00:50:56:b4:7c:f0; fixed-address 172.30.200.56; }
host LinkedClones-8        { hardware ethernet 00:50:56:b4:31:6f; fixed-address 172.30.200.57; }
host LinkedClones-9        { hardware ethernet 00:50:56:b4:1f:75; fixed-address 172.30.200.58; }
host LinkedClones-10        { hardware ethernet 00:50:56:b4:55:9b; fixed-address 172.30.200.59; }
host LinkedClones-11        { hardware ethernet 00:50:56:b4:3b:8d; fixed-address 172.30.200.60; }
host LinkedClones-12        { hardware ethernet 00:50:56:b4:45:b8; fixed-address 172.30.200.61; }
host LinkedClones-13        { hardware ethernet 00:50:56:b4:1f:29; fixed-address 172.30.200.62; }
host LinkedClones-14        { hardware ethernet 00:50:56:b4:5d:14; fixed-address 172.30.200.63; }
host LinkedClones-15        { hardware ethernet 00:50:56:b4:03:98; fixed-address 172.30.200.64; }
host LinkedClones-16        { hardware ethernet 00:50:56:b4:4f:81; fixed-address 172.30.200.65; }
host LinkedClones-17        { hardware ethernet 00:50:56:b4:3b:43; fixed-address 172.30.200.66; }
host LinkedClones-18        { hardware ethernet 00:50:56:b4:0b:85; fixed-address 172.30.200.67; }
host LinkedClones-19        { hardware ethernet 00:50:56:b4:5e:0a; fixed-address 172.30.200.68; }
host LinkedClones-20        { hardware ethernet 00:50:56:b4:12:14; fixed-address 172.30.200.69; }
host LinkedClones-21        { hardware ethernet 00:50:56:b4:06:08; fixed-address 172.30.200.70; }
host LinkedClones-22        { hardware ethernet 00:50:56:b4:45:55; fixed-address 172.30.200.71; }
host LinkedClones-23        { hardware ethernet 00:50:56:b4:67:b0; fixed-address 172.30.200.72; }
host LinkedClones-24        { hardware ethernet 00:50:56:b4:48:12; fixed-address 172.30.200.73; }
host LinkedClones-25        { hardware ethernet 00:50:56:b4:48:c3; fixed-address 172.30.200.74; }
host LinkedClones-26        { hardware ethernet 00:50:56:b4:38:50; fixed-address 172.30.200.75; }
host LinkedClones-27        { hardware ethernet 00:50:56:b4:3f:ac; fixed-address 172.30.200.76; }
host LinkedClones-28        { hardware ethernet 00:50:56:b4:68:c9; fixed-address 172.30.200.77; }
host LinkedClones-29        { hardware ethernet 00:50:56:b4:72:a4; fixed-address 172.30.200.78; }
host LinkedClones-30        { hardware ethernet 00:50:56:b4:66:78; fixed-address 172.30.200.79; }
host LinkedClones-31        { hardware ethernet 00:50:56:b4:53:e7; fixed-address 172.30.200.80; }
host LinkedClones-32        { hardware ethernet 00:50:56:b4:2f:8b; fixed-address 172.30.200.81; }
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h4&gt;&lt;b&gt;vnic&lt;/b&gt;&lt;/h4&gt;
&lt;br /&gt;
This operation reconfigures the portgroup of the specified vNic (default eth0) for a given set of VMs. This operation supports remote execution but requires 2 SSH authentications by design. The operation also requires that the VMs in question be powered off prior to execution. Unfortunately due to the limitation of the CLI, there is currently no dynamic way of modifying the vNic portgroup while the VM is powered on.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Scenario: Change 16 of the 32 Linked Clones from "IsolatedNetwork" to "labs.90-172.30.90-23" network&lt;/h3&gt;
&lt;br /&gt;
1. Portgroup Selection:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@olga lamw]# ./my-vmware-cmd.sh vnic vm_input_file_1
###############################################################################
#
# UCSB ResNet Virtual Machine Managment Tool for VMware ESX 3.x and ESXi
# Author: william2003[at]gmail[dot]com
# Created: 07/05/2008
#
###############################################################################

Validating Virtual Machine list against VMs on ESX Server: olga.resnet.ucsb.edu
CHOICE          VLAN ID         PORTGROUP
------------------------------------------
1              4095            trunk.PassThrough
2              3252            dev.3252-172.30.52-24
3              3249            dev.3249-172.30.49-24
4              3248            dev.3248-172.30.48-24
5              333             nc.333-172.30.0-24
6              90              labs.90-172.30.90-23
7              333             SC.NC333
8              100             SC.Core100
9              3251            VMk.3251
10             0               IsolatedNetwork
11             Quit

Please select a portgroup to apply to the following Virtual Machine(s):
10
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. Portgroup configuration:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;&amp;quot;LinkedClones-1&amp;quot;
&amp;quot;LinkedClones-2&amp;quot;
&amp;quot;LinkedClones-3&amp;quot;
&amp;quot;LinkedClones-4&amp;quot;
&amp;quot;LinkedClones-5&amp;quot;
&amp;quot;LinkedClones-6&amp;quot;
&amp;quot;LinkedClones-7&amp;quot;
&amp;quot;LinkedClones-8&amp;quot;
&amp;quot;LinkedClones-9&amp;quot;
&amp;quot;LinkedClones-10&amp;quot;
&amp;quot;LinkedClones-11&amp;quot;
&amp;quot;LinkedClones-12&amp;quot;
&amp;quot;LinkedClones-13&amp;quot;
&amp;quot;LinkedClones-14&amp;quot;
&amp;quot;LinkedClones-15&amp;quot;
&amp;quot;LinkedClones-16&amp;quot;

Would you like to update the Network configuration for &amp;quot;eth0&amp;quot; to apply &amp;quot;labs.90-172.30.90-23&amp;quot; to the following 16 Virtual Machine(s) y/n?
y
VM Network Portgroup update will take affect for the following 16 Virtual machine(s)

Completed configuring LinkedClones-1 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-2 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-3 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-4 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-5 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-6 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-7 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-8 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-9 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-10 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-11 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-12 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-13 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23
Completed configuring LinkedClones-14 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-15 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;
Completed configuring LinkedClones-16 from &amp;quot;IsolatedNetwork&amp;quot; to &amp;quot;labs.90-172.30.90-23&amp;quot;

Start time: Tue Dec  9 18:37:05 PST 2008
End   time: Tue Dec  9 18:37:49 PST 2008
Duration  : 44 Seconds

Completed Network Configurations for all specified Virtual Machines!
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span style="color:red"&gt;Known Issues:&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
1. When running "&lt;b&gt;my-vmware-cmd&lt;/b&gt;" on ESXi and using operation "&lt;b&gt;vnic&lt;/b&gt;", you may see the following warning output, this can be ignored, this is due to some of the limited capabilities of the binaries in the busy box environment.&lt;br /&gt;
&lt;br /&gt;
Warning Message&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Please select a portgroup to apply to the following Virtual Machine(s):

bash: Network: unknown operand
&lt;/code&gt;&lt;/pre&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.0</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.1</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.2</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.3</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <pubDate>Sat, 06 Dec 2008 18:11:00 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9061</guid>
      <dc:date>2008-12-06T18:11:00Z</dc:date>
      <clearspace:dateToText>11 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Linked Clones script for ESX 3.x</title>
      <link>http://communities.vmware.com/docs/DOC-9020</link>
      <description>This script allows users to create linked cloned virtual machine(s) from a master (or golden) virtual machine. Clones may be stored on any type of datastore (LOCAL, SAN, NFS) that is presented to the ESX host. The script is very capable in deploying a large VDI environment in a relatively short amount of time.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Compatiable with:&lt;/b&gt;&lt;br /&gt;
VMware ESX 3.5 Update 3&lt;br /&gt;
VMware ESX 3.5 Update 2&lt;br /&gt;
VMware ESX 3.5 Update 1&lt;br /&gt;
VMware ESX 3.5 &lt;br /&gt;
VMware ESX Server 3.0.3&lt;br /&gt;
VMware ESX Server 3.0.2 Update 1&lt;br /&gt;
VMware ESX Server 3.0.2&lt;br /&gt;
VMware ESX Server 3.0.1&lt;br /&gt;
VMware ESX Server 3.0.0&lt;br /&gt;
&lt;br /&gt;
There are currently 3 supported use cases:&lt;br /&gt;
&lt;br /&gt;
1) &lt;b&gt;Default&lt;/b&gt;&lt;br /&gt;
Generate linked clones located in the same datastore that houses the master (golden) virtual machine. Writes will be directed to their respective linked virtual machine delta file with reads originating from the master virtual machine. &lt;br /&gt;
&lt;br /&gt;
2) &lt;b&gt;Distributed Write(s) I/O&lt;/b&gt;&lt;br /&gt;
Generate linked clones evenly across available datastores of choice. Reads will originate from the specified master virtual machine while writes are directed towards their respective virtual machine delta files that have been dispersed across the specified datastores.&lt;br /&gt;
&lt;br /&gt;
3) &lt;b&gt;Distributed Read(s) &amp;#38; Write(s) I/O&lt;/b&gt;&lt;br /&gt;
Duplicate the master virtual machine on available datastores of choice and evenly generate linked clones off of each duplicated master virtual machine. Reads and writes will be isolated onto the datastore of the linked clone(s) in question. This process is similar to running multiple instances of the default behavior of the script.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note&lt;/b&gt;: This linked clones script is virtual machine OS independent (i.e. it is not restricted to just Windows OS’s for VDI environment). For example, one can utilize this script to their advantage in development environments where new VMs need to be (mass) cloned quickly for testing.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color:red"&gt;DISCLAIMER&lt;/span&gt;&lt;/b&gt; - When deleting linked clones, our process requires that the admin utilizes the &lt;b&gt;“&lt;a class="jive-link-external" href="http://communities.vmware.com/docs/DOC-9061"&gt;my-vmware-cmd&lt;/a&gt;”&lt;/b&gt; toolset that has been developed. Under no circumstances should the &lt;b&gt;“delete from disk”&lt;/b&gt; feature be used on a linked clone from within VIClient. This is to ensure that the master image of which clones are linked from is not terminated.&lt;hr /&gt;
&lt;br /&gt;
The following requirements will be validated by the script prior to execution:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Master VM is offline&lt;/li&gt;
&lt;li&gt;Master VM does not contain any Snapshots or RDMs&lt;/li&gt;
&lt;li&gt;Valid eth0 interface&lt;/li&gt;
&lt;li&gt;Single VMDK disk (remove any instances in the .vmx file if you have others)&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;u&gt;Example Execution of all 3 Use cases:&lt;/u&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color:green"&gt;Storage Environment:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@olga lamw]# vmware-vim-cmd hostsvc/summary/fsvolume

Name                  		Type      SubType                         Path                              Device         Capacity       Mode
dlgCore-FC-LUN200.Templates    VmfsVolume   VMFS      /vmfs/volumes/48e1cd81-81223593-6cd8-00215acaa2b2   vmhba1:0:200:1   133949292544   readWrite
dlgCore-FC-LUN202.VMstorage2   VmfsVolume   VMFS      /vmfs/volumes/48e1a4a6-3b55e69b-02a9-001f29c948e2   vmhba1:0:202:1   162940321792   readWrite
olga-local-SAS.Storage         VmfsVolume   VMFS      /vmfs/volumes/49167992-ac31f0a5-3f9f-001f29c7a04c   vmhba0:0:0:5     274072600576   readWrite
dlgCore-FC-LUN203.VMstorage3   VmfsVolume   VMFS      /vmfs/volumes/48e16ed0-420158d5-5601-00215acaa2b2   vmhba1:0:203:1   164014063616   readWrite
dlgCore-FC-LUN201.VMstorage1   VmfsVolume   VMFS      /vmfs/volumes/48e1b819-3443974c-03c4-001f29c948e2   vmhba1:0:201:1   161866579968   readWrite
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@olga lamw]# vdf -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p2     7.9G  1.2G  6.3G  16% /
/dev/cciss/c0d0p1     244M   27M  204M  12% /boot
/dev/cciss/c0d0p7     2.0G   33M  1.9G   2% /home
none                  391M     0  391M   0% /dev/shm
/dev/cciss/c0d0p8     2.0G   33M  1.9G   2% /tmp
/dev/cciss/c0d0p6     4.0G  289M  3.5G   8% /var
/vmfs/devices         273G     0  273G   0% /vmfs/devices
/vmfs/volumes/48e16ed0-420158d5-5601-00215acaa2b2
                      152G  108G   44G  70% /vmfs/volumes/dlgCore-FC-LUN203.VMstorage3
/vmfs/volumes/48e1a4a6-3b55e69b-02a9-001f29c948e2
                      151G  105G   46G  69% /vmfs/volumes/dlgCore-FC-LUN202.VMstorage2
/vmfs/volumes/48e1b819-3443974c-03c4-001f29c948e2
                      150G  126G   24G  84% /vmfs/volumes/dlgCore-FC-LUN201.VMstorage1
/vmfs/volumes/48e1cd81-81223593-6cd8-00215acaa2b2
                      124G   71G   53G  57% /vmfs/volumes/dlgCore-FC-LUN200.Templates
/vmfs/volumes/49167992-ac31f0a5-3f9f-001f29c7a04c
                      255G  1.3G  253G   0% /vmfs/volumes/olga-local-SAS.Storage
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Default Case&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Master Virtual Machine: /vmfs/volumes/olga-local-SAS.Storage/UCSB-GAUCHOS/UCSB-GAUCHOS.vmx stored on LOCAL STORAGE&lt;/li&gt;
&lt;li&gt;Storage Medium: LOCAL STORAGE&lt;/li&gt;
&lt;li&gt;32 Linked Clones on the same datastore as the Master VM&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;
&lt;strike&gt;root@olga lamw&lt;/strike&gt;# ./ghetto-esx-linked-clones.sh /vmfs/volumes/olga-local-SAS.Storage/UCSB-GAUCHOS/UCSB-GAUCHOS.vmx LinkedClones- 1 32&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
1. Confirmation after initial execution of script:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;######################################################
#
# UCSB ResNet Linked Clones Tool for ESX 3.x
# Author: william2003[at]gmail[dot]com
#         duonglt[at]engr[dot]ucsb[dot]edu
# Created: 06/26/2008
#
######################################################

Requested parameters:
        Master Virtual Machine Image: /vmfs/volumes/olga-local-SAS.Storage/UCSB-GAUCHOS/UCSB-GAUCHOS.vmx
        Requested Number of Linked Clones: 32 VMs
        Initial Master Memory: 2048 MB
        Initial Master VMDK Size: 10 GB
        Expected Storage Consumption: 84 GB

        Please verify that there is enough storage space for the requested configuration before running


Would you like to continue with these parameters y/n?
y
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
2. Linked Clones construction progress:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Generating Linked Clones ...
59% Complete! - Linked Clones Created: 19/32
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
3. Completed Linked Clones output:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Generating Linked Clones ...
100% Complete! - Linked Clones Created: 32/32


Waiting for Virtual Machine(s) to obtain their MAC addresses...

Linked clones VM MAC addresses stored at:
        lcs_created_on-2008-12-09-210343/UCSB-GAUCHOS

Start time: Tue Dec  9 21:00:06 PST 2008
End   time: Tue Dec  9 21:03:40 PST 2008
Duration  : 3.57 Minutes
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
Maps before &lt;b&gt;Default&lt;/b&gt; case execution:&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.engr.ucsb.edu/~duonglt/vmware/9020/default_1.jpg" alt="http://www.engr.ucsb.edu/~duonglt/vmware/9020/default_1.jpg" class="jive-image"  /&gt; &lt;br /&gt;
&lt;br /&gt;
Maps after &lt;b&gt;Default&lt;/b&gt; execution:&lt;br /&gt;
&lt;br /&gt;
 &lt;img class="jive-image-thumbnail" src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4617/250-111/default_2.jpg" width="250" height="111" alt="default_2.jpg" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4617/default_2.jpg');return false;"/&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:red"&gt;Red&lt;/span&gt; denotes the Master VM&lt;br /&gt;
&lt;span style="color:green"&gt;Green&lt;/span&gt; denotes the datastore&lt;br /&gt;
&lt;span style="color:orange"&gt;Orange&lt;/span&gt; denotes the last Linked Clone created&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Distributed Write(s) I/O Case&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Master Virtual Machine: /vmfs/volumes/dlgCore-FC-LUN200.Templates/UCSB-RESNET/UCSB-RESNET.vmx stored on FC SAN&lt;/li&gt;
&lt;li&gt;Storage Mediums: LOCAL STORAGE and FC SAN&lt;/li&gt;
&lt;li&gt;64 Linked Clones distributed across 2 datastores&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;
&lt;strike&gt;root@olga lamw&lt;/strike&gt;# ./ghetto-esx-linked-clones.sh /vmfs/volumes/dlgCore-FC-LUN200.Templates/UCSB-RESNET/UCSB-RESNET.vmx LinkedClones- 1 64 dw&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
1. Datstore selection:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;#FREE SPACE     DATASTORE(S)
1)    44G       /vmfs/volumes/dlgCore-FC-LUN203.VMstorage3
2)    44G       /vmfs/volumes/dlgCore-FC-LUN202.VMstorage2
3)    24G       /vmfs/volumes/dlgCore-FC-LUN201.VMstorage1
4)    53G       /vmfs/volumes/dlgCore-FC-LUN200.Templates
5)    253G      /vmfs/volumes/olga-local-SAS.Storage
6)    Quit

Please select datastore(s) to be used: (e.g. 1,2,3):
4,5

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
2. Confirmation after initial execution of script:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;######################################################
#
# UCSB ResNet Linked Clones Tool for ESX 3.x
# Author: william2003[at]gmail[dot]com
#         duonglt[at]engr[dot]ucsb[dot]edu
# Created: 06/26/2008
#
######################################################

Requested parameters:
        Master Virtual Machine Image: /vmfs/volumes/dlgCore-FC-LUN200.Templates/UCSB-RESNET/UCSB-RESNET.vmx
        Requested Number of Linked Clones: 64 VMs
        Initial Master Memory: 2048 MB
        Initial Master VMDK Size: 10 GB
        Expected Storage Consumption: 167 GB

        Please verify that there is enough storage space for the requested configuration before running

Distributed Write I/O Scheme selected. Linked clones will be evenly distributed across the following datastore(s):

        /vmfs/volumes/dlgCore-FC-LUN200.Templates
        /vmfs/volumes/olga-local-SAS.Storage


Would you like to continue with these parameters y/n?
y
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
3. Completed Linked Clones output:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Generating Linked Clones ...
100% Complete! - Linked Clones Created: 64/64


Waiting for Virtual Machine(s) to obtain their MAC Addresses...

Linked clones VM MAC addresses stored at:
        lcs_created_on-2008-12-09-211724/UCSB-RESNET

Start time: Tue Dec  9 21:12:43 PST 2008
End   time: Tue Dec  9 21:17:19 PST 2008
Duration  : 4.60 Minutes
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
Maps before &lt;b&gt;Default&lt;/b&gt; execution:&lt;br /&gt;
&lt;br /&gt;
&lt;img class="jive-image-thumbnail" src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4618/250-90/default_3.jpg" width="250" height="90" alt="default_3.jpg" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4618/default_3.jpg');return false;"/&gt;&lt;br /&gt;
&lt;br /&gt;
Maps after &lt;b&gt;Default&lt;/b&gt; execution:&lt;br /&gt;
&lt;br /&gt;
&lt;img class="jive-image-thumbnail" src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4619/249-117/default_4.jpg" width="249" height="117" alt="default_4.jpg" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4619/default_4.jpg');return false;"/&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:red"&gt;Red&lt;/span&gt; denotes the Master VM&lt;br /&gt;
&lt;span style="color:green"&gt;Green&lt;/span&gt; denotes the two datastores&lt;br /&gt;
&lt;span style="color:orange"&gt;Orange&lt;/span&gt; denotes the last Linked Clones created&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;h3&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Distributed Read(s) &amp;#38; Write(s) I/O Case&lt;/span&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Master Virtual Machine: /vmfs/volumes/dlgCore-FC-LUN200.Templates/UCSB-ENGINEERING/UCSB-ENGINEERING.vmx stored on FC SAN&lt;/li&gt;
&lt;li&gt;Storage medium: FC SAN&lt;/li&gt;
&lt;li&gt;128 Linked Clones distributed across 2 datastores&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;
&lt;strike&gt;root@olga lamw&lt;/strike&gt;# ./ghetto-esx-linked-clones.sh /vmfs/volumes/dlgCore-FC-LUN200.Templates/UCSB-ENGINEERING/UCSB-ENGINEERING.vmx LinkedClones- 1 128 drw&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
1. Datstore selection:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;#FREE SPACE     DATASTORE(S)
1)    44G       /vmfs/volumes/dlgCore-FC-LUN203.VMstorage3
2)    43G       /vmfs/volumes/dlgCore-FC-LUN202.VMstorage2
3)    24G       /vmfs/volumes/dlgCore-FC-LUN201.VMstorage1
4)    53G       /vmfs/volumes/dlgCore-FC-LUN200.Templates
5)    253G      /vmfs/volumes/olga-local-SAS.Storage
6)    Quit

Please select datastore(s) to be used: (e.g. 1,2,3):
1,2
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
2. Confirmation after initial execution of script:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;######################################################
#
# UCSB ResNet Linked Clones Tool for ESX 3.x
# Author: william2003[at]gmail[dot]com
#         duonglt[at]engr[dot]ucsb[dot]edu
# Created: 06/26/2008
#
######################################################

Requested parameters:
        Master Virtual Machine Image: /vmfs/volumes/dlgCore-FC-LUN200.Templates/UCSB-ENGINEERING/UCSB-ENGINEERING.vmx
        Naming convention for Linked-Cloned Master Virtual Machine: MASTER-LinkedClones-{1-2}
        Naming convention for Linked-Cloned Virtual Machines: LinkedClones-{1-128}
        Looking to create: 2 Master VMs
        Requested Number of Linked Clones: 128 VMs
        Initial Master Memory: 2048 MB
        Initial Master VMDK Size: 10 GB
        Expected Storage Consumption: 353 GB

        Please verify that there is enough storage space for the requested configuration before running

Distributed Read &amp;#38; Write I/O Scheme selected. Operation will duplicate master image and evenly generate
linked clones from these dupulicated images across the specified datastore(s):

        /vmfs/volumes/dlgCore-FC-LUN203.VMstorage3
        /vmfs/volumes/dlgCore-FC-LUN202.VMstorage2

        Distribution of Linked Clones per datastore: 64

MASTER-LinkedClones-1 will be stored on:
        /vmfs/volumes/dlgCore-FC-LUN203.VMstorage3
                The following VMs will be linked to &amp;quot;MASTER-LinkedClones-1&amp;quot; under this datastore:
                        LinkedClones-{1-64}

MASTER-LinkedClones-2 will be stored on:
        /vmfs/volumes/dlgCore-FC-LUN202.VMstorage2
                The following VMs will be linked to &amp;quot;MASTER-LinkedClones-2&amp;quot; under this datastore:
                        LinkedClones-{65-128}


Would you like to continue with these parameters y/n?
y
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
3. Creating Master image on each Datastore to distribute read(s)/write(s) Linked Clones&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Creating MASTER-LinkedClones-1 on: /vmfs/volumes/dlgCore-FC-LUN203.VMstorage3
Creating MASTER-LinkedClones-2 on: /vmfs/volumes/dlgCore-FC-LUN202.VMstorage2
Initiating vmkfstools copy ...
Initiating vmkfstools copy ...
0% Complete! - Linked Clones Created: 0/128
Registering newly created MASTER-LinkedClones-1 ...

Registering newly created MASTER-LinkedClones-2 ...
2% Complete! - Linked Clones Created: 3/128
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
4. Completed Linked Clones output:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;100% Complete! - Linked Clones Created: 128/128


Waiting for Virtual Machine(s) to obtain their MAC addresses...

Linked clones VM MAC addresses stored at:
        lcs_created_on-2008-12-09-214627/MASTER-LinkedClones-1
        lcs_created_on-2008-12-09-214627/MASTER-LinkedClones-2

Start time: Tue Dec  9 21:36:49 PST 2008
End   time: Tue Dec  9 21:46:22 PST 2008
Duration  : 9.55 Minutes
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
Maps before &lt;b&gt;Default&lt;/b&gt; execution:&lt;br /&gt;
&lt;br /&gt;
&lt;img class="jive-image-thumbnail" src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4620/250-90/default_5.jpg" width="250" height="90" alt="default_5.jpg" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4620/default_5.jpg');return false;"/&gt;&lt;br /&gt;
&lt;br /&gt;
Maps after &lt;b&gt;Default&lt;/b&gt; execution:&lt;br /&gt;
&lt;br /&gt;
&lt;img class="jive-image-thumbnail" src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4632/250-173/default_6.jpg" width="250" height="173" alt="default_6.jpg" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/102-9020-2-4632/default_6.jpg');return false;"/&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:red"&gt;Red&lt;/span&gt; denotes the Master VM&lt;br /&gt;
&lt;span style="color:green"&gt;Green&lt;/span&gt; denotes the two datastores&lt;br /&gt;
&lt;span style="color:purple"&gt;Purple&lt;/span&gt; denotes the 2 replicated Master VM in each of the datastores&lt;br /&gt;
&lt;span style="color:orange"&gt;Orange&lt;/span&gt; denotes the last Linked Clones created&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span style="color:red"&gt;Known Issues:&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
1. When running "&lt;b&gt;ghetto-esx-linked-clones.sh&lt;/b&gt;" on VMware ESX 3.0.0, the &lt;b&gt;"FULL_PATH_TO_MASTER_VMX_FILE"&lt;/b&gt; must be in the UUID format and not the human readable symlink, this was fixed in VMware ESX 3.0.1 and possibly updated in one of the 3.0.0 patchset.&lt;br /&gt;
&lt;br /&gt;
Solution, use the following:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;./ghetto-esx-linked-clones.sh /vmfs/volumes/4857f047-4e4ec6bf-a8b8-001b78361a3c/VM-MasterImage/VM-MasterImage.vmx LinkedClone- 1 200
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Instead of&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;./ghetto-esx-linked-clones.sh vmfs/volumes/himalaya-local-SATA.Storage/VM-MasterImage/VM-MasterImage.vmx LinkedClone- 1 200
&lt;/code&gt;&lt;/pre&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">linked</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">clones</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.0</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.1</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.2</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.3</category>
      <pubDate>Wed, 03 Dec 2008 23:05:37 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-9020</guid>
      <dc:date>2008-12-03T23:05:37Z</dc:date>
      <clearspace:dateToText>11 months, 6 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>Applying execute permissions to scripts!</title>
      <link>http://communities.vmware.com/docs/DOC-8821</link>
      <description>Hi,&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
I need some help installing naviagent on my esx box. I have tried to run the ./ESX_install.sh script with the appropriate name but keep getting permission denied. I have logged into the system using putty and have upgraded to root permissions using su, so it should work.&lt;br /&gt;
&lt;p /&gt;
Anyone got suggestions why this wouldnt work? This is urgent. I have attached my .sh file&lt;br /&gt;
&lt;p /&gt;
Thanks&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
I managed to answer my own question here.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
When you need to execute a script you need to applying execute permissions to all files to be run by the script.&lt;br /&gt;
&lt;p /&gt;
To do this, run &lt;b&gt;chmod 755 "filename"&lt;/b&gt; to apply execute permissions.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/180641"&gt;Running ./ESX_Install.sh gives Permission Denied&lt;/a&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:10:35 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-8821</guid>
      <dc:date>2008-11-20T11:10:35Z</dc:date>
      <clearspace:dateToText>1 year, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>ghettoVCB.sh - Free alternative for backing up VM's for ESX(i) 3.5 and 4.0+</title>
      <link>http://communities.vmware.com/docs/DOC-8760</link>
      <description>&lt;h1&gt;Table of Contents:&lt;/h1&gt;
&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;Description&lt;/li&gt;
&lt;li&gt;Features&lt;/li&gt;
&lt;li&gt;Requirements&lt;/li&gt;
&lt;li&gt;Setup&lt;/li&gt;
&lt;li&gt;Configurations&lt;/li&gt;
&lt;li&gt;Usage&lt;/li&gt;
&lt;li&gt;Sample Execution
&lt;ul&gt;
&lt;li&gt;Backup VMs stored in a list&lt;/li&gt;
&lt;li&gt;Backup VMs using individual backup policies &lt;/li&gt;
&lt;li&gt;Debug backup Mode&lt;/li&gt;
&lt;li&gt;Dry run Mode&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Enable compression for backups&lt;/li&gt;
&lt;li&gt;Restore backups (ghettoVCB-restore.sh)&lt;/li&gt;
&lt;li&gt;Cronjob FAQ&lt;/li&gt;
&lt;li&gt;FAQ&lt;/li&gt;
&lt;li&gt;Useful Links&lt;/li&gt;
&lt;li&gt;Change Log&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h1&gt;Description:&lt;/h1&gt;
&lt;br /&gt;
This script performs backups of virtual machines residing on &lt;b&gt;ESX(i) 3.5/4.0+&lt;/b&gt; servers using methodology similar to &lt;a class="jive-link-external" href="http://www.vmware.com/products/vi/consolidated_backup.html"&gt;VMware's VCB&lt;/a&gt; tool. The script takes snapshots of live virtual machines, backs up the master VMDK(s) and then upon completion, deletes the snapshot until the next backup. The only caveat is that it utilizes resources available to the Service Console of the ESX server running the backups as opposed to following the traditional method of offloading virtual machine backups through a VCB proxy.&lt;br /&gt;
&lt;br /&gt;
This script has been tested on &lt;b&gt;ESX 3.5/4.0 and ESXi 3.5/4.0&lt;/b&gt; and supports the following backup mediums: &lt;b&gt;LOCAL STORAGE&lt;/b&gt;, &lt;b&gt;SAN&lt;/b&gt; and &lt;b&gt;NFS&lt;/b&gt;. The script is non-interactive and can be setup to run via crontab. Currently, this script accepts a text file that lists the display names of virtual machine(s) that are to be backed up. Additionally, one can specify a folder containing configuration files on a per VM basis for granular control over backup policies.&lt;br /&gt;
&lt;br /&gt;
Additionally, for ESX environments that don't have persistent NFS datastores designated for backups, the script offers the ability to automatically connect the ESX server to a NFS exported folder and then upon backup completion, disconnect it from the ESX server. The connection is established by creating an NFS datastore link which enables monolithic (or thick) VMDK backups as opposed to using the usual *nix mount command which necessitates breaking VMDK files into the 2gbsparse format for backup. Enabling this mode is self-explanatory and will evidently be so when editing the script (Note: &lt;b&gt;VM_BACKUP_VOLUME&lt;/b&gt; variable is ignored if &lt;b&gt;ENABLE_NON_PERSISTENT_NFS=1&lt;/b&gt; ).&lt;br /&gt;
&lt;br /&gt;
In its current configuration, the script will allow up to 3 unique backups of the Virtual Machine before it will overwrite the previous backups; this however, can be modified to fit procedures if need be. Please be diligent in running the script in a test or staging environment before using it on production live Virtual Machines; this script functions well within our environment but there is a chance that it may not fit well into other environments.&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;Features&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Support for multiple VMDK disk(s) backup per VM&lt;/li&gt;
&lt;li&gt;Only valid VMDK(s) presented to the VM will be backed up&lt;/li&gt;
&lt;li&gt;Online back up of VM(s)&lt;/li&gt;
&lt;li&gt;Ability to shutdown guestOS and initiate backup process and power on VM afterwards with the option of hardpower timeout &lt;/li&gt;
&lt;li&gt;Allow spaces in VM(s) backup list (not recommended and not a best practice)&lt;/li&gt;
&lt;li&gt;Ensure that snapshot removal process completes prior to to continuing onto the next VM backup&lt;/li&gt;
&lt;li&gt;VM(s) that intially contain &lt;b&gt;snapshots&lt;/b&gt; will not be backed up and will be ignored&lt;/li&gt;
&lt;li&gt;Ability to specify the number of backup rotations for VM&lt;/li&gt;
&lt;li&gt;Output back up VMDK(s) in either &lt;b&gt;ZEROEDTHICK&lt;/b&gt; (default behavior) or &lt;b&gt;2GB SPARSE&lt;/b&gt; or &lt;b&gt;THIN&lt;/b&gt; or &lt;b&gt;EAGERZEROEDTHICK&lt;/b&gt; format&lt;/li&gt;
&lt;li&gt;Support for both SCSI and IDE disks&lt;/li&gt;
&lt;li&gt;Non-persistent NFS backup &lt;/li&gt;
&lt;li&gt;Fully support VMDK(s) stored across multiple datastores&lt;/li&gt;
&lt;li&gt;Ability to compress backups (Experimental Support)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Ability to configure individual VM backup policies&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Ability to include/exclude specific VMDK(s) per VM (requires individual VM backup policy setup)&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Ability to configure logging output to file&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Independent disk awareness (will ignore VMDK)&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;New timeout variables for shutdown and snapshot creations &lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Ability to configure snapshots with both memory and/or quiesce options&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Ability to configure disk adapter format&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Additional debugging information including dry run execution&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="color:blue"&gt;Support for VMs with both virtual/physical RDM (pRDM will be ignored and not backed up)&lt;/span&gt;&lt;/b&gt; &lt;b&gt;&lt;span style="color:green"&gt;NEW!&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;Requirements:&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;VMs running on ESX(i) 3.5/4.0+&lt;/li&gt;
&lt;li&gt;SSH console access to ESX/ESXi host&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;Setup:&lt;/h1&gt;
&lt;br /&gt;
1) Download &lt;b&gt;ghettoVCB.sh&lt;/b&gt; to either your ESX or ESXi system&lt;br /&gt;
&lt;br /&gt;
2) Change the permissions on the script to ensure it can be executed:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# chmod +x ghettoVCB.sh
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;Configurations:&lt;/h1&gt;
&lt;br /&gt;
The following variables need to be defined within the script or in VM backup policy prior to execution. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Defining the backup datastore and folder in which the backups are stored (if folder does not exist, it will automatically be created):&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;VM_BACKUP_VOLUME=/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Defining the backup disk format (zeroedthick, eagerzeroedthick, thin, and 2gbsparse are available):&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;DISK_BACKUP_FORMAT=thin
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Defining the backup rotation per VM:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;VM_BACKUP_ROTATION_COUNT=3
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Defining whether the VM is powered down or not prior to backup (1 = enable, 0 = disable):&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color:green"&gt;Note: VM(s) that are powered off will not require snapshoting&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;POWER_VM_DOWN_BEFORE_BACKUP=0
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Defining whether the VM can be hard powered off when "POWER_VM_DOWN_BEFORE_BACKUP" is enabled and VM does not have VMware Tools installed&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;ENABLE_HARD_POWER_OFF=0
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;If "ENABLE_HARD_POWER_OFF" is enabled, then this defines the number of (60sec) iterations the script will before executing a hard power off when:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;ITER_TO_WAIT_SHUTDOWN=3
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The number (60sec) iterations the script will wait when powering off the VM and will give up and ignore the particular VM for backup:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;POWER_DOWN_TIMEOUT=5
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The number (60sec) iterations the script will wait when taking a snapshot of a VM and will give up and ignore the particular VM for backup:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color:green"&gt;Default value should suffice&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;SNAPSHOT_TIMEOUT=15
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Defining whether or not to enable compression (1 = enable, 0 = disable):&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;ENABLE_COMPRESSION=0
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Defining the adapter type for backed up VMDK (buslogic and lsilogic are available):&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;ADAPTER_FORMAT=buslogic
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Defining whether virtual machine memory is snapped and if quiescing is enabled (1 = enable, 0 = disable):&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color:green"&gt;Note: By default both are disabled&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;VM_SNAPSHOT_MEMORY=0
VM_SNAPSHOT_QUIESCE=0
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
*Defining VMDK(s) to backup from a particular VM either a list of vmdks or "all"&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;VMDK_FILES_TO_BACKUP=&amp;quot;myvmdk.vmdk&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ensure that you do not edit past this section:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;########################## DO NOT MODIFY PAST THIS LINE ##########################
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;Usage:&lt;/h1&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB.sh
###############################################################################
#
# ghettoVCB for ESX/ESXi 3.5 &amp;#38; 4.x+
# Author: William Lam
# http://www.engineering.ucsb.edu/~duonglt/vmware/
# Created: 11/17/2008
# Last modified: 11/14/2009
#
###############################################################################

Usage: ./ghettoVCB.sh -f [VM_BACKUP_UP_LIST] -c [VM_CONFIG_DIR] -l [LOG_FILE]

OPTIONS:
   -f     List of VMs to backup
   -c     Configuration directory for VM backups
   -l     File to output logging
   -d     Debug level [info|debug|dryrun] (default: info)

(e.g.)

Backup VMs stored in a list
        ./ghettoVCB.sh -f vms_to_backup

Backup VMs based on specific configuration located in directory
        ./ghettoVCB.sh -f vms_to_backup -c vm_backup_configs

Output will log to /tmp/ghettoVCB.log
        ./ghettoVCB.sh -f vms_to_backup -l /tmp/ghettoVCB.log

Dry run (no backup will take place)
        ./ghettoVCB.sh -f vms_to_backup -d dryrun

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The input to this script is a file that contains the display name of the virtual machine(s) separated by a newline. When creating this file on a non-Linux/UNIX system, you may introduce ^M character which can cause the script to miss-behave. To ensure this does not occur, plesae create the file on the ESX/ESXi host.&lt;br /&gt;
&lt;br /&gt;
Here is a sample of what the file would look like:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# cat vms_to_backup
VCAP
VIMA
vMA-2
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;Sample Execution:&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Backup VMs stored in a list&lt;/li&gt;
&lt;li&gt;Backup VMs based on individual VM backup policies&lt;/li&gt;
&lt;li&gt;Debug Mode&lt;/li&gt;
&lt;li&gt;Dry run Mode&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h2&gt;Backup VMs stored in a list&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Log verbosity: info (default)&lt;/li&gt;
&lt;li&gt;Log output: stdout (default)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB.sh -f vms_to_backup

2009-11-12 06:14:10 -- info: ============================== ghettoVCB LOG START ==============================

2009-11-12 06:14:10 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-12 06:14:10 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-12 06:14:10 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-12 06:14:10 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-12 06:14:10 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-12 06:14:10 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-12 06:14:10 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2009-11-12 06:14:10 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-12 06:14:10 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-12 06:14:10 -- info: CONFIG - LOG_LEVEL = info
2009-11-12 06:14:10 -- info: CONFIG - BACKUP_LOG_OUTPUT = stdout
2009-11-12 06:14:10 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2009-11-12 06:14:10 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-12 06:14:10 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

2009-11-12 06:14:15 -- info: Initiate backup for VCAP
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP_2.vmdk'...
Clone: 100% done.
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP_1.vmdk'...
Clone: 100% done.
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP.vmdk'...
Clone: 100% done.
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP-0.vmdk'...
Clone: 100% done.
2009-11-12 06:15:15 -- info: Backup Duration: 60 Seconds
2009-11-12 06:15:15 -- info: Successfully completed backup for VCAP!

2009-11-12 06:15:17 -- info: Initiate backup for VIMA
2009-11-12 06:15:17 -- info: Creating Snapshot &amp;quot;ghettoVCB-snapshot-2009-11-12&amp;quot; for VIMA
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SAS.Savvio/VIMA/VIMA.vmdk'...
Clone: 100% done.
2009-11-12 06:16:40 -- info: Removing snapshot from VIMA ...
2009-11-12 06:16:43 -- info: Backup Duration: 1.43 Minutes
2009-11-12 06:16:43 -- info: Successfully completed backup for VIMA!

2009-11-12 06:16:47 -- info: Initiate backup for vMA-2
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SAS.Constellation/vMA-2/vMA-2.vmdk'...
Clone: 100% done.
2009-11-12 06:18:14 -- info: Backup Duration: 1.45 Minutes
2009-11-12 06:18:14 -- info: Successfully completed backup for vMA-2!

2009-11-12 06:18:14 -- info: ============================== ghettoVCB LOG END ================================

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Backup VMs based on individual VM backup policies and log output to /tmp/ghettoVCB.log&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Log verbosity: info (default)&lt;/li&gt;
&lt;li&gt;Log output: /tmp/ghettoVCB.log (default)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
1. Create folder to hold individual VM backup policies (can be named anything):&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# mkdir backup_config
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. Create individual VM backup policies for each VM that ensure each file is named exactly as the display name of the VM being backed up (use provided template to create duplicates):&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya backup_config]# cp ghettoVCB-vm_backup_configuration_template VCAP
[root@himalaya backup_config]# cp ghettoVCB-vm_backup_configuration_template VIMA
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Listing of VM backup policy within backup configuration directory&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya backup_config]# ls
ghettoVCB-vm_backup_configuration_template  VCAP  VIMA
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Backup policy for "VCAP" (backup only 2 specific VMDKs)&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya backup_config]# cat VCAP
VM_BACKUP_VOLUME=/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
DISK_BACKUP_FORMAT=thin
VM_BACKUP_ROTATION_COUNT=3
POWER_VM_DOWN_BEFORE_BACKUP=0
ENABLE_HARD_POWER_OFF=0
ITER_TO_WAIT_SHUTDOWN=4
POWER_DOWN_TIMEOUT=5
SNAPSHOT_TIMEOUT=15
ENABLE_COMPRESSION=0
ADAPTER_FORMAT=buslogic
VM_SNAPSHOT_MEMORY=0
VM_SNAPSHOT_QUIESCE=0
VMDK_FILES_TO_BACKUP=&amp;quot;VCAP.vmdk,VCAP_2.vmdk&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Backup policy for VM "VIMA" (backup all VMDKs found)&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya backup_config]# cat VIMA
VM_BACKUP_VOLUME=/vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
DISK_BACKUP_FORMAT=thin
VM_BACKUP_ROTATION_COUNT=3
POWER_VM_DOWN_BEFORE_BACKUP=0
ENABLE_HARD_POWER_OFF=0
ITER_TO_WAIT_SHUTDOWN=4
POWER_DOWN_TIMEOUT=5
SNAPSHOT_TIMEOUT=15
ENABLE_COMPRESSION=0
ADAPTER_FORMAT=buslogic
VM_SNAPSHOT_MEMORY=1
VM_SNAPSHOT_QUIESCE=0
VMDK_FILES_TO_BACKUP=&amp;quot;all&amp;quot;

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:red"&gt;&lt;b&gt;Note:&lt;/b&gt;&lt;/span&gt; When specifying -c option (individual VM backup policy mode) if a VM is listed in the backup list but &lt;b&gt;DOES NOT&lt;/b&gt; have a corresponding backup policy, the VM will be backed up using the default configuration found within the ghettoVCB.sh script.&lt;br /&gt;
&lt;br /&gt;
Execution of backup&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB.sh -f vms_to_backup -c backup_config -l /tmp/ghettoVCB.log

Logging output to &amp;quot;/tmp/ghettoVCB.log&amp;quot; ...
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP_2.vmdk'...
Clone: 100% done.
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP.vmdk'...
Clone: 100% done.
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SAS.Savvio/VIMA/VIMA.vmdk'...
Clone: 100% done.
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SAS.Constellation/vMA-2/vMA-2.vmdk'...
Clone: 100% done.

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:red"&gt;&lt;b&gt;Note:&lt;/b&gt;&lt;/span&gt; When specifying the -l option (log output to file), vmkfstools copy is also logged to stdout. This is done primarily for debugging purposes.&lt;br /&gt;
&lt;br /&gt;
Log output from backup&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# cat /tmp/ghettoVCB.log

2009-11-12 06:26:53 -- info: ============================== ghettoVCB LOG START ==============================

2009-11-12 06:26:56 -- info: CONFIG - USING CONFIGURATION FILE = backup_config/VCAP
2009-11-12 06:26:56 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-12 06:26:56 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-12 06:26:56 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-12 06:26:56 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-12 06:26:56 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-12 06:26:56 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-12 06:26:56 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
2009-11-12 06:26:56 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-12 06:26:56 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-12 06:26:56 -- info: CONFIG - LOG_LEVEL = info
2009-11-12 06:26:56 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB.log
2009-11-12 06:26:56 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2009-11-12 06:26:56 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-12 06:26:56 -- info: CONFIG - VMDK_FILES_TO_BACKUP = VCAP.vmdk,VCAP_2.vmdk

2009-11-12 06:26:58 -- info: Initiate backup for VCAP
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP_2.vmdk'...
Clone: 100% done.
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP.vmdk'...
Clone: 100% done.
2009-11-12 06:26:59 -- info: Backup Duration: 1 Seconds
2009-11-12 06:26:59 -- info: Successfully completed backup for VCAP!

2009-11-12 06:26:59 -- info: CONFIG - USING CONFIGURATION FILE = backup_config/VIMA
2009-11-12 06:26:59 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-12 06:26:59 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-12 06:26:59 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-12 06:26:59 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-12 06:26:59 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-12 06:26:59 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-12 06:26:59 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
2009-11-12 06:26:59 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-12 06:26:59 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-12 06:26:59 -- info: CONFIG - LOG_LEVEL = info
2009-11-12 06:26:59 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB.log
2009-11-12 06:26:59 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 1
2009-11-12 06:26:59 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-12 06:26:59 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

2009-11-12 06:27:02 -- info: Initiate backup for VIMA
2009-11-12 06:27:02 -- info: Creating Snapshot &amp;quot;ghettoVCB-snapshot-2009-11-12&amp;quot; for VIMA
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SAS.Savvio/VIMA/VIMA.vmdk'...
Clone: 100% done.
2009-11-12 06:29:28 -- info: Removing snapshot from VIMA ...
2009-11-12 06:29:31 -- info: Backup Duration: 2.48 Minutes
2009-11-12 06:29:31 -- info: Successfully completed backup for VIMA!

2009-11-12 06:29:31 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-12 06:29:31 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-12 06:29:31 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-12 06:29:31 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-12 06:29:31 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-12 06:29:31 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-12 06:29:31 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2009-11-12 06:29:31 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-12 06:29:31 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-12 06:29:31 -- info: CONFIG - LOG_LEVEL = info
2009-11-12 06:29:31 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB.log
2009-11-12 06:29:31 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2009-11-12 06:29:31 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-12 06:29:31 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

2009-11-12 06:29:35 -- info: Initiate backup for vMA-2
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SAS.Constellation/vMA-2/vMA-2.vmdk'...
Clone: 100% done.
2009-11-12 06:31:05 -- info: Backup Duration: 1.50 Minutes
2009-11-12 06:31:05 -- info: Successfully completed backup for vMA-2!

2009-11-12 06:31:05 -- info: ============================== ghettoVCB LOG END ================================

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Debug backup mode&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Log verbosity: debug&lt;/li&gt;
&lt;li&gt;Log output: stdout&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB.sh -f vms_to_backup -c backup_config -d debug
2009-11-13 19:51:47 -- info: ============================== ghettoVCB LOG START ==============================

2009-11-13 19:51:47 -- debug: HOST BUILD: VMware ESX 4.0.0 build-164009
2009-11-13 19:51:47 -- debug: HOSTNAME: himalaya.primp-industries.com

2009-11-13 19:51:51 -- info: CONFIG - USING CONFIGURATION FILE = backup_config/VCAP
2009-11-13 19:51:51 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-13 19:51:51 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-13 19:51:51 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-13 19:51:51 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-13 19:51:51 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-13 19:51:51 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-13 19:51:51 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
2009-11-13 19:51:51 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-13 19:51:51 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-13 19:51:51 -- info: CONFIG - LOG_LEVEL = debug
2009-11-13 19:51:51 -- info: CONFIG - BACKUP_LOG_OUTPUT = stdout
2009-11-13 19:51:51 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2009-11-13 19:51:51 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-13 19:51:51 -- info: CONFIG - VMDK_FILES_TO_BACKUP = VCAP.vmdk,VCAP_2.vmdk

2009-11-13 19:51:52 -- info: Initiate backup for VCAP
2009-11-13 19:51:52 -- debug: findVMDK() - Searching for VMDK: &amp;quot;VCAP_2.vmdk&amp;quot; to backup
2009-11-13 19:51:52 -- debug: findVMDK() - Found VMDK! - &amp;quot;VCAP_2.vmdk&amp;quot; to backup
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP_2.vmdk'...
Clone: 100% done.
2009-11-13 19:51:53 -- debug: findVMDK() - Searching for VMDK: &amp;quot;VCAP_1.vmdk&amp;quot; to backup
2009-11-13 19:51:53 -- debug: findVMDK() - Searching for VMDK: &amp;quot;VCAP.vmdk&amp;quot; to backup
2009-11-13 19:51:53 -- debug: findVMDK() - Found VMDK! - &amp;quot;VCAP.vmdk&amp;quot; to backup
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP.vmdk'...
Clone: 100% done.
2009-11-13 19:51:53 -- debug: findVMDK() - Searching for VMDK: &amp;quot;VCAP-0.vmdk&amp;quot; to backup
2009-11-13 19:51:54 -- info: Backup Duration: 2 Seconds
2009-11-13 19:51:54 -- info: Successfully completed backup for VCAP!

2009-11-13 19:51:54 -- info: CONFIG - USING CONFIGURATION FILE = backup_config/VIMA
2009-11-13 19:51:54 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-13 19:51:54 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-13 19:51:54 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-13 19:51:54 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-13 19:51:54 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-13 19:51:54 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-13 19:51:54 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
2009-11-13 19:51:54 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-13 19:51:54 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-13 19:51:54 -- info: CONFIG - LOG_LEVEL = debug
2009-11-13 19:51:54 -- info: CONFIG - BACKUP_LOG_OUTPUT = stdout
2009-11-13 19:51:54 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 1
2009-11-13 19:51:54 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-13 19:51:54 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

2009-11-13 19:51:56 -- info: Initiate backup for VIMA
2009-11-13 19:51:56 -- info: Creating Snapshot &amp;quot;ghettoVCB-snapshot-2009-11-13&amp;quot; for VIMA
2009-11-13 19:51:58 -- debug: Waiting for snapshot &amp;quot;ghettoVCB-snapshot-2009-11-13&amp;quot; to be created
2009-11-13 19:51:58 -- debug: Snapshot timeout set to: 900 seconds
2009-11-13 19:52:01 -- debug: Waiting for snapshot creation to be completed - Iteration: 0 - sleeping for 60secs (Duration: 0 seconds)
2009-11-13 19:53:03 -- debug: findVMDK() - Searching for VMDK: &amp;quot;VIMA.vmdk&amp;quot; to backup
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SAS.Savvio/VIMA/VIMA.vmdk'...
Clone: 100% done.
2009-11-13 19:54:27 -- info: Removing snapshot from VIMA ...
2009-11-13 19:54:32 -- info: Backup Duration: 2.60 Minutes
2009-11-13 19:54:32 -- info: Successfully completed backup for VIMA!

2009-11-13 19:54:32 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-13 19:54:32 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-13 19:54:32 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-13 19:54:32 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-13 19:54:32 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-13 19:54:32 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-13 19:54:32 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2009-11-13 19:54:32 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-13 19:54:32 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-13 19:54:32 -- info: CONFIG - LOG_LEVEL = debug
2009-11-13 19:54:32 -- info: CONFIG - BACKUP_LOG_OUTPUT = stdout
2009-11-13 19:54:32 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2009-11-13 19:54:32 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-13 19:54:32 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

2009-11-13 19:54:35 -- info: Initiate backup for vMA-2
2009-11-13 19:54:35 -- debug: findVMDK() - Searching for VMDK: &amp;quot;vMA-2.vmdk&amp;quot; to backup
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/himalaya-local-SAS.Constellation/vMA-2/vMA-2.vmdk'...
Clone: 100% done.
2009-11-13 19:56:10 -- info: Backup Duration: 1.58 Minutes
2009-11-13 19:56:10 -- info: Successfully completed backup for vMA-2!

2009-11-13 19:56:10 -- info: ============================== ghettoVCB LOG END ================================
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Dry run Mode (no backup will take place)&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Log verbosity: drymode&lt;/li&gt;
&lt;li&gt;Log output: stdout&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# ./ghettoVCB.sh -f vms_to_backup -c backup_config -d dryrun

2009-11-12 06:32:57 -- info: ============================== ghettoVCB LOG START ==============================

2009-11-12 06:33:01 -- info: CONFIG - USING CONFIGURATION FILE = backup_config/VCAP
2009-11-12 06:33:01 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-12 06:33:01 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-12 06:33:01 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-12 06:33:01 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-12 06:33:01 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-12 06:33:01 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-12 06:33:01 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
2009-11-12 06:33:01 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-12 06:33:01 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-12 06:33:01 -- info: CONFIG - LOG_LEVEL = dryrun
2009-11-12 06:33:01 -- info: CONFIG - BACKUP_LOG_OUTPUT = stdout
2009-11-12 06:33:01 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2009-11-12 06:33:01 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-12 06:33:01 -- info: CONFIG - VMDK_FILES_TO_BACKUP = VCAP.vmdk,VCAP_2.vmdk

2009-11-12 06:33:01 -- dryrun: ###############################################
2009-11-12 06:33:01 -- dryrun: Virtual Machine: VCAP
2009-11-12 06:33:01 -- dryrun: VM_ID: 2784
2009-11-12 06:33:01 -- dryrun: VMX_PATH: /vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP/VCAP.vmx
2009-11-12 06:33:01 -- dryrun: VMX_DIR: /vmfs/volumes/himalaya-local-SATA.RE4-GP:Storage/VCAP
2009-11-12 06:33:01 -- dryrun: VMX_CONF: VCAP/VCAP.vmx
2009-11-12 06:33:01 -- dryrun: VMFS_VOLUME: himalaya-local-SATA.RE4-GP:Storage
2009-11-12 06:33:01 -- dryrun: VMDK(s):
2009-11-12 06:33:01 -- dryrun:  VCAP_2.vmdk
2009-11-12 06:33:01 -- dryrun:  VCAP_1.vmdk
2009-11-12 06:33:01 -- dryrun:  VCAP.vmdk
2009-11-12 06:33:01 -- dryrun:  VCAP-0.vmdk
2009-11-12 06:33:01 -- dryrun: ###############################################

2009-11-12 06:33:01 -- info: CONFIG - USING CONFIGURATION FILE = backup_config/VIMA
2009-11-12 06:33:01 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-12 06:33:01 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-12 06:33:01 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-12 06:33:01 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-12 06:33:01 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-12 06:33:01 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-12 06:33:01 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
2009-11-12 06:33:01 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-12 06:33:01 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-12 06:33:01 -- info: CONFIG - LOG_LEVEL = dryrun
2009-11-12 06:33:01 -- info: CONFIG - BACKUP_LOG_OUTPUT = stdout
2009-11-12 06:33:01 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 1
2009-11-12 06:33:01 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-12 06:33:01 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

2009-11-12 06:33:01 -- dryrun: ###############################################
2009-11-12 06:33:01 -- dryrun: Virtual Machine: VIMA
2009-11-12 06:33:01 -- dryrun: VM_ID: 4064
2009-11-12 06:33:01 -- dryrun: VMX_PATH: /vmfs/volumes/himalaya-local-SAS.Savvio/VIMA/VIMA.vmx
2009-11-12 06:33:01 -- dryrun: VMX_DIR: /vmfs/volumes/himalaya-local-SAS.Savvio/VIMA
2009-11-12 06:33:01 -- dryrun: VMX_CONF: VIMA/VIMA.vmx
2009-11-12 06:33:01 -- dryrun: VMFS_VOLUME: himalaya-local-SAS.Savvio
2009-11-12 06:33:01 -- dryrun: VMDK(s):
2009-11-12 06:33:01 -- dryrun:  VIMA.vmdk
2009-11-12 06:33:01 -- dryrun: ###############################################

2009-11-12 06:33:01 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2009-11-12 06:33:01 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2009-11-12 06:33:01 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2009-11-12 06:33:01 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2009-11-12 06:33:01 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2009-11-12 06:33:01 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2009-11-12 06:33:01 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2009-11-12 06:33:01 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2009-11-12 06:33:01 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2009-11-12 06:33:01 -- info: CONFIG - LOG_LEVEL = dryrun
2009-11-12 06:33:01 -- info: CONFIG - BACKUP_LOG_OUTPUT = stdout
2009-11-12 06:33:01 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2009-11-12 06:33:01 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2009-11-12 06:33:01 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

2009-11-12 06:33:01 -- dryrun: ###############################################
2009-11-12 06:33:01 -- dryrun: Virtual Machine: vMA-2
2009-11-12 06:33:01 -- dryrun: VM_ID: 4960
2009-11-12 06:33:01 -- dryrun: VMX_PATH: /vmfs/volumes/himalaya-local-SAS.Constellation/vMA-2/vMA-2.vmx
2009-11-12 06:33:01 -- dryrun: VMX_DIR: /vmfs/volumes/himalaya-local-SAS.Constellation/vMA-2
2009-11-12 06:33:01 -- dryrun: VMX_CONF: vMA-2/vMA-2.vmx
2009-11-12 06:33:01 -- dryrun: VMFS_VOLUME: himalaya-local-SAS.Constellation
2009-11-12 06:33:01 -- dryrun: VMDK(s):
2009-11-12 06:33:02 -- dryrun:  vMA-2.vmdk
2009-11-12 06:33:02 -- dryrun: ###############################################

2009-11-12 06:33:02 -- info: ============================== ghettoVCB LOG END ================================

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;Enable compression for backups:&lt;/h1&gt;
&lt;br /&gt;
To make use of this feature, modify the variable &lt;b&gt;ENABLE_COMPRESSION&lt;/b&gt; from 0 to 1. Please note, do not mix  uncompressed backups with compressed backups. Ensure that directories selected for backups do not contain any backups with previous versions of ghettoVCB before enabling and implementing the compressed backups feature.&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;Restore backups (ghettoVCB-restore.sh):&lt;/h1&gt;
&lt;br /&gt;
To recover a VM that has been processed by ghettoVCB, please take a look at this document: &lt;a class="jive-link-wiki" href="http://communities.vmware.com/docs/DOC-10595"&gt;Ghetto Tech Preview - ghettoVCB-restore.sh - Restoring VM's backed up from ghettoVCB to ESX(i) 3.5 and 4.0+&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;Cronjob FAQ:&lt;/h1&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/"&gt;Please take a moment to read over what is a cronjob and how to set one up, before continuing&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The task of configuring cronjobs on classic ESX servers (with Service Console) is no different than traditional cronjobs on *nix operating systems (this procedure is outlined in the link above). With ESXi on the other hand, additional factors need to be taken into account when setting up cronjobs in the limited shell console called Busybox because changes made do not persist through a system reboot. The following document will outline steps to ensure that cronjob configurations are saved and present upon a reboot. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Task&lt;/b&gt;: Configure ghettoVCB.sh to execute a backup five days a week (M-F) at 12AM (midnight) everyday and send output to a unique log file&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Configure on ESX:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. As root, you'll install your cronjob by issuing:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya ~]# crontab -e
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. Append the following entry:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;0 0 * * 1-5 /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB.sh /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/backuplist &amp;gt; /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB-backup-$(date +\%s).log
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
3. Save and exit&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya dlgCore-NFS-bigboi.VM-Backups]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
4. List out and verify the cronjob that was just created:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya dlgCore-NFS-bigboi.VM-Backups]# crontab -l
0 0 * * 1-5 /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB.sh /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/backuplist &amp;gt; /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/ghettoVCB-backup-$(date +\%s).log
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
You're ready to go!&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Configure on ESXi:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. Setup the cronjob by appending the following line to &lt;u&gt;/var/spool/cron/crontabs/root&lt;/u&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh /vmfs/volumes/simplejack-local-storage/backuplist &amp;gt; /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-$(date +\%s).log
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. Kill the current crond (cron daemon) and then restart the crond for the changes to take affect:&lt;br /&gt;
&lt;br /&gt;
On ESXi &amp;lt; 3.5u3&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;/bin/kill `ps | grep crond | cut -f 1 -d ' '`
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
On ESXi 3.5u3+&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;~ # kill $(pidof crond)
~ # crond
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
On ESXi 4.0&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;~ # kill $(cat /var/run/crond.pid)
~ # busybox crond
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
3. Now that the cronjob is ready to go, you need to ensure that this cronjob will persist through a reboot. You'll need to add the following two lines to &lt;b&gt;/etc/rc.local&lt;/b&gt; (ensure that the cron entry matches what was defined above)&lt;br /&gt;
&lt;br /&gt;
On ESXi 3.5&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;/bin/kill $(pidof crond)
/bin/echo &amp;quot;0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh /vmfs/volumes/simplejack-local-storage/backuplist &amp;gt; /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-\$(date +\\%s).log&amp;quot; &amp;gt;&amp;gt; /var/spool/cron/crontabs/root
crond
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
On ESXi 4.0&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;/bin/kill $(cat /var/run/crond.pid)
/bin/echo &amp;quot;0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh /vmfs/volumes/simplejack-local-storage/backuplist &amp;gt; /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-\$(date +\\%s).log&amp;quot; &amp;gt;&amp;gt; /var/spool/cron/crontabs/root
/bin/busybox crond
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Afterwards the file should look like the following: &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;~ # cat /etc/rc.local
#! /bin/ash
export PATH=/sbin:/bin

log() {
   echo &amp;quot;$1&amp;quot;
   logger init &amp;quot;$1&amp;quot;
}

#execute all service retgistered in /etc/rc.local.d
if [http:// -d /etc/rc.local.d |http:// -d /etc/rc.local.d ]; then
   for filename in `find /etc/rc.local.d/ | sort`
      do
         if [ -f $filename ] &amp;#38;&amp;#38; [ -x $filename ]; then
            log &amp;quot;running $filename&amp;quot;
            $filename
         fi
      done
fi

/bin/kill $(cat /var/run/crond.pid)
/bin/echo &amp;quot;0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh /vmfs/volumes/simplejack-local-storage/backuplist &amp;gt; /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-\$(date +\\%s).log&amp;quot; &amp;gt;&amp;gt; /var/spool/cron/crontabs/root
/bin/busybox crond

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This will ensure that the cronjob is re-created upon a reboot of the system through a startup script&lt;br /&gt;
&lt;br /&gt;
2. To ensure that this is saved in the ESXi configuration, we need to manually initiate an ESXi backup by running:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;~ # /sbin/auto-backup.sh
config implicitly loaded
local.tgz
etc/vmware/vmkiscsid/vmkiscsid.db
etc/dropbear/dropbear_dss_host_key
etc/dropbear/dropbear_rsa_host_key
etc/opt/vmware/vpxa/vpxa.cfg
etc/opt/vmware/vpxa/dasConfig.xml
etc/sysconfig/network
etc/vmware/hostd/authorization.xml
etc/vmware/hostd/hostsvc.xml
etc/vmware/hostd/pools.xml
etc/vmware/hostd/vmAutoStart.xml
etc/vmware/hostd/vmInventory.xml
etc/vmware/hostd/proxy.xml
etc/vmware/ssl/rui.crt
etc/vmware/ssl/rui.key
etc/vmware/vmkiscsid/initiatorname.iscsi
etc/vmware/vmkiscsid/iscsid.conf
etc/vmware/vmware.lic
etc/vmware/config
etc/vmware/dvsdata.db
etc/vmware/esx.conf
etc/vmware/license.cfg
etc/vmware/locker.conf
etc/vmware/snmp.xml
etc/group
etc/hosts
etc/inetd.conf
etc/rc.local
etc/chkconfig.db
etc/ntp.conf
etc/passwd
etc/random-seed
etc/resolv.conf
etc/shadow
etc/sfcb/repository/root/interop/cim_indicationfilter.idx
etc/sfcb/repository/root/interop/cim_indicationhandlercimxml.idx
etc/sfcb/repository/root/interop/cim_listenerdestinationcimxml.idx
etc/sfcb/repository/root/interop/cim_indicationsubscription.idx
Binary files /etc/vmware/dvsdata.db and /tmp/auto-backup.31345.dir/etc/vmware/dvsdata.db differ
config implicitly loaded
Saving current state in /bootbank
Clock updated.
Time: 20:40:36   Date: 08/14/2009   UTC

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Now you're really done!&lt;br /&gt;
&lt;p /&gt;
If you're still having trouble getting the cronjob to work, ensure that you've specified the correct parameters and there aren’t any typos in any part of the syntax. &lt;br /&gt;
&lt;br /&gt;
Ensure crond (cron daemon) is running:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ESX:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya dlgCore-NFS-bigboi.VM-Backups]# ps -ef | grep crond | grep -v grep
root      2625     1  0 Aug13 ?        00:00:00 crond
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ESXi:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;~ # ps | grep crond | grep -v grep
5196 5196 busybox              crond
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Ensure that the date/time on your ESX(i) host is setup correctly:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ESX(i):&lt;/b&gt;&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;[root@himalaya dlgCore-NFS-bigboi.VM-Backups]# date
Fri Aug 14 23:44:47 PDT 2009
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;span style="color:red"&gt;&lt;b&gt;Note:&lt;/b&gt;&lt;/span&gt; Careful attention must be noted if more than one backup is performed per day. Backup windows should be staggered to avoid contention or saturation of resources during these periods.&lt;hr /&gt;
&lt;br /&gt;
&lt;h1&gt;FAQ:&lt;/h1&gt;
&lt;br /&gt;
&lt;b&gt;1Q:&lt;/b&gt; I'm getting error X when using the script or I'm not getting any errors, the backup didn’t even take place. Oh what could be wrong? &lt;br /&gt;
&lt;b&gt;1A:&lt;/b&gt; Please provide the entire output of a manual execution (debug &amp;#38; dryrun mode) or if you're logging the output withing \{code\} tags, a short description of your environment and the type of VM(s) you're trying to backup—I will try to provide some assistance.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2Q:&lt;/b&gt; I've sent you private message or email but I haven't received a response? What gives?&lt;br /&gt;
&lt;b&gt;2A:&lt;/b&gt; I do not accept issues/bugs reported via PM or email, I will reply back, directing you to post on the appropriate VMTN forum (that's what it's for). If the data/results you're providing is truely senstive to your environment I will hear you out, but 99.99% it is not, so please do not messsage/email me directly. I do monitor all forums that contain my script including the normal VMTN forums and will try to get back to your question as soon as I can and as time permits. Please do be patient as you're not the only person using the script (100,000+ views), thank you.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3Q:&lt;/b&gt; Can I schedule backups to take place hourly, daily, monthly, yearly?&lt;br /&gt;
&lt;b&gt;3A:&lt;/b&gt; Yes, do a search online for &lt;b&gt;crontab&lt;/b&gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4Q:&lt;/b&gt; I would like to setup cronjob for ESX(i) 3.5 or 4.0?&lt;br /&gt;
&lt;b&gt;4A:&lt;/b&gt; Take a look at the Cronjob FAQ section in this document. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5Q:&lt;/b&gt; I want to schedule my backup on Windows, how do I do this?&lt;br /&gt;
&lt;b&gt;5A:&lt;/b&gt; Do a search for &lt;b&gt;plink&lt;/b&gt;. Make sure you have paired SSH keys setup between your Windows system and ESX/ESXi host.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;6Q:&lt;/b&gt; I only have a single ESXi host. I want to take backups and store them somewhere else. The problem is: I don't have NFS, iSCSI nor FC SAN. What can I do?&lt;br /&gt;
&lt;b&gt;6A:&lt;/b&gt; You can use local storage to store your backups assuming that you have enough space on the destination datastore.  Afterwards, you can use scp (WinSCP/FastSCP) to transfer the backups from the ESXi host to your local desktop.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7Q:&lt;/b&gt; I’m pissed; the backup is taking too long. My datastore is of type X?&lt;br /&gt;
&lt;b&gt;7A:&lt;/b&gt; YMMV, take a look at your storage configuration and make sure it is optimized.  &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8Q:&lt;/b&gt; I noticed that the backup rotation is occurring after a backup. I don't have enough local storage space, can the process be changed?&lt;br /&gt;
&lt;b&gt;8A:&lt;/b&gt; This is primarily done to ensure that you have at least one good backup in case the new backup fails. If you would like to modify the script, you're more than welcome to do so. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9Q:&lt;/b&gt; What is the best storage configuration for datastore type X?&lt;br /&gt;
&lt;b&gt;9A:&lt;/b&gt; Search the VMTN forums; there are various configurations for the different type of storage/etc.  &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10Q:&lt;/b&gt; I want to setup an NFS server to run my backups. Which is the best and should it be virtual or physical?  &lt;br /&gt;
&lt;b&gt;10A:&lt;/b&gt; Please refer to answer 7A. From experience, we’ve seen physical instances of NFS servers to be faster than their virtual counterparts.  As always, YMMV. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;11Q:&lt;/b&gt; I have VMs that have snapshots. I want to back these things up but the script doesn’t let me do it. How do I fix that?&lt;br /&gt;
&lt;b&gt;11A:&lt;/b&gt; VM snapshots are not meant to be kept for long durations. When backing up a VM that contains a snapshot, you should ensure all snapshots have been committed prior to running a backup. No exceptions will be made…ever.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;12Q:&lt;/b&gt; I would like to restore from backup, what is the best method?&lt;br /&gt;
&lt;b&gt;12A:&lt;/b&gt; The restore process will be unique for each environment and should be determined by your backup/recovery plans. At a high level you have the option of mounting the backup datastore and registering the VM in question or copy the VM from the backup datastore to the ESX/ESXi host. The latter is recommended so that you're not running a VM living on the backup datastore or inadvertently modifying your backup VM(s).  &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;13Q:&lt;/b&gt; When I try to run the script I get: &lt;b&gt;"-bash: ./ghettoVCB.sh: Permission denied"&lt;/b&gt;, what is wrong?&lt;br /&gt;
&lt;b&gt;13A:&lt;/b&gt; You need to change the permission on the script to be executable, chmod +x ghettoVCB.sh&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;14Q:&lt;/b&gt; Where can I download the latest version of the script?&lt;br /&gt;
&lt;b&gt;14A:&lt;/b&gt; The latest version is available on this page at the bottom.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;15Q:&lt;/b&gt; I would like to suggest/recommend feature X, can I get it?  When can I get it? Why isn't it here, what gives?  &lt;br /&gt;
&lt;b&gt;15A:&lt;/b&gt; The general purpose of this script is to provide a backup solution around VMware VMs. Any additional features outside of that process will be taken into consideration depending on the amount of time, number of requests and actual usefulness as a whole to the community rather than to an individual.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;16Q:&lt;/b&gt; What are the different type of backup uses cases that are supported with ghettoVCB? &lt;br /&gt;
&lt;b&gt;16A:&lt;/b&gt; 1) Live backup of VM with the use of a snapshot and 2) Offline backup of a VM without a snapshot. These are the only two use cases supported by the script.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Useful Links:&lt;/h2&gt;
&lt;br /&gt;
Detail instructions on how to configure/schedule ghettoVCB on Windows (&lt;a class="jive-link-external" href="http://blog.theworldrunsontechnology.com/"&gt;Raj Perumal's The World Runs on Technology Blog&lt;/a&gt;):&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blog.theworldrunsontechnology.com/2009/04/backing-up-your-virtual-machines-in.html"&gt;Part 1&lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blog.theworldrunsontechnology.com/2009/04/creating-virtual-machine-backups-in.html"&gt;Part 2&lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blog.theworldrunsontechnology.com/2009/04/how-to-schedule-ghettovcb-backup-job-or.html"&gt;Part 3&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
&lt;h2&gt;Change log:&lt;/h2&gt;
&lt;p /&gt;
11/17/09 - The following enhancements and fixes have been implemented in this release of ghettoVCB. Special thanks goes out to all the ghettoVCB BETA testers for providing time and their environments to test features/fixes of the new script!&lt;br /&gt;
&lt;br /&gt;
Enhancements:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Individual VM backup policy&lt;/li&gt;
&lt;li&gt;Include/exclude specific VMDK(s)&lt;/li&gt;
&lt;li&gt;Logging to file&lt;/li&gt;
&lt;li&gt;Timeout variables&lt;/li&gt;
&lt;li&gt;Configur snapshot memory/quiesce&lt;/li&gt;
&lt;li&gt;Adapter format&lt;/li&gt;
&lt;li&gt;Additional logging + dryrun mode&lt;/li&gt;
&lt;li&gt;Support for both physical/virtual RDMs&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
Fixes:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Independent disk aware&lt;/li&gt;
&lt;/ul&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">backup</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vcb</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vmkfstools</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">snapshot</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">4.0</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esxi.40</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esxi4</category>
      <pubDate>Tue, 18 Nov 2008 03:04:10 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-8760</guid>
      <dc:date>2008-11-18T03:04:10Z</dc:date>
      <clearspace:dateToText>1 week, 20 hours ago</clearspace:dateToText>
      <clearspace:replyCount>518</clearspace:replyCount>
    </item>
    <item>
      <title>Virtual Center - Task and Event History</title>
      <link>http://communities.vmware.com/docs/DOC-8620</link>
      <description>In ESX you can see recent events in task / events. But there appears to be a limit. since it's saved in a database, shouldn't this list go back as far as you need? Any way to see the ENTIRE task / event list?&lt;br /&gt;
&lt;br /&gt;
This is from the VC not individual ESX hosts, how do we retrieve the list so we can see months or weeks ago?&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Well it's not syslog, but I did figure out where this info is. And SQL does keep ALL the events, going back to the beginning, at least our database hasn't purge the old data yet, I have stuff going back to June (when I rebuilt the SQL table)&lt;br /&gt;
&lt;br /&gt;
SQL : Schemas -&amp;gt; dbo -&amp;gt; Tables -&amp;gt; VPX_EVENT&lt;br /&gt;
&lt;br /&gt;
You have to export this from SQL or use a viewer to get this info, but the events, tasks, everything (all details) are there. Now why can't VI simply display the entire table if we want it?&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
FYI for everyone, I contacted vmware about this and was confirmed to what rparker said...the ONLY way to get this info is to query the database...currently it is not possible to get this detailed historic data from VC...&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/176870"&gt;Task / Event History&lt;/a&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">virtual</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">center</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">task</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">event</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">history</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vc</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vc_2.5</category>
      <pubDate>Thu, 06 Nov 2008 15:11:40 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-8620</guid>
      <dc:date>2008-11-06T15:11:40Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Simple steps to use CA Arcserve bakcup agent on ESX 3.x</title>
      <link>http://communities.vmware.com/docs/DOC-8331</link>
      <description>&lt;br /&gt;
1- Fist of all, transfer your Arcserve Agent install files ( in a temporary folder on your ESX ), using VEAM sftp for example. You need to transfer the following files from the CD to the temporary folder: /agnts/linux &lt;br /&gt;
&lt;p /&gt;
2 - Do a chmod 777 -R on all the copied file , tohave enough permissions to run the install procedure &lt;br /&gt;
&lt;p /&gt;
3 - from this folder, run ./install&lt;br /&gt;
&lt;p /&gt;
4 - After install is completed, run the agent: uagent start &lt;br /&gt;
&lt;p /&gt;
5 - Enable service via Firewall:&lt;br /&gt;
&lt;p /&gt;
esxcfg-firewall --openPort 6050,tcp,out,caagentd&lt;br /&gt;
esxcfg-firewall --openPort 6050,udp,out,caagentd&lt;br /&gt;
esxcfg-firewall --openPort 6051,tcp,in,caagentd &lt;br /&gt;
esxcfg-firewall --openPort 6051,udp,in,caagentd&lt;br /&gt;
&lt;br /&gt;
6 - esxcfg-firewall -s should show you something like this:&lt;br /&gt;
Known services: activeDirectorKerberos caARCserve CIMHttpServer CIMHttpsServer CIMSLP commvaultDynamic commvaultStatic ftpClient ftpServer kerberos LDAP LDAPS legatoNetWorker LicenseClient nfsClient nisClient ntpClient smbClient snmpd sshClient sshServer swISCSIClient symantecBackupExec symantecNetBackup telnetClient TSM updateManager VCB vncServer vpxHeartbeats&lt;br /&gt;
&lt;br /&gt;
7 - enable CA arcserve service: esxcfg-firewall -e caARCserve &lt;br /&gt;
&lt;br /&gt;
8 - restart the firewall service: service firewall restart &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
9 - In order to make the /vmfs directory visible u need to modify the file /etc/mtab&lt;br /&gt;
and add this line&lt;br /&gt;
/vmfs /vmfs vmfs rw 0 0&lt;br /&gt;
and restart agent&lt;br /&gt;
caagent stop&lt;br /&gt;
caagent start &lt;br /&gt;
&lt;p /&gt;
This is optional. It should be done automatically by the install procedure. &lt;br /&gt;
&lt;p /&gt;
10 - Set up VMware ESX Server automatic pre and post scripts to enable online Vm backups:&lt;br /&gt;
&lt;p /&gt;
From the CD , copy all files located in /agents/vmware to /opt/CA/BABuagent&lt;br /&gt;
, you must copy the pre_backup.pl pre script, the post_backup.pl post script, and the supporting files listed below to the BABuagent directory, and give execution permission to all the copied files. &lt;br /&gt;
Note: The permissions given should be similar to the permissions given to the Agent for Linux executable (labeled "uagentd") residing in the BABuagent directory. &lt;br /&gt;
&lt;br /&gt;
cavm.cfg , env_var.pm , err_msg_set.pm , debug_msg.pm and the 2 .pl files&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
You need to give enough permissions to all these files to be excuted correctly ( for example, do a chmod 777 on all these files ).&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
11 - Modify the file: /opt/CA/BABuagent/uag.cfg : you need to add the following 3 lines at the end of the file&lt;br /&gt;
&lt;p /&gt;
-P 0&lt;br /&gt;
-Prebackup /opt/CA/BABuagent/pre_backup.pl&lt;br /&gt;
-Postbackup /opt/CA/BABuagent/post_backup.pl&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
That's all. And the backup /restores work great. Even with online VMs &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Hope this will help. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/157964"&gt;Simple steps to use CA Arcserve bakcup agent on ESX 3.x&lt;/a&gt;</description>
      <pubDate>Tue, 21 Oct 2008 08:32:48 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-8331</guid>
      <dc:date>2008-10-21T08:32:48Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>virtual_networking_concepts</title>
      <link>http://communities.vmware.com/docs/DOC-8070</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=2411">networking</category>
      <pubDate>Mon, 06 Oct 2008 09:33:19 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-8070</guid>
      <dc:date>2008-10-06T09:33:19Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
    </item>
    <item>
      <title>NFS Storage configuration</title>
      <link>http://communities.vmware.com/docs/DOC-7900</link>
      <description>&lt;br /&gt;
Im trying to set up NFS storage for our ESX servers&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Not sure if I have my networking setup correct for it too&lt;br /&gt;
work.&lt;br /&gt;
&lt;p /&gt;
vmnic0: Service Console on a&lt;br /&gt;
"legal"(129.242.x.x) address on vswitch0.&lt;br /&gt;
&lt;p /&gt;
vmnic1: free&lt;br /&gt;
&lt;p /&gt;
vmnic2: virtual machines on vswitch2&lt;br /&gt;
&lt;p /&gt;
vmnic3: Vmkernel for Vmotion on a&lt;br /&gt;
"private"(10.0.4.x) address on vswitch1.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
When i try to mount the NFS Storage in VIC i get the following error:&lt;br /&gt;
&lt;p /&gt;
"ERROR DURING THE CONFIGURATION OF THE HOST: UNABLE TO GET CONSOLE PATH FOR MOUNT"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Routing issue?&lt;br /&gt;
&lt;p /&gt;
Network config issue?&lt;br /&gt;
&lt;p /&gt;
vSwitch issue?&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Any help would be appreciated.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Thanx,&lt;br /&gt;
&lt;br /&gt;
Roar</description>
      <pubDate>Wed, 24 Sep 2008 13:20:12 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-7900</guid>
      <dc:date>2008-09-24T13:20:12Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Remediation steps for cold clone of Solaris x86</title>
      <link>http://communities.vmware.com/docs/DOC-7622</link>
      <description>&lt;br /&gt;
Here are some notes I created when trying to get a cold cloned Solaris 64-bit VM which originated on an HP BL685c G5 server to run. The main complication is that the SCSI/RAID controller needs to be updated in the ramdisk and paths change. &lt;br /&gt;
&lt;p /&gt;
It is not possible to resize virtual disk and the underlying filesystems are not accessible for individual selection leading to long clone time and/or large virtual disk size. Once cloned verify that the guest OS has been correctly identified and that the devices are appropriate for the guest OS. Some NIC adapter options are only relevant for particular guest OS so it is often necessary to change the guest OS save that change and then change the hardware to match. If you change the SCSI adapter associated with a virtual disk you will receive a warning asking if you want to change the bus adapter type associated with the disk, it appears to be safe to do this. Boot VM OS instance into failsafe mode and allow it to mount the discovered OS instance at /a. Discover /devices path to root filesystem and remount read-write e.g.&lt;br /&gt;
&lt;p /&gt;
&amp;lsquo;df /a' gives block device name&lt;br /&gt;
&lt;p /&gt;
&amp;lsquo;ls -l /dev/dsk/c1t0d0s0' gives path to /devices path&lt;br /&gt;
&lt;p /&gt;
edit bootpath property in /a/boot/solaris/bootenv.rc to reflect this path to the new root device. Reboot the system, you should see the boot_archive ram disk being updated to reflect the hardware changes. Allow the system to attempt to boot normally, it will fail to mount the root filesystem and should drop to maintenance mode. Log in and remount the root filesystem read-write e.g.&lt;br /&gt;
&lt;p /&gt;
mount -o remount,rw /devices/pci@0,0/pci1000,30@10/sd@0,0:a /&lt;br /&gt;
&lt;p /&gt;
run devfsadm to reprobe the hardware&lt;br /&gt;
&lt;p /&gt;
run format to determine new /dev path to root filesystem and edit /etc/vfstab to reflect this new path.&lt;br /&gt;
&lt;p /&gt;
In the event that the driver for the network card in the physical machine was different from that in the VM you will need to  move /etc/hostname.'driver''instance' e.g.&lt;br /&gt;
&lt;p /&gt;
mv /etc/hostname.bnx0 /etc/hostname.e1000g0&lt;br /&gt;
&lt;p /&gt;
ZFS resources are not specified in /etc/vfstab they must be destroyed and then imported using the pool ID e.g.&lt;br /&gt;
&lt;p /&gt;
zpool destroy export&lt;br /&gt;
zpool import -f 1640966619789446333 export&lt;br /&gt;
&lt;p /&gt;
Reboot the system, once again you should see the boot_archive ram disk being updated. Install VMware tools and reboot one final time.</description>
      <pubDate>Wed, 10 Sep 2008 08:01:28 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-7622</guid>
      <dc:date>2008-09-10T08:01:28Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Is there any way to reduce Memory Overhead size for Virtual Machines?</title>
      <link>http://communities.vmware.com/docs/DOC-7420</link>
      <description>I have ESX 3.5 with 8GB Memory. And I am running 90 VMs of 40MB each with 76MB Memory Overhead. Is there any way to reduce the Memory Overhead size , So, that I can run more VMs.&lt;br /&gt;
&lt;hr /&gt;
Welcome to the forums,&lt;br /&gt;
&lt;br /&gt;
As far as I know this isn't possible. The memory overhead is calculated according to the memory size, number of cpu's and the fact if it's a 32 or 64 vm.&lt;br /&gt;
&lt;br /&gt;
more info on why:&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.waldspurger.org/carl/papers/esx-mem-osdi02.pdf"&gt;http://www.waldspurger.org/carl/papers/esx-mem-osdi02.pdf&lt;/a&gt;&lt;br /&gt;
and the following pdf, page 128:&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_301_201_resource_mgmt.pdf"&gt;http://www.vmware.com/pdf/vi3_301_201_resource_mgmt.pdf&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Duncan&lt;br /&gt;
My virtualisation blog:&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.yellow-bricks.com"&gt;http://www.yellow-bricks.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you find this information useful, please award points for "correct" or "helpful".&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
The only way I know of is to remove all non-required virtual hardware components and to use faster cores allowing the assignment of 1 vCPU in more VMs versus mutilple vCPUs which have more overhead.&lt;br /&gt;
&lt;hr /&gt;
Hello, &lt;br /&gt;
&lt;br /&gt;
I am also facing same problem...Can we fool ESX somehow so that ESX doesn't take the Overhead memory into account??&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Any Help appreciated!!&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
No, if you read the links above you will see that this isn't possible. It just reserves the space for certain procedures. maybe in time the overhead will be reduced, who knows...&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Duncan&lt;br /&gt;
My virtualisation blog:&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.yellow-bricks.com"&gt;http://www.yellow-bricks.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you find this information useful, please award points for "correct" or "helpful".&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
Is there any way to enable/increase swap after ESX server is installed. Would it solve the problem of overhead memory?&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Any help appreciated. &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Thanks &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/165419"&gt;Is there any way to reduce Memory Overhead size for Virtual Machines?&lt;/a&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:28:36 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-7420</guid>
      <dc:date>2008-08-28T13:28:36Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Replicated SAN LUNs using Sun StorageTek 6140 with VI3.5: VMWare tries to format the LUN after DR...</title>
      <link>http://communities.vmware.com/docs/DOC-7360</link>
      <description>I've got a DR environment with 2x Sun StorageTek 6140 Arrays and 3 LUNs replicated between.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
ARRAY PROD ST6140 &amp;#38; ARRAY DR ST6140&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p /&gt;
&lt;p /&gt;
VOL01_PROD is replicated with VOL01_DR&lt;br /&gt;
&lt;br /&gt;
VOL02_PROD is replicated with VOL02_DR&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
VOL03_PROD is replicated with VOL03_DR&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
&lt;p /&gt;
When I do a disaster recovery and I promote the disaster recovery array as the primary storage, I can see correctly the LUNs from ESX but it wants to format the LUNs....&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Do you have any ideas about why VMware tries to reformat the replicated LUNs?&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks in advance. &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Jacques Neves &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;</description>
      <pubDate>Tue, 26 Aug 2008 14:34:42 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-7360</guid>
      <dc:date>2008-08-26T14:34:42Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Vista Security Concerns</title>
      <link>http://communities.vmware.com/docs/DOC-6870</link>
      <description>Host:		ESX 3.5 - 64607&lt;br /&gt;
Guest OS:	Windows 2003 Server – Standard Edition&lt;br /&gt;
&lt;br /&gt;
Greetings,&lt;br /&gt;
&lt;br /&gt;
We have a software vendor that has added a feature to their latest software release that stops the application if it detects that it is running on a virtual machine.  Our software vendor tells us that they needed to disable this ability because of Vista security concerns.  It seems that they have had difficulty with Vista running as a guest OS and disabled the application across the board due to this problem.  Instead of identifying the guest OS and disabling if it finds Vista, they go strait to the platform and disable the application if they detect that it resides on a guest OS.&lt;br /&gt;
&lt;br /&gt;
Perhaps I misunderstand virtualization, but are the guest VMs not autonomous?  What security issues could they be talking about with Virtualized Vista?  BTW, we have no plans to migrate to Vista.&lt;br /&gt;
&lt;br /&gt;
Has anyone else run into applications that actively thwart hosted operating systems?  Suggestions?&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Curt&lt;/li&gt;
&lt;/ul&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vista</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <pubDate>Thu, 07 Aug 2008 15:14:56 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-6870</guid>
      <dc:date>2008-08-07T15:14:56Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Recovering the Virtual Machines</title>
      <link>http://communities.vmware.com/docs/DOC-6841</link>
      <description>&lt;br /&gt;
Hi&lt;br /&gt;
&lt;p /&gt;
I had 2 logical drive in my single esx 3.5 host. I have stored all the vm in the second logical drive. The first one contained ESX 3.5 OS. However my primary drive which contained the OS crashed and I had to replace that. I have installed fresh ESX 3.5 in the new drive now. The second logical drive where all the data about the VM stored is untouched. Can I get back all my previous VM's now?? Also how to see the data which is stored in the datastore.&lt;br /&gt;
&lt;p /&gt;
 Cheers.</description>
      <pubDate>Wed, 06 Aug 2008 20:01:07 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-6841</guid>
      <dc:date>2008-08-06T20:01:07Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Problem with network connectivity within virtual machines</title>
      <link>http://communities.vmware.com/docs/DOC-6063</link>
      <description>Hello.. I have just installed ESX server and also installed Virtual Center in a vm, a linux virtual machine, and imported a windows 2003 system using converter.  The virtual center machine can browse the web, ping, and ftp out to the internet.  The other 2 boxes cannot ftp or browse web pages on the internet, but they can ping by name.  THe network configuration is the same! No firewall setup, same router and dns servers.  Does anyone have any idea what this may be? I am baffled.</description>
      <pubDate>Tue, 24 Jun 2008 19:01:55 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-6063</guid>
      <dc:date>2008-06-24T19:01:55Z</dc:date>
      <clearspace:dateToText>1 year, 5 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Path failover on HP blade with Emulex HBAs</title>
      <link>http://communities.vmware.com/docs/DOC-5860</link>
      <description>I'm having SAN reliability issues running ESX 3.5.0.1 on all my HP bl480c blade servers, each have two Emulex LPe1105 HBAs. The HBAs are hardwired to an HP Virtual Connect module, which is plugged in my SAN on a Silkworm. The luns are mapped from an EVA8000 which has active/active controllers. All firmware and software revisions are recent. &lt;br /&gt;
&lt;br /&gt;
To make a long story short, I tested failover scenarios by unplugging the HBAs, one at a time, using the Virtual Connect. The link does go down but path failover fails to work as expected: it switches once, but the failed HBA becomes unusable, even after it's been reconnected for a while. Doing rescans won't help... although there is a link up, the luns cannot be rediscovered. Only resetting the card using HBAnyware, or rebooting the ESX server, makes it functional again. If I do similar tests on the exact same hardware, but with Win2003, it works well. So I'm thinking this might be an issue with the lpfc driver.&lt;br /&gt;
&lt;br /&gt;
Does anybody have a similar setup and have tested this? I would be glad to hear from you.&lt;br /&gt;
&lt;br /&gt;
I did open a call on this, but it's been lagging so that's why I'm poking around to see if I'm alone in this boat.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
Welcome ot the forum - Have you changed the failover policy for each LUN from the default MRU (Most Rectly Used) to Fixed? Also, when they are reconnected can you manually switch paths?&lt;br /&gt;
&lt;p /&gt;
Check out &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf"&gt;http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf&lt;/a&gt; for more information -&lt;hr /&gt;
Path policy is set to Fixed. And esxcfg-mpath doesn't consider the paths as OK when I plug back the HBA so I cannot switch back. Running esxcfg-rescan once the HBA is plugged back in does not make them come back either, as a matter of fact it &lt;b&gt;removes&lt;/b&gt; them, as if they were no longer visible at all.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;hr /&gt;
Use emulex firmware version 2.70A5 &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;RHCE, VCP&lt;br /&gt;
Blog: &lt;a class="jive-link-external" href="http://computing.dwighthubbard.info"&gt;http://computing.dwighthubbard.info&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;
I said to myself "You've got to be kidding".... but I gave it a try with firmware 2.70a5 and it now works. I think it's the first time I actually have to downgrade a shipping firmware. &lt;br /&gt;
&lt;br /&gt;
Kudos to Dwight. You made my day.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;hr /&gt;
That was exactly my reaction when VMware support told us that would fix the issue.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RHCE, VCP&lt;br /&gt;
Blog: &lt;a class="jive-link-external" href="http://computing.dwighthubbard.info"&gt;http://computing.dwighthubbard.info&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread:&amp;nbsp;&lt;a href="http://communities.vmware.com/thread/149151" class="jive-link-thread"&gt;Path failover on HP blade with Emulex HBAs&lt;/a&gt;</description>
      <pubDate>Thu, 12 Jun 2008 19:29:36 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-5860</guid>
      <dc:date>2008-06-12T19:29:36Z</dc:date>
      <clearspace:dateToText>1 year, 5 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>How to upgrade Qlogic HBA FW and BIOS on ESX 3.5</title>
      <link>http://communities.vmware.com/docs/DOC-5580</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=2411">qlogic</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">firmware</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">bios</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx3.5</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">hba</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">san</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <pubDate>Thu, 29 May 2008 13:35:49 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-5580</guid>
      <dc:date>2008-05-29T13:35:49Z</dc:date>
      <clearspace:dateToText>1 year, 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Fixing ESX boot loader problem</title>
      <link>http://communities.vmware.com/docs/DOC-5480</link>
      <description>&lt;h2&gt;Fixing ESX boot loader problem&lt;/h2&gt;
&lt;br /&gt;
After a ghost clone to another disk, my ESX host in the lab came up with the much appreciated "GRUB" message at the boot loader prompt. Without an option to do anything. Turns out the GRUB MBR record is damaged, you cannot rerun the upgrade ISO CD image for this as it will not refresh that bit unless you re-install instead of upgrade.&lt;br /&gt;
&lt;br /&gt;
So i found myself a Red Hat 9 install CD and performed the following:&lt;br /&gt;
&lt;br /&gt;
Boot into rescue mode&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;linux rescue
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Click defaults until the final screen where it tells you that it will not mount the drive as it didn't find any linux, but you are given the prompt that you need, click "Continue" and here you go a linux prompt.&lt;br /&gt;
&lt;br /&gt;
Now suppose your boot disk is /dev/hda and the boot partition is /dev/hda1 and the root partition is /dev/hda2 (You can check this with fdisk -l for yourself.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;mkdir /mnt/sysimage
mount /dev/hda2 /mnt/sysimage
chroot /mnt/sysimage
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Ok, so now we are back in our system, but we still don't have access to our boot partition and the grub installer will need that.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;mount /dev/hda1 /boot
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Check that our boot folder isn't empty anymore&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;ls -lh
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Now if everything went well you can put back the MBR record by issuing the following command.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;grub-install /dev/hda
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
If it doesn't complain then you can now reboot the host and boot again from your normale storage.&lt;br /&gt;
&lt;br /&gt;
PS: It stores info in /boot/device.map, check with cat if it is correct if you have issues.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">boot</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">grub</category>
      <pubDate>Tue, 27 May 2008 09:52:15 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-5480</guid>
      <dc:date>2008-05-27T09:52:15Z</dc:date>
      <clearspace:dateToText>1 year, 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Must OS of Windows Cluster reside on ESX local disk?</title>
      <link>http://communities.vmware.com/docs/DOC-5110</link>
      <description>I was recently told by an integrator that if I build a Windows 2003 R2 Cluster across physical ESX hosts, I must store the Windows OS vmdk files on ESX local disk and not on the SAN.&lt;br /&gt;
&lt;br /&gt;
Has anyone ever heard/read of this configuration?&lt;br /&gt;
&lt;br /&gt;
Has anyone ever implemented a Windows Cluster in this manner across physical ESX hosts? &lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;hr /&gt;
With Update 1 VM booting form SAN is now supported - &lt;a class="jive-link-external" href="http://www.vmware.com/support/vi3/doc/vi3_esx35u1_vc25u1_rel_notes.html"&gt;http://www.vmware.com/support/vi3/doc/vi3_esx35u1_vc25u1_rel_notes.html&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;
Hi weinstein5,&lt;br /&gt;
I was not referring to the ESX OS. I was referring to the Windows Guest OS. Sorry if I did not explain the situation clearly enough.&lt;br /&gt;
&lt;br /&gt;
So, with that in mind.. any thoughts?&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;hr /&gt;
I have also heard this before but its not really relevent, if you read the following guide all is explained... &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35/esx_3/vi3_35_25_u1_mscs.pdf"&gt;http://www.vmware.com/pdf/vi3_35/esx_3/vi3_35_25_u1_mscs.pdf&lt;/a&gt;.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
Prior to ESX 3.5 Update 1m VNware only supported Microsoft Clusters in that configuration - where the VMs booted from systems disks stored on local VMFS volumes - with ESX 3.5 Update 1 VMware now supports the VMs booting from SAN LINs - &lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Support for Microsoft Cluster Service (MSCS)&lt;/h3&gt;
&lt;br /&gt;
VMware ESX Server 3.5 Update 1 supports Microsoft Cluster Service. Support is similar to ESX Server 3.0.1 with the following additions:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Both 64 bit and 32 bit Windows 2003 guests are supported with MSCS.&lt;/li&gt;
&lt;li&gt;Boot from SAN for VMs using MSCS is now supported.&lt;/li&gt;
&lt;li&gt;Majority Node Set clusters with application-level replication (for example, Exchange 2007 Cluster Continuous Replication (CCR) is now supported.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
Hi alanrenouf,&lt;br /&gt;
&lt;p /&gt;
I read that document some weeks ago, it didn't answer my specific question. We've been running a windows cluster for file and another windows cluster for exchange 2003 on ESX 2.5 for over three years with all guest OS vmdk files up on the san. Never had a problem.&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Hi weinstein5,&lt;br /&gt;
That's very strange. We've been running a windows cluster for file and another windows cluster for exchange 2003 on ESX 2.5 for over three years with all guest OS vmdk files up on the san. Never had a problem.&lt;br /&gt;
&lt;br /&gt;
If putting the guest OS vmdk files on the SAN for windows clusters was not supported in previous versions of ESX, did that really stop/deter most companies from running windows clusters that way?&lt;br /&gt;
&lt;hr /&gt;
key word in my explanation is 'supported' by VMware  - does not mean it will not work - and no I do not think that stiooed people form doing it -&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
I agree, its always been a support issue until Update 1&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
The problem appears to be related to disk timeouts.  While it worked previously about 98.5% of the time, there is a scenario in which the node boot disk is located on a SAN, along with the quorum/data shared disks.  In that scenario, the boot disk connection is "lost" from the SAN, triggering a cluster failover to the passive node, but the connection returns to the boot disk, in which the master tries to read/write to disks it "knows" to be mastered on it.  This is now a split-brain scenario which can cause many an issue, as some will know if they've encountered it in the physical world.  This why Update 1 includes timeouts related to MSCS that "fixes" this scenario, so the limitation for disks to be local is now gone.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Hope that makes it clear,&lt;br /&gt;
&lt;p /&gt;
-KjB&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
This document was generated from the following thread:&amp;nbsp;&lt;a href="http://communities.vmware.com/thread/144904" class="jive-link-thread"&gt;Must OS of Windows Cluster reside on ESX local disk?&lt;/a&gt;</description>
      <pubDate>Sat, 10 May 2008 04:14:24 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-5110</guid>
      <dc:date>2008-05-10T04:14:24Z</dc:date>
      <clearspace:dateToText>1 year, 6 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Can I combine two etherchannel "pipes" onto one vswitch?</title>
      <link>http://communities.vmware.com/docs/DOC-5000</link>
      <description>I am planning to have two dual port Intel PCI NICs in an ESX Server. The server only has 4 PCI slots, and the other two slots will be used by single port HBA adapters for HA reasons.&lt;br /&gt;
&lt;br /&gt;
Initially I was just going to have port1 from NIC1 plugged into physical switch1,  port2 from NIC2 plugged into physical switch2 and have both ports on the one vswitch with IP HASH based load balancing. Easy and simple with HA in place on the physical side of the network. I would just use External Switch Tagging (EST) so no special config required on ESX.&lt;br /&gt;
&lt;br /&gt;
However someone mentioned why not use etherchannel for a bigger "pipe".&lt;br /&gt;
&lt;br /&gt;
My question has two parts:&lt;br /&gt;
&lt;br /&gt;
1. If I have port1 from NIC1 plus port1 from NIC2 both plugged into physical switch1 and etherchannel them together, and then I have port2 from NIC1 plus port2 from NIC2 both plugged into physical switch2 and etherchannel them together, can I put all this (effectively just two big "pipes") on the one vswitch?&lt;br /&gt;
2. Can I then use several VLANS on these ethernal channel "pipes"?&lt;br /&gt;
&lt;br /&gt;
I've never used etherchannel before.&lt;br /&gt;
&lt;br /&gt;
Has anyone actually done this in practice, or know of some official doco that explains how this is both possible and supported with VMware ESX Server?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;hr /&gt;
There is some really good information about this topic in this discussion:  &lt;a class="jive-link-external" href="https://email.vmware.com/owa/redir.aspx?C=8cc59e12e56d4ef4a8ef947a596fb886&amp;#38;URL=http%3a%2f%2fcommunities.vmware.com%2fmessage%2f902563%23902563"&gt;http://communities.vmware.com/message/902563#902563&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;
Yes you can - you would create a Nic Team on a virtual switch - check out the networking section of &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf"&gt;http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;
The link &lt;a class="jive-link-external" href="http://communities.vmware.com/message/902563#902563"&gt;http://communities.vmware.com/message/902563#902563&lt;/a&gt; simply takes me to a VMware Outlook Web Access page (and my logon for this forum does not work on that page).&lt;br /&gt;
&lt;br /&gt;
Are you able to provide a different link to the same info?&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;hr /&gt;
Yes I have read (and again just now re-read) the Advanced Networking chapter of vi3_35_25_3_server_config.pdf. I understand it is really only outlining the basics of what can be done.&lt;br /&gt;
&lt;br /&gt;
However it seems to imply you can only create one team on a vswitch or port group. I understand that scenario, but the scenario I'm asking about has two separate teams on the one vswitch or port group. By that I mean, I only want each VM to have one NIC. If I didn't explain the scenario feel free to ask me to elaborate.&lt;br /&gt;
&lt;br /&gt;
I still don't know if this is possible. It would be great to hear from someone who has done this in the past, if indeed anyone has.&lt;br /&gt;
&lt;br /&gt;
Also, that doc makes no mention, at least not that I could see, if you could etherchannel NICs together and then VLAN ontop of that. It was suggested to me that if you etherchannel NICs together then you can only use them on one VLAN due to the logic on the physical switch side needed to maintain the etherchannel on those ports.&lt;br /&gt;
&lt;br /&gt;
Looking forward to replies from anyone that knows networking inside out.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
I've copied it here for you to read::8}&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I would like to clear up some misconceptions surrounding link aggregation and ESX. One of my colleagues, Dan Whitman, wrote up this very nice summary of our stance regarding link aggregation. Hooray for Dan! Seriously, thanks Dan for the clear and concise summary.&lt;br /&gt;
&lt;p /&gt;
Unfortunately, we don't document this very well but we do in fact support 802.3ad in specific configurations. We have to be careful when we refer to LACP generically because there are two modes which can be employed: Static and Dynamic and both are in the 802.3ad IEEE standard. While the whole premise of the LACP standard is to enable dynamic "routing" of Layer 2 traffic, there is a facility built into the standard to allow the forcing of static paths. Interestingly enough, the little documentation we have says that while we support 802.3ad, we do not support LACP. The appropriate statement should be that ESX doesn't support the dynamic aspect of the standard but does support static mode in the 802.3ad specification. &lt;br /&gt;
&lt;p /&gt;
I have worked through this conundrum with several customers and the configuration below has been proven to work in single switch and multi-switch environments. Note that while spanning-tree is not needed simply because there is no way to link vSwitches together (without doing extreme networking in the VMs), enabling spanning-tree is the only way I've been able to find that allows the enablement of portfast which trims off 30secs of downtime during port failovers.&lt;br /&gt;
&lt;p /&gt;
At the end of the day, ESX 3.x does support 802.3ad and LACP in STATIC configurations. Below are the configurations of both the Cisco switch (6500 in this case) and peer vSwitch in ESX to support Link Aggregation Control Protocol (802.3ad) and port trunking/grouping (Cisco Fast EtherChannel - FEC).&lt;br /&gt;
&lt;p /&gt;
&lt;b&gt;&lt;u&gt;Supporting links&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/files/pdf/virtual_networking_concepts.pdf"&gt;http://www.vmware.com/files/pdf/virtual_networking_concepts.pdf&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;b&gt;&lt;u&gt;Cisco switch example commands to group 2 physical ports in 1 trunk group&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;p /&gt;
!&lt;br /&gt;
&lt;p /&gt;
interface Port-channel10&lt;br /&gt;
&lt;p /&gt;
description ESX Server 1&lt;br /&gt;
&lt;p /&gt;
switchport&lt;br /&gt;
&lt;p /&gt;
switchport trunk encapsulation dot1q&lt;br /&gt;
&lt;p /&gt;
switchport mode trunk&lt;br /&gt;
&lt;p /&gt;
spanning-tree portfast trunk&lt;br /&gt;
&lt;p /&gt;
!&lt;br /&gt;
&lt;p /&gt;
interface GigabitEthernet3/1&lt;br /&gt;
&lt;p /&gt;
description ESX Server 1 NIC vmnic0&lt;br /&gt;
&lt;p /&gt;
speed 1000&lt;br /&gt;
&lt;p /&gt;
duplex full&lt;br /&gt;
&lt;p /&gt;
switchport&lt;br /&gt;
&lt;p /&gt;
switchport mode trunk&lt;br /&gt;
&lt;p /&gt;
spanning-tree portfast trunk&lt;br /&gt;
&lt;p /&gt;
channel-group 10 mode on&lt;br /&gt;
&lt;p /&gt;
!&lt;br /&gt;
&lt;p /&gt;
interface GigabitEthernet3/2&lt;br /&gt;
&lt;p /&gt;
description ESX Server 1 NIC vmnic1&lt;br /&gt;
&lt;p /&gt;
speed 1000&lt;br /&gt;
&lt;p /&gt;
duplex full&lt;br /&gt;
&lt;p /&gt;
switchport&lt;br /&gt;
&lt;p /&gt;
switchport mode trunk&lt;br /&gt;
&lt;p /&gt;
spanning-tree portfast trunk&lt;br /&gt;
&lt;p /&gt;
channel-group 10 mode on&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;vSwitch example screenshot showing the necessary configuration to accommodate the Cisco port configuration above&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
dan whitman - system engineer - air force team - vmware&lt;hr /&gt;
Hi cpqarray,&lt;br /&gt;
&lt;p /&gt;
Thanks for the explanation about the static and dynamic aspects of 802.3ad (etherchannel). I was not aware of that before.&lt;br /&gt;
&lt;p /&gt;
I have downloaded and read the virtual_networking_concepts.pdf document, along with the info you provided, and although it is good to know about the simple scenario of just one etherchannel team going to a single port group on a vswitch, which seems to be the only example in any doco I have read or any tech I've conversed with, it still doesn't answer my initial question, which is:&lt;br /&gt;
&lt;p /&gt;
Can I put two separate etherchannel teams (the reason for two etherchannel teams is team1 goes to physical switch1 and team two goes to physical switch1 - only because I need physical HA and I read some VMware doco that says you should not etherchannel across different physical switches, or maybe it said it's just not possible) onto the one port group on a vswitch inside ESX Server?&lt;br /&gt;
&lt;p /&gt;
Looking forward to your reply.&lt;br /&gt;
&lt;p /&gt;
PS. The virtual_networking_concepts.pdf doco didn't make it clear whether or not I can still use multiple VLANs across an etherchannel team - do you know if I can?&lt;br /&gt;
&lt;hr /&gt;
This thread should not be in the VCP community. Moving to appropriate product community.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---&lt;br /&gt;
&lt;b&gt;Badsah Mukherji&lt;/b&gt;&lt;br /&gt;
Senior Community Manager, VMware Communities&lt;br /&gt;
&lt;hr /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
You can not place two NIC teams which are on separate trunks on the same vswitch portgroup they will need to be all on the same trunk/team or all separate 802.1q vlan ports on the same team.&lt;br /&gt;
&lt;br /&gt;
Yes you can have multiple VLAN's on the FEC trunk but I would suggest you change the native vlan to something other than 1 if you have not already.&lt;br /&gt;
&lt;p /&gt;
Just to clarify 802.3ad Link Aggregation is not the same as FEC (cisco Fast Ether Channel)&lt;br /&gt;
&lt;p /&gt;
802.3ad is an IEEE protocol standard and FEC is a cisco proprietary protocol. Cisco can do both of them. &lt;br /&gt;
&lt;p /&gt;
Do you really need the trunk?&lt;br /&gt;
&lt;p /&gt;
If none of your VM's have more than a single 1G vNIC per portgroup then it is not required and is more complex.&lt;br /&gt;
&lt;p /&gt;
You can cross separate physical switches with a trunk the above example will work&lt;br /&gt;
&lt;p /&gt;
This is a great helpfull ppt&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://www.vmware-tsx.com/download.php?asset_id=41"&gt;http://www.vmware-tsx.com/download.php?asset_id=41&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Message was edited by: mike.laspina - word omitted - portgroup and added one more answer and link.&lt;br /&gt;
&lt;hr /&gt;
Hi Mike,&lt;br /&gt;
Thanks for clarifying that. So it appears it's a no go. The main idea for the 802.3ad Link Aggregation was simply to give the VMs (which only have one vNIC each) more bandwidth. However I'm also required to provide multiple paths across different physical switches - so it does appear I cannot do both. Darn. Looks like it will have to be just one port per physical switch, in which case I may as well stick with the default port based load balancing.&lt;br /&gt;
&lt;br /&gt;
You mentioned I can trunk across different physical switches - so for that I would plan to use one port per physical switch (different ports than those used for the VM network) and I would have 3 VLANS on this vswitch (vmkernel vmotion, service console and heartbeat for our Microsoft Clusters). We only plan to use FC SAN (no iSCSI or NFS) so no need for two separate vmkernel networks (vmotion network separate from iSCSI network).&lt;br /&gt;
&lt;br /&gt;
So can you confirm ESX 3.5 does not support etherchannel, but it does support 802.3ad Link Aggregation?&lt;br /&gt;
&lt;br /&gt;
Also, are you aware of anyone who has used two physical switches for the VM network, and yet has also teamed NICs together for a larger pipe? If not, does that mean that every instance of NICs teamed for a single large pipe has always been with just one physical switch, meaning they have a central point of failure? That doesn't strike me as best practice, unless I'm missing part of the picture somewhere...&lt;br /&gt;
&lt;br /&gt;
Looking forward to your reply.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;hr /&gt;
You can achieve what you are looking for by using 802.1q port trunking and NIC teaming and you will have the 2G bandwidth over the team. &lt;br /&gt;
2 Adapters for VM traffic teamed across the two physical switches &lt;br /&gt;
&lt;br /&gt;
2 Adapters for SC VMotion teamed across the two physical switches&lt;br /&gt;
&lt;br /&gt;
It is possible to do this with 802.3ad but it's a complexity that would just give you difficult trouble shooting and you don't really need it. &lt;br /&gt;
&lt;br /&gt;
I have this type of config on HP Procurve, just more of and at a larger scale and I have some 802.3ad static trunk configurations working as well.&lt;br /&gt;
&lt;br /&gt;
I have 802.3ad trunks across the switches so there are no single points of failure.&lt;br /&gt;
&lt;br /&gt;
ESX 3.5 works on static FEC and 802.3ad configurations it does support(use) LACP and PAgP dynamic protocols on the teamed NICs.&lt;br /&gt;
&lt;hr /&gt;
Hi Mike,&lt;br /&gt;
Please forgive my ignorance, but I thought if I use only 802.1q port trunking and NIC teaming (without any link aggregation or fast etherchannel) then I will not have a single 2G bandwidth over the team, but rather I'll have two separate 1G bandwidths, ie the most bandwidth any one machine could ever use at any point in time is just 1G - or is that not correct?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;hr /&gt;
&lt;div class="jive-quote"&gt;&lt;span class="jive-quote-header"&gt;ServerAdmins wrote:&lt;/span&gt;&lt;br /&gt;
Hi Mike,&lt;br /&gt;
Please forgive my ignorance, but I thought if I use only 802.1q port trunking and NIC teaming (without any link aggregation or fast etherchannel) then I will not have a single 2G bandwidth over the team, but rather I'll have two separate 1G bandwidths, ie the most bandwidth any one machine could ever use at any point in time is just 1G - or is that not correct?&lt;br /&gt;
&lt;p /&gt;
Thanks in advance.&lt;/div&gt;
&lt;br /&gt;
You are correct. The only way to possibly get more than one pNIC's worth of bandwidth out of a single VM is to use IP Hash as your load balancing mechanism and have your pSwitch configured for 803.3ad trunking. In that case, each IP conversation could - possibly - use a different pNIC. My question is do you &lt;u&gt;really&lt;/u&gt; have a VM that is &lt;u&gt;using&lt;/u&gt; one pNIC worth of network? I would be surprised if you do. Also, consider your pSwitch infrastructure - what is the connectivity between your pSwitches? What is the utilization on those links? I doubt their saturated. If your ISL is not pushing significantly more than one pNIC's bandwidth then you probably don't need to complicate your environment with link aggregation to your ESX hosts.&lt;br /&gt;
&lt;br /&gt;
Ken Cline&lt;br /&gt;
Technical Director, Virtualization&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.wellslanders.com"&gt;Wells Landers&lt;/a&gt;&lt;br /&gt;
VMware Communities User Moderator&lt;br /&gt;
&lt;hr /&gt;
With the port ID policy the load balancer with try to spread the VM across the available adapters and this will allow you to use the 2G sum over multiple VM's. A single VM will only get a maximum of 1G (More like 500MB in the real world).&lt;br /&gt;
&lt;hr /&gt;
Hi Mike,&lt;br /&gt;
Thanks for the explanations. I like to know my options so I can make an informed decision.&lt;br /&gt;
&lt;br /&gt;
One more question in this Load Balancing (LB) area:&lt;br /&gt;
&lt;br /&gt;
From what I understand when I have two NICs trunked together on the one vswitch, if I use port based LB then a VM will choose a NIC when it powers on, and will stay with that NIC till it powers off or is moved to another host. However, if I use IP based LB then each time a VM needs to talk to a machine external to the ESX host on which it lives, it could choose either of those two trunked NICs for that particular conversation, and only stay with that NIC for that conversation. In other words the VM has the capability to choose either NIC of those two trunked NICs each time it starts a new conversation. This sounds like much more even use of the two NICs.&lt;br /&gt;
&lt;br /&gt;
Is this correct? If not, can you please explain why?&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;hr /&gt;
Yes that is correct, portID policy will always use the same physical path unless a failover event occurs. The use of MAC and IP hash are not recommended unless you configure 802.3ad static based trunking on the physical switches. Keep in mind that hashing will have additional CPU load on the ESX server, but it is usually not an issue. As well hashing allows you to control outgoing traffic but not incoming. 802.3ad over to separate switches will be more complex and is possible as I have indicated earlier. You would need to carefully configure the policies to control portgroups in a manner that does not allow it to split across the physical switches. I have done this and it works. Issues on a portgroup will occur during a failed state if you do not prevent the path split. If one switch goes bad due to reasons other that complete failure is when you have the big issues.&lt;br /&gt;
&lt;br /&gt;
NB. Awarding points is like saying thanks.&lt;br /&gt;
&lt;p /&gt;
Here is some good info on it.&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/files/pdf/virtual_networking_concepts.pdf"&gt;http://www.vmware.com/files/pdf/virtual_networking_concepts.pdf&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;
&lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;  Thanks for the note about awarding points. Correct answer and 10 points definitely going your way for your help on this thread.&lt;br /&gt;
&lt;br /&gt;
Where can I find out what the little icons/symbols mean that are displayed next to most of the names of people that post on this forum? I noticed I have a flag and you have a crown &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; How many icons are there?&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread:&amp;nbsp;&lt;a href="http://communities.vmware.com/thread/143555" class="jive-link-thread"&gt;Can I combine two etherchannel "pipes" onto one vswitch?&lt;/a&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">etherchannel</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">link_aggregation</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">load_balancing</category>
      <pubDate>Sun, 04 May 2008 14:25:59 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-5000</guid>
      <dc:date>2008-05-04T14:25:59Z</dc:date>
      <clearspace:dateToText>1 year, 6 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>ESX-server with EMC mirrorview</title>
      <link>http://communities.vmware.com/docs/DOC-4730</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I have a special configuration issue!&lt;br /&gt;
My intention is to mirror LUN's, stored on EMC Clariion with Mirror view to a backup Clariion system.&lt;br /&gt;
The LUNS are containing all data and configuration files from virtual machines  running on ESX-3.5 server.&lt;br /&gt;
&lt;br /&gt;
If the ESX server or the storage should fail, the Idea is to assign the mirrored LUNs to a backup ESX server&lt;br /&gt;
and activating the LUN'S on this server. The pure assingment of Luns is not the problem,&lt;br /&gt;
But I have no Idea how to activate (import) the virtual machines on the backup server.&lt;br /&gt;
&lt;br /&gt;
Is this scenario realisable and how can I do this&lt;br /&gt;
&lt;br /&gt;
in advance many thanks for every constructive answer&lt;br /&gt;
&lt;br /&gt;
Lucksch</description>
      <pubDate>Wed, 23 Apr 2008 12:35:53 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-4730</guid>
      <dc:date>2008-04-23T12:35:53Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>ESX hung after SCSI Reservation Conflicts</title>
      <link>http://communities.vmware.com/docs/DOC-4520</link>
      <description>&lt;br /&gt;
Hi, My ESX Server got hung after too many SCSI conflict errors. I am not even able to take putty seesion at that time. Reboot solved the problem but logs not even genearted for that specific time before reboot. Is it possible that ESX got hung due to many SCSI conflict errors ?</description>
      <pubDate>Mon, 14 Apr 2008 20:34:17 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-4520</guid>
      <dc:date>2008-04-14T20:34:17Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Teaming NICs in ESX - how to choose a switch?</title>
      <link>http://communities.vmware.com/docs/DOC-4130</link>
      <description>&lt;i&gt;By default, ESX server balances all outgoing traffic based on IP address pair through multiple NIC ports configured in a single vSwitch. You don't need any switch support for this feature to work.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;You need the switch-level support however to let both the outgoing and incoming traffic to be balanced and thus receive increased overall throughput.&lt;/i&gt; &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Read the &lt;a class="jive-link-external" href="http://kukacz.blogspot.com/2008/04/teaming-nics-in-esx-how-to-choose.html"&gt;full article&lt;/a&gt; at Kukacz Notes blog.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">networking</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">performance</category>
      <pubDate>Tue, 01 Apr 2008 21:50:50 GMT</pubDate>
      <author>lkubin@coma.cz</author>
      <guid>http://communities.vmware.com/docs/DOC-4130</guid>
      <dc:date>2008-04-01T21:50:50Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>how to re-construct disk descriptor file?</title>
      <link>http://communities.vmware.com/docs/DOC-4040</link>
      <description>as you know, every vmdk consists of 2 files, one is xxxx.vmdk, the other is xxxxx-flat.vmdk.&lt;br /&gt;
&lt;br /&gt;
the former is disk descriptor file, the later is the disk include the real data.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
if for some reason, user delete the  descriptor file, how to restore it from the xxxxx-flat.vmdk?&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Just use the VI client to reattach the file back to the VM.&lt;br /&gt;
&lt;hr /&gt;
You can restore it from the log and you can restore it by "calculating" its contents.&lt;br /&gt;
&lt;hr /&gt;
your method does not work, if there's only flat file without the descriptor file, when vi client browse the directory, it will display no vmdk files.&lt;br /&gt;
&lt;hr /&gt;
agree with you, can you provide the detail approch how to do this.&lt;br /&gt;
&lt;br /&gt;
i read the ppt from TSX 2007, "top support issues and how to solve them, part 2", it says use "grep -i rw xxxx.vmdk" to get the size, but when i use it, nothing useful displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Oh right I see what you mean. The following steps will guide you to recreate your vmdk's: &lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Determine the hard disk sizes of your original VM  - this information should be in the logs files mentioned by previous poster.&lt;/li&gt;
&lt;li&gt;Create a new VM with the same number of hard disks as your old VM, and the exact same sizes  using the log info.&lt;/li&gt;
&lt;li&gt;Once created, use Putty or some tool to navigate to the directory of new VM.&lt;/li&gt;
&lt;li&gt;Copy the newly created vmdk files to your existing directory&lt;/li&gt;
&lt;li&gt;Edit the new VMDK's with the existing flat.vmdk file names.&lt;/li&gt;
&lt;li&gt;Load the VM in your VirtualCenter. You should now be able to add the flat.vmdk to your VM&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;hr /&gt;
Thanks for the post. Apologies for not reading your original post more closely.&lt;br /&gt;
&lt;hr /&gt;
thank you and your method is very easy to understand and implement. i successfully do a test, let me add some notes to your steps.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;1. Determine the hard disk sizes of your original VM - this information should be in the logs files mentioned by previous poster.&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
just use ls -l to determine the disk size, in my example, i have 2 disks, one is 6457893888 bytes, the other is 5368709120&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;i&gt;2. Create a new VM with the same number of hard disks as your old VM, and the exact same sizes using the log info.&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
when you create a new VM, the key is disk size and guest os type. the guest os type you can get it from vmware.log, or you can ask the user who use it.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
for disk capacity, just use the size get from step 1, and divide it with 1024*1024*1024, for  6457893888, the result is:6158.7275390625&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
for  5368709120, the result is just 5. notice the unit is MB, so type the exact value in the input box.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;i&gt;3. Once created, use Putty or some tool to navigate to the directory of new VM.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;4. Copy the newly created vmdk files to your existing directory&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
this should be: copy the vmdk flat files in your existing directory to the newly created VM dir&lt;br /&gt;
&lt;i&gt;5. Edit the new VMDK's with the existing flat.vmdk file names.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;6. Load the VM in your VirtualCenter. You should now be able to add the flat.vmdk to your VM&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
just power on the VM in virtualcenter&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/135776"&gt;how to re-construct disk descriptor file?&lt;/a&gt;</description>
      <pubDate>Sat, 29 Mar 2008 14:48:49 GMT</pubDate>
      <author>xiaoyu@bestinfo.com.cn</author>
      <guid>http://communities.vmware.com/docs/DOC-4040</guid>
      <dc:date>2008-03-29T14:48:49Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Working Backup Solution via ESX 3.0.1 with HP MSL2024 Tape Library</title>
      <link>http://communities.vmware.com/docs/DOC-3951</link>
      <description>I have a slight problem where I've been assigned to look into creating a virtual backup media server (to run with W2K3 Standard Edition and Symantec Backup Exec) to connect to a directly attached HP StorageWorks MSL2024 Tape Library (1 x Ultrium 960 tape drive) - the physical ESX 3.0.1. host will be running on an HP ProLiant DL380 G5 server with the SCSI HBA being an HP Single Chanel Ultra320 (PCI Express).&lt;br /&gt;
&lt;br /&gt;
Unfortunately until I get onsite to look at it (at least another two weeks) I'm stuck with no hardware to play with the same configuration and I was just wanting to see if anyone else has managed to get this working successfully AND if so what steps were made to get it working.&lt;br /&gt;
&lt;br /&gt;
Any info you can provide would be greatly appreciated and accepted as I'm not a full fledged VMware ESX administrator plus there is several posts that show varying results for other vendors tape drives/libraries.&lt;br /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
I would NOT connect the tape library to your ESX server. I would use a remote physical box to perform backups. The reasons are really two fold.&lt;br /&gt;
&lt;br /&gt;
1) If the passthru scsi device craters (which is is want to do) then &lt;br /&gt;
the ESX server SC goes with it.&lt;br /&gt;
&lt;br /&gt;
2) I do not like the overhead this puts on the ESX server.&lt;br /&gt;
&lt;br /&gt;
I have done it both ways and a remote server works best. I use a DELL PowerVault 128T and it is very similar to the MSL libraries (it is actually an HP library rebranded as DELL).&lt;br /&gt;
&lt;br /&gt;
Best regards,&lt;br /&gt;
Edward&lt;br /&gt;
&lt;hr /&gt;
I agree for our backups we send them to a seperate backup server which has the tape library attached to it. I don't like attaching the tape library directly to the ESX host mainly for the fact if you gave problems with the device and a server reboot is necessary you are now effecting all of your guests.&lt;br /&gt;
&lt;br /&gt;
Also for our guest backups we use esXpress.&lt;br /&gt;
&lt;hr /&gt;
This is what worked for us. You may need to get an Adaptec 29320LPE SCSI card&lt;br /&gt;
&lt;br /&gt;
The problem:&lt;br /&gt;
&lt;br /&gt;
The new breed of HP (and probably other makers) LTO Auto-changer tape libraries are now multi LUN on the SCSI bus &amp;ndash; that is both the tape driver and the media changer have the same SCSI ID with different LUNs.&lt;br /&gt;
&lt;br /&gt;
Our installation:&lt;br /&gt;
&lt;br /&gt;
HP Proliant DL380 G5 (only supports PCI Express)&lt;br /&gt;
HP 1/8 Ultrium 920 G2 Tape Autoloader &lt;br /&gt;
VI3 ESX 3.0.1 (under test, yet to test 3.0.2)&lt;br /&gt;
Virtual Centre 2.1&lt;br /&gt;
Veritas / Symantec Backup Exec 11&lt;br /&gt;
&lt;br /&gt;
The two basic configuration restrictions on ESX 3 are:&lt;br /&gt;
&lt;br /&gt;
1. There is no support for multi LUN SCSI devices on SCSI pass-through devices (tapes).&lt;br /&gt;
&lt;br /&gt;
2. Only Adaptec SCSI cards are supported for pass-through devices. (see VMware HCL)&lt;br /&gt;
&lt;br /&gt;
For a few days we thought that we &amp;lsquo;could not get there from here!&amp;rsquo;&lt;br /&gt;
&lt;br /&gt;
The first part of the solution came when we realised that ESX internally does recognise multi LUN SCSI devices when you install the appropriate Adaptec card. It creates two device files, one for each LUN on the SCSI adapter. &lt;br /&gt;
&lt;br /&gt;
When ESX maps SCSI devices to the guest virtual adapter it is maps to device files not physical adapter devices. That is ESX is quite happy to map the two device files (same ID different LUN) to two separated virtual SCSI IDs on the virtual adapter in the guest.&lt;br /&gt;
&lt;br /&gt;
The result is the guest gets to see both devices but now they have different SCSI IDs &amp;ndash; virtual that is.&lt;br /&gt;
&lt;br /&gt;
The second part came in the form of the latest version and patches of Backup Exec which has drivers for the new HP library devices.&lt;br /&gt;
&lt;br /&gt;
The solution:&lt;br /&gt;
&lt;br /&gt;
1. Purchase an Adaptec 29320LPE SCSI adapter &amp;ndash; supported on ESX and supports multi LUN devices.&lt;br /&gt;
&lt;br /&gt;
2. Install the adapter and media library, power on the tape library and boot the ESX server. Note it boots, finds the new hardware and re-boots.&lt;br /&gt;
&lt;br /&gt;
3. Verify that the both library devices have been found and the ESX SCSI devices created.&lt;br /&gt;
&lt;br /&gt;
On the ESX console logon as root.&lt;br /&gt;
&lt;br /&gt;
cat /proc/scsi/scsi&lt;br /&gt;
Attached devices:&lt;br /&gt;
Host: scsi0 Channel: 00 Id: 04 Lun: 00&lt;br /&gt;
Vendor: HP Model: Ultrium 3-SCSI Rev: D22W&lt;br /&gt;
Type: Sequential-Access ANSI SCSI revision: 03&lt;br /&gt;
Host: scsi0 Channel: 00 Id: 04 Lun: 01&lt;br /&gt;
Vendor: HP Model: 1x8 G2 AUTOLDR Rev: 1.30&lt;br /&gt;
Type: Medium Changer ANSI SCSI revision: 05&lt;br /&gt;
&lt;br /&gt;
Note the two SCSI devices &amp;ndash; &lt;br /&gt;
&lt;br /&gt;
ID = 4 LUN = 0 &amp;ndash; tape drive&lt;br /&gt;
ID = 4 LUN = 1 &amp;ndash; media changer&lt;br /&gt;
&lt;br /&gt;
ll /proc/vmware/scsi/vmhba1&lt;br /&gt;
total 0&lt;br /&gt;
-rw-r--r-- 1 root root 0 Sep 24 09:14 4:0&lt;br /&gt;
-rw-r--r-- 1 root root 0 Sep 24 09:14 4:1&lt;br /&gt;
-rw-r--r-- 1 root root 0 Sep 24 09:14 stats&lt;br /&gt;
&lt;br /&gt;
Note the two SCSI device files &amp;ndash; 4:0 and 4:1.&lt;br /&gt;
&lt;br /&gt;
On the HP library you can use the Web management interface to change the SCSI ID of the library but not the LUNs, the tape drive is always LUN 0 and the media changer LUN 1.&lt;br /&gt;
&lt;br /&gt;
4. In VI Client add the SCSI devices to the Guest VM. The VM should be shutdown at the time.&lt;br /&gt;
&lt;br /&gt;
Select the VM guest&lt;br /&gt;
Edit settings&lt;br /&gt;
Add&lt;br /&gt;
&lt;br /&gt;
SCSI Device&lt;br /&gt;
Set - Tape &amp;ndash; &amp;ldquo;HP &amp;ldquo; &amp;ndash; to device to SCSI(0:4)&lt;br /&gt;
Set - Media &amp;ndash; &amp;ldquo;HP &amp;ldquo; &amp;ndash; to device to SCSI(0:5)&lt;br /&gt;
&lt;br /&gt;
Note the lines added to the .VMX file for this guest &amp;ndash;&lt;br /&gt;
&lt;br /&gt;
scsi0:4.present = "true"&lt;br /&gt;
scsi0:4.deviceType = "scsi-passthru"&lt;br /&gt;
scsi0:4.fileName = "/vmfs/devices/generic/vml.0201000000500110a00090d7ed556c74726975"&lt;br /&gt;
scsi0:4.allowGuestConnectionControl = "false"&lt;br /&gt;
scsi0:5.present = "true"&lt;br /&gt;
scsi0:5.deviceType = "scsi-passthru"&lt;br /&gt;
scsi0:5.fileName = "/vmfs/devices/generic/vml.0208010000500110a00090d7ec317838204732"&lt;br /&gt;
scsi0:5.allowGuestConnectionControl = "false"&lt;br /&gt;
&lt;br /&gt;
5. Boot the VM and verify that Windows sees the new devices &amp;ndash; Device Manager should have both the Tape and the Media Changer.&lt;br /&gt;
&lt;br /&gt;
6. Install Backup Exec build 7170 plus Hot Fix 16 or later.&lt;br /&gt;
&lt;br /&gt;
7. Verify access to the tape and media library.&lt;br /&gt;
&lt;p /&gt;
Note &amp;ndash; &lt;br /&gt;
&lt;br /&gt;
If the tape library is powered off when ESX boots, attempts to power on the guest OS will fail with .VMX file errors on the virtual SCSI devices.&lt;br /&gt;
&lt;br /&gt;
A SCSI pass through tape and library can only be mounted to ONE VM guest OS.&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/94153"&gt;Working Backup Solution via ESX 3.0.1 with HP MSL2024 Tape Library&lt;/a&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:20:58 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-3951</guid>
      <dc:date>2008-03-27T10:20:58Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>HP tape library perf slow in ESX 3.x setup</title>
      <link>http://communities.vmware.com/docs/DOC-3950</link>
      <description>Hi ,&lt;br /&gt;
&lt;br /&gt;
I have two esx 3.0.1 servers setup with HP MSL 2024 tape library which is recently connected to one of esx servers.&lt;br /&gt;
&lt;p /&gt;
We firing the backup from VM through Veritas backup software. we are facing slow performance with backup.&lt;br /&gt;
&lt;p /&gt;
Pls guide me to troubleshoot the same.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
I have a few questions to start off.&lt;br /&gt;
&lt;br /&gt;
1 - Is the Tape Library connected via a non-RAID Adaptec controller?&lt;br /&gt;
&lt;p /&gt;
2 - Are there any other devices connected to the same controller as the Tape Library?&lt;br /&gt;
&lt;p /&gt;
3 - How many VMs are connected to this Tape Library?&lt;br /&gt;
&lt;p /&gt;
Also, run esxtop in batch mode to gather performance data when backups are running. While this is happening use Remote Performance Monitor to gather data from inside the VM running the backup software as well.&lt;br /&gt;
&lt;p /&gt;
Compare the data output from it and see if the data points to an obvious bottleneck. From there you can focus on that component for configuration.&lt;br /&gt;
&lt;p /&gt;
Faisal&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
Also, what disks are being used as backup source, and what is the tape standard of this library (LTO2?). If you cannot keep the buffer filled up in the tape unit, it will continuously rewind and resync, which will dramatically impact performance. &lt;br /&gt;
&lt;p /&gt;
I run a similar setup, with an LTO1 HP tape library (8slots). Two VMs, one carries Symantec Backup exec, the other is a Windows 2003 file server. I get about 900MB/min backup&amp;#38;verify speed if I run a full backup (differential backups run slower off course)&lt;br /&gt;
&lt;p /&gt;
Please post the CPU loads on all affected VMs, config of these VMs (opsys, assigned memory, number of vCPUs), how fast the backup actually runs ("slow performance": How slow is slow?), any bottlenecks (for example network). Config of your ESX hosts (memory, number of CPUs, numebr of NICs, NIC setup)&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
The tape library is SCSI attached to the ESX host and you are presenting the device through to the VM right?&lt;br /&gt;
&lt;br /&gt;
Don't try and trouble shoot it. Find another machine and run the backup of that. It is not recommended to run backup to a local device. There are some circumstance where its okay but as you have seen the load can be high and performance low. Likewise for running the backup server in the VM. Have a look through the &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_vm_backup.pdf"&gt;Virtual Machine Backup Guide&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Have you&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Checked you are running a supprted SCSI controller. VMware supports attaching SCSI drives to the ESX Server using Adaptec SCSI adapters. Using other adapters, such as LSI MPT‐Fusion SCSI, is not supported.&lt;/li&gt;
&lt;li&gt;If you are using a tape drive library (versus using a stand‐alone tape drive), the library must be multitarget, and not multi‐LUN.&lt;/li&gt;
&lt;li&gt;Set the tape drive&amp;rsquo;s virtual target ID in the virtual machine&amp;rsquo;s configuration to be the same as the physical target ID.&lt;/li&gt;
&lt;li&gt;Check the SCSI terminators on the tape drive, that can often cause them to go slow.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;span style="font-size:10px"&gt;&lt;span style="color:gray"&gt;Considering awarding points if this is of use&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/124795"&gt;HP tape library perf slow in ESX 3.x setup&lt;/a&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:19:04 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-3950</guid>
      <dc:date>2008-03-27T10:19:04Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>ESX 3.0.2 Patch loading for dummies</title>
      <link>http://communities.vmware.com/docs/DOC-3640</link>
      <description>This is the procedure we used to update all our 3.0.2 hosts, dont ask why we are not on 3.5 IBM LS20's dont support 3.5!!!&lt;br /&gt;
Uploaded all patches to SAN &lt;br /&gt;
&lt;br /&gt;
Go into VMware Infrastucture Client&lt;br /&gt;
Click on the down arrow next to Inventory and select "DataStores"&lt;br /&gt;
Right Click on SanStorage-VMFS00-Tempate and select Browse&lt;br /&gt;
Double Click 302-Patches&lt;br /&gt;
Click the Upload button and upload all required patches.&lt;br /&gt;
&lt;br /&gt;
Putty into any ESX Server and to the following (Example used as we updated servers)&lt;br /&gt;
&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches&lt;br /&gt;
&lt;br /&gt;
(Unzipped all patches)&lt;br /&gt;
tar -xvvzf ESX-1002424.tgz&lt;br /&gt;
tar -xvvzf ESX-1002434.tgz &lt;br /&gt;
tar -xvvzf ESX-1002974.tgz &lt;br /&gt;
tar -xvvzf ESX-1003364.tgz&lt;br /&gt;
tar -xvvzf ESX-1002425.tgz &lt;br /&gt;
tar -xvvzf ESX-1002435.tgz &lt;br /&gt;
tar -xvvzf ESX-1002975.tgz &lt;br /&gt;
tar -xvvzf ESX-1003365.tgz&lt;br /&gt;
tar -xvvzf ESX-1002426.tgz &lt;br /&gt;
tar -xvvzf ESX-1002965.tgz &lt;br /&gt;
tar -xvvzf ESX-1002976.tgz &lt;br /&gt;
tar -xvvzf ESX-1003366.tgz&lt;br /&gt;
tar -xvvzf ESX-1002427.tgz &lt;br /&gt;
tar -xvvzf ESX-1002966.tgz &lt;br /&gt;
tar -xvvzf ESX-1003175.tgz &lt;br /&gt;
tar -xvvzf ESX-1003374.tgz&lt;br /&gt;
tar -xvvzf ESX-1002428.tgz &lt;br /&gt;
tar -xvvzf ESX-1002967.tgz &lt;br /&gt;
tar -xvvzf ESX-1003179.tgz &lt;br /&gt;
tar -xvvzf ESX-1003513.tgz&lt;br /&gt;
tar -xvvzf ESX-1002429.tgz &lt;br /&gt;
tar -xvvzf ESX-1002969.tgz &lt;br /&gt;
tar -xvvzf ESX-1003359.tgz &lt;br /&gt;
tar -xvvzf ESX-1003514.tgz&lt;br /&gt;
tar -xvvzf ESX-1002430.tgz &lt;br /&gt;
tar -xvvzf ESX-1002970.tgz &lt;br /&gt;
tar -xvvzf ESX-1003360.tgz &lt;br /&gt;
tar -xvvzf ESX-1003515.tgz&lt;br /&gt;
tar -xvvzf ESX-1002431.tgz &lt;br /&gt;
tar -xvvzf ESX-1002971.tgz &lt;br /&gt;
tar -xvvzf ESX-1003362.tgz&lt;br /&gt;
&lt;br /&gt;
Done Preping the patches for installation&lt;br /&gt;
&lt;br /&gt;
(Applying patches)&lt;br /&gt;
No putty into the server you wish to patch&lt;br /&gt;
&lt;br /&gt;
First check what patches are loaded on the server&lt;br /&gt;
type&lt;br /&gt;
esxupdate query&lt;br /&gt;
&lt;br /&gt;
Now proceed to install patches&lt;br /&gt;
(Take note we are installing all patches in accession and not rebooting until the last patch has been loaded)&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002424&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002431&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002435&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002434&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002426&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002430&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002428&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003175&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002976&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002975&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002974&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002971&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002970&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002969&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002967&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002966&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002965&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1002427&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003374&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003179&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003366&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003365&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003364&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003362&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003360&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003359&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003515&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003514&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
cd /vmfs/volumes/SanStorage-VMFS00-Template/302-Patches/ESX-1003513&lt;br /&gt;
esxupdate --noreboot update&lt;br /&gt;
&lt;br /&gt;
Once completed verify all patch instalations&lt;br /&gt;
at root type&lt;br /&gt;
&lt;br /&gt;
esxupdate query&lt;br /&gt;
&lt;br /&gt;
--root@VMSX21 ESX-1003513--# esxupdate query&lt;br /&gt;
Installed software bundles:&lt;br /&gt;
&lt;hr /&gt;
Name&lt;br /&gt;
&lt;hr /&gt;
&lt;p /&gt;
&lt;ul&gt;

&lt;ul&gt;

&lt;ul&gt;
&lt;li&gt;Install Date --- --- Summary ---&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
3.0.2-61618 21:56:25 03/17/08 3.0.2 Update 1 of VMware ESX Server&lt;br /&gt;
ESX-1002424 22:06:38 03/17/08 VMotion RARP broadcast to multiple vmnic&lt;br /&gt;
ESX-1002431 22:07:45 03/17/08 Incorrect ports to LSI Loigic driver.&lt;br /&gt;
ESX-1002435 22:09:06 03/17/08 Update VI client to the same as VC202u1.&lt;br /&gt;
ESX-1002434 22:10:23 03/17/08 Update WebCenter to the one of VC202u1.&lt;br /&gt;
ESX-1002426 22:11:18 03/17/08 vdf -h produces incorrect results.&lt;br /&gt;
ESX-1002430 22:12:21 03/17/08 vmxnet is not loaded by default.&lt;br /&gt;
ESX-1002428 22:13:29 03/17/08 Qlogic firmware update.&lt;br /&gt;
ESX-1003175 22:14:24 03/17/08 Updated the ESX Update Utility&lt;br /&gt;
ESX-1002976 22:15:25 03/17/08 util-linux security update&lt;br /&gt;
ESX-1002975 22:16:33 03/17/08 Samba security update&lt;br /&gt;
ESX-1002974 22:17:37 03/17/08 I/O failures due to excessive reservatio&lt;br /&gt;
ESX-1002971 22:18:44 03/17/08 Perl security update (RHSA-2007:0966-01)&lt;br /&gt;
ESX-1002970 22:19:57 03/17/08 Patches remote root exploit in OpenPegas&lt;br /&gt;
ESX-1002969 22:20:56 03/17/08 Updated OpenSSL packages for security fi&lt;br /&gt;
ESX-1002967 22:21:55 03/17/08 tzdata enhancement, with timezone update&lt;br /&gt;
ESX-1002966 22:22:57 03/17/08 COS kernel's SCSI layer may lead to Oops&lt;br /&gt;
ESX-1002965 22:23:59 03/17/08 Megaraid2 driver fix for UNISYS platform&lt;br /&gt;
ESX-1002427 22:25:02 03/17/08 Fix the firmware of bnx2 (BRCM 5709) dri&lt;br /&gt;
ESX-1003374 22:25:59 03/17/08 Tools installer update to support RHEL5.&lt;br /&gt;
ESX-1003179 22:27:04 03/17/08 Remote-console black-out resolved&lt;br /&gt;
ESX-1003366 22:28:27 03/17/08 H/W iSCSI: System PSOD&lt;br /&gt;
ESX-1003365 22:28:35 03/17/08 VM hangs on Harwich and Foxecove&lt;br /&gt;
ESX-1003364 22:29:40 03/17/08 Autostart for VM works intermittently&lt;br /&gt;
ESX-1003362 22:30:35 03/17/08 Security fix for aacraid driver vulnerab&lt;br /&gt;
ESX-1003360 22:31:27 03/17/08 Python security update&lt;br /&gt;
ESX-1003359 22:32:27 03/17/08 Samba security update&lt;br /&gt;
ESX-1003515 22:33:24 03/17/08 Fix for trunking VLANs with igb driver&lt;br /&gt;
ESX-1003514 22:34:31 03/17/08 tg3 driver updates&lt;br /&gt;
ESX-1003513 22:36:59 03/17/08 Fixed issue of vpxa crashing during reco&lt;br /&gt;
For a differential list of rpms, use the -l/--listrpms option.&lt;br /&gt;
&lt;br /&gt;
Once you have verified the installation of the patches reboot the server&lt;br /&gt;
&lt;br /&gt;
type reboot and press enter&lt;br /&gt;
&lt;br /&gt;
After the load of all the patches i found that we were unable to reconnect the machines to the VI console, with the error&lt;br /&gt;
"Unable to access the specified host. either does not exist, the server software is not responding, or there is a network problem"&lt;br /&gt;
&lt;br /&gt;
To fix this i had to putty into the ESX box&lt;br /&gt;
Log on as root&lt;br /&gt;
Run "rpm -qa | grep vpxa" to see what vpxa installation was done&lt;br /&gt;
Example&lt;br /&gt;
         root@VMSX01 root--# rpm -qa | grep vpxa&lt;br /&gt;
         VMware-vpxa-2.5.0-64192&lt;br /&gt;
&lt;br /&gt;
run "rpm -e &amp;lt;Iput return from rpm -qa here&amp;gt;" to uninstall the software&lt;br /&gt;
Example&lt;br /&gt;
         root@VMSX01 root--#rpm -e VMware-vpxa-2.5.0-64192&lt;br /&gt;
Then restart the service&lt;br /&gt;
run "service mgmt-vmware restart"&lt;br /&gt;
&lt;br /&gt;
I had some machine i had to to this twice and make sure you have removed the ESX machine from VI completely before you run above and reconnect.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">update</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.0.2</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">patch</category>
      <pubDate>Mon, 17 Mar 2008 18:05:31 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-3640</guid>
      <dc:date>2008-03-17T18:05:31Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Virtual Center 2.5 and Oracle 10.2.0.3 (64bit) compatibility</title>
      <link>http://communities.vmware.com/docs/DOC-3510</link>
      <description>Does anyone know what the hold up is on certifying Virtual Center 2.5 and Oracle 10.2.0.3 64bit?  Was looking to upgrade to 3.5/2.5, but we only run 64bit Oracle in our Production environment.&lt;br /&gt;
&lt;hr /&gt;
*&lt;br /&gt;
In this document &lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_installation_guide.pdf"&gt;http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_installation_guide.pdf&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
all supported Databases are listed.... (Page 19)&lt;br /&gt;
&lt;br /&gt;
*&lt;br /&gt;
&lt;br /&gt;
Oracle 10g Standard Release 2 (10.2.0.1.0)          Oracle 10g Enterprise Release 2 (10.2.0.1.0)&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
First apply patch 10.2.0.3.0 to the client and server. Then apply patch 5699495 to the client.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Regradless of 32 or 64 bit installation or platform its supported. This is because your SQL command returns the same values redardless of the underlying hard and software architecture. -&amp;gt; means .... VC even use the same scripts... if it is 9i or 10g.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
But please read the release notes too... There are some hints how to configure the schema.... (priviliges because CONNECT ROLE changed and so on)&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
I'm already running 10.2.0.3 in my Virtual Center 2.x environment and it's fully patched. While I agree that 64bit "should" work, there's obviously a reason that the compatibility matrix below has "NO" for 10.2.0.3 64bit and Virtual Center 2.5. My question is when will it officially be supported by VMware, my company does not run unspported configurations for critical applications. Thanks.&lt;br /&gt;
See Page 5 - Table 6 (continued)&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/pdf//vi3_35/esx_3/r35/vi3_35_25_compat_matrix.pdf"&gt;http://www.vmware.com/pdf//vi3_35/esx_3/r35/vi3_35_25_compat_matrix.pdf&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
You are absolute right. No support for 64bit atm. I'll find out if 64bit will be supported in the future and post the answere here.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Hi Divintas,&lt;br /&gt;
&lt;br /&gt;
Did you have news about 64bit support ?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;hr /&gt;
The only response I can get from VMware Support is that they "hope" to support 64 bit Oracle in the future releases, not very promising, so I'm probably going to be moving over to SQL Server in the next month or so if nothing comes out, seems like this is their primary DB platform for VC anyway.&lt;br /&gt;
&lt;hr /&gt;
This may be one reason VM Ware doesn't want to support 64-bit just yet:&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;b&gt;When 32-bit Oracle is acceptable&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You might want to stay on a 32-bit server if any of these conditions are true: &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Linear processing:&lt;/b&gt; You do not need multiple-CPU SMP processing (Oracle parallel query) for large-table, full-table scans.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;No need for large data buffers:&lt;/b&gt; If you do not have large working sets (e.g., an OLTP database) then 32-bit may be the right choice.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;External bottleneck:&lt;/b&gt; A 32-bit architecture is fine if your bottleneck is not in the Oracle database. In an ERP system, the bottleneck may be in the app servers, Web caches, or network, and a faster database will not help.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;High buffer invalidations: &lt;span style="color:#339966"&gt;I&lt;/span&gt;&lt;/b&gt;&lt;span style="color:#339966"&gt;f your application performs frequent data purges, data truncations or makes high-volume use of temporary tables, then you may not find large RAM regions suitable.  &lt;br clear="all" /&gt;	 	&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Not computationally intensive:&lt;/b&gt; If your bottleneck is in the network or disk I/O, then the faster 64-bit CPUs will not improve your overall performance.&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
While a 64-bit server is not a panacea, there are several well-documented reasons for moving to a 64-bit server. If any of the following conditions are true, then you may want to consider a 64-bit solution: &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;High transactions processing rates: Systems with more than 200 disk I/O's per second may see dramatic improvement in speed and scalability. By caching large amounts of data, disk I/O is reduced and performance skyrockets.&lt;/li&gt;
&lt;li&gt;Declining performance: As systems grow, the 32-bit limitations prevent continued growth.&lt;/li&gt;
&lt;li&gt;Anticipating rapid growth: For systems that require uninterrupted growth and scalability, the 64-bit architecture allows almost infinite scalability. Many large ERP systems have been able to scale successfully on Windows 64 platforms.&lt;/li&gt;
&lt;li&gt;Computationally-intensive system: If your Oracle database is CPU-bound or if you perform lots of parallel full-table scans, then the faster processors in a 64-bit architecture are very appealing.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/123136"&gt;Virtual Center 2.5 and Oracle 10.2.0.3 (64bit) compatibility&lt;/a&gt;</description>
      <pubDate>Wed, 12 Mar 2008 19:12:33 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-3510</guid>
      <dc:date>2008-03-12T19:12:33Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Tech: How to enable passthrough authentication in VMware VirtualCenter 2.5</title>
      <link>http://communities.vmware.com/docs/DOC-3300</link>
      <description>Saw a cool article cross my RSS reader today on How to enable passthrough authentication in VMware VirtualCenter 2.5.&lt;br /&gt;
&lt;br /&gt;
I just tested it; it works.&lt;br /&gt;
&lt;br /&gt;
Source: &lt;a class="jive-link-external" href="http://www.virtualization.info/2008/03/tech-how-to-enable-passhrough.html"&gt;http://www.virtualization.info/2008/03/tech-how-to-enable-passhrough.html&lt;/a&gt; Thank you Stuart Radnidge and Alessandro Perilli!&lt;br /&gt;
&lt;p /&gt;
To use it, simply add -passthroughAuth -s vchostname to the end of the shortcut used to launch the VI 2.5 client.&lt;br /&gt;
&lt;br /&gt;
By default it uses the Negotiate SSPI provider, however since they have fully implemented the interface you can change that behaviour to use Kerberos by adding the following within the node in the vpxd.cfg file on the VC server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sspiProtocol&amp;gt;Kerberos&amp;lt;/sspiProtocol&amp;gt;</description>
      <pubDate>Mon, 03 Mar 2008 16:04:41 GMT</pubDate>
      <author>jason@boche.net</author>
      <guid>http://communities.vmware.com/docs/DOC-3300</guid>
      <dc:date>2008-03-03T16:04:41Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>HP Proliant and Compaq MPS Table BIOS Settings for ESX Server</title>
      <link>http://communities.vmware.com/docs/DOC-3280</link>
      <description>HP Proliant and Compaq MPS Table BIOS Settings for ESX Server &lt;br /&gt;
&lt;br /&gt;
For those of you who use VMware ESX and Compaq/HP Proliant servers, I came across a helpful entry on Vincent Vlieghe's blog:  &lt;a class="jive-link-external" href="http://virtrix.blogspot.com/2006/07/hp-proliant-and-compaq-mps-table-bios.html"&gt;http://virtrix.blogspot.com/2006/07/hp-proliant-and-compaq-mps-table-bios.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This basically has to do with how to optimize the server's BIOS configuration for running VMware ESX Server.  Most options in the BIOS may be easily interpreted and safe irregardless of the configuration, however, two configuration parameters stand out as important.&lt;br /&gt;
&lt;br /&gt;
Thank you Vincent Vlieghe for doing the homework on this.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
donderdag, juli 27, 2006&lt;br /&gt;
HP Proliant and Compaq MPS Table BIOS Settings for ESX Server &lt;br /&gt;
I read an interesting article on ESX on proliant servers:&lt;br /&gt;
&lt;br /&gt;
Summary&lt;br /&gt;
&lt;p /&gt;
HP ProLiant servers (and pre-merger Compaq ProLiant servers) require specific BIOS settings in order to run VMware ESX Server. These settings ensure that the physical hardware can be addressed properly and consistently by the VMkernel. Use of BIOS settings with values other than those identified below may result in operational instability.&lt;br /&gt;
&lt;p /&gt;
Discussion&lt;br /&gt;
&lt;br /&gt;
On HP ProLiant servers (and pre-merger Compaq ProLiant servers), the BIOS may not fully populate the PCI interrupt routing entries in the MP Configuration Table (part of the Intel MultiProcessor Specification) if the MPS Table Mode setting within the BIOS is incorrect. An incomplete MP Configuration Table may result in failure of an initial installation of ESX Server, failure to complete the boot process, or instability during normal operation.&lt;br /&gt;
&lt;p /&gt;
For stable operation on these systems, ESX Server requires a BIOS MPS Table Mode setting of Full Table APIC. With the exception of the specific systems referenced below, the following BIOS settings must be applied in order if available:&lt;br /&gt;
&lt;p /&gt;
System Options &amp;gt; OS Selection: Select Windows 2000.&lt;br /&gt;
&lt;br /&gt;
Advanced Options &amp;gt; MPS Table Mode: Select Full Table APIC.&lt;br /&gt;
&lt;br /&gt;
When presented with multiple Windows options (Windows 2000, Windows Server 2003, Windows .NET, and so on) select Windows 2000. If both BIOS settings are available and can be modified, both must be set correctly. You should confirm these settings after any BIOS upgrade operation.&lt;br /&gt;
&lt;p /&gt;
For the HP ProLiant DL 740 and DL 760 servers specifically, set the OS Selection BIOS setting to Linux to allow for proper operation when hyperthreading is enabled. The remainder of the BIOS settings, and the order in which they are applied, are as specified above.&lt;br /&gt;
&lt;br /&gt;
If any BIOS setting is incorrect, you may see one or more messages in /var/log/messages or /var/log/vmkwarning on the Service Console similar to the following:&lt;br /&gt;
May 11 22:36:30 esx101 vmkernel: 0:00:00:00.00 ALERT: Chipset: 303: no PCI entries - Check BIOS Settings&lt;br /&gt;
&lt;br /&gt;
May 11 22:36:30 esx101 vmkernel: 0:00:00:00.000 cpu0) ALERT: Chipset: 433: no PCI entries in MPS table - check BIOS settings&lt;br /&gt;
&lt;br /&gt;
May 11 22:36:30 esx101 vmkernel: 0:00:00:00.000 cpu0) WARNING: IOAPIC: 986: no PCI entry for busID 2 busIRQ 8 - trying ISA irq 15&lt;br /&gt;
&lt;p /&gt;
You may also see unnecessary hardware interrupt sharing, which is explained in detail in knowledge base article 1290 at www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1290.&lt;br /&gt;
&lt;br /&gt;
You may need to use the ROM-Based Setup Utility (RBSU), SmartStart CD, or other BIOS configuration tool to make these adjustments. Hewlett-Packard's Web site includes extensive documentation on how to adjust BIOS settings on HP and Compaq systems, including generalized RBSU guides which may be found at search.hp.com/query.html?qt=title%3A%22ROM-Based+Setup+Utility+User+Guide%22.&lt;br /&gt;
&lt;br /&gt;
The "OS Selection" section of the HP RBSU User Guide notes that, in certain circumstances, adjusting the OS Selection BIOS setting may result in an automatic change of the MPS Table Mode BIOS setting (emphasis added):&lt;br /&gt;
&lt;br /&gt;
The OS Selection option allows you to select the primary OS for the server. A list of supported OSs for the server displays on the menu, with the ROM defaulting to Microsoft Windows 2000 when the server supports it. Default server Multi Processor (MP) settings and PCI Hot Plug reservation settings are automatically set based on the OS selected.&lt;br /&gt;
&lt;br /&gt;
Although an automatic change may occur, the individual BIOS settings should be confirmed explicitly if you intend to use this system with VMware ESX Server. For additional assistance in making these changes, please contact HP Technical Support.</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">esx</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">compaq</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">hp</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">bios</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">os</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">selection</category>
      <pubDate>Mon, 03 Mar 2008 03:12:24 GMT</pubDate>
      <author>jason@boche.net</author>
      <guid>http://communities.vmware.com/docs/DOC-3280</guid>
      <dc:date>2008-03-03T03:12:24Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>oo</title>
      <link>http://communities.vmware.com/docs/DOC-2681</link>
      <description>&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
oooo</description>
      <pubDate>Fri, 01 Feb 2008 17:29:35 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2681</guid>
      <dc:date>2008-02-01T17:29:35Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>setting up ISCSCI</title>
      <link>http://communities.vmware.com/docs/DOC-2663</link>
      <description>I am tryinhg to connect 2 ESX servers via ISCSI to a Compellent storage device. I am not able to communicate with the storage device.</description>
      <pubDate>Wed, 30 Jan 2008 20:39:52 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2663</guid>
      <dc:date>2008-01-30T20:39:52Z</dc:date>
      <clearspace:dateToText>1 year, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>VCB on vmware workstation</title>
      <link>http://communities.vmware.com/docs/DOC-2600</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
 How can I test VCB on vmware workstation since it does not have a HBA Card.&lt;br /&gt;
&lt;br /&gt;
 Alternatively, if i use vmware workstation, how can i test the functionality of VCB. &lt;br /&gt;
&lt;br /&gt;
Thanks</description>
      <pubDate>Wed, 23 Jan 2008 17:14:56 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2600</guid>
      <dc:date>2008-01-23T17:14:56Z</dc:date>
      <clearspace:dateToText>1 year, 10 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Essential ESX 3.5 &amp;#38; VC 2.5 links</title>
      <link>http://communities.vmware.com/docs/DOC-2562</link>
      <description>I've put together this link compilation for the new versions, it will also be posted on my website. New additional links will also be added to my website as a I gather them.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Compatibility &amp;#38; Version Info:&lt;/b&gt;&lt;br /&gt;
VI3 Key Features &amp;#38; Benefits Summary by Version - &lt;a class="jive-link-external" href="http://www.vmware.com/files/pdf/key_features_35.pdf"&gt;http://www.vmware.com/files/pdf/key_features_35.pdf&lt;/a&gt;&lt;br /&gt;
VMware Infrastructure Compatibility Matrixes - &lt;a class="jive-link-external" href="http://vmware.com/pdf//vi3_35/esx_3/r35/vi3_35_25_compat_matrix.pdf"&gt;http://vmware.com/pdf//vi3_35/esx_3/r35/vi3_35_25_compat_matrix.pdf&lt;/a&gt;&lt;br /&gt;
Details of What's New and Improved In VI3 Version 3.5 - &lt;a class="jive-link-external" href="http://www.vmware.com/support/vi3/doc/whatsnew_esx35_vc25.html"&gt;http://www.vmware.com/support/vi3/doc/whatsnew_esx35_vc25.html&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Must Read:&lt;/b&gt;&lt;br /&gt;
RTFM Upgrade guide for ESX 3.5 and VirtualCenter 2.5 - &lt;a class="jive-link-external" href="http://tinyurl.com/3722dz"&gt;http://tinyurl.com/3722dz&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Release Notes/Install, Upgrade and Patch Guide:&lt;/b&gt;&lt;br /&gt;
ESX Server 3.5 and VirtualCenter 2.5 Release Notes - &lt;a class="jive-link-external" href="http://www.vmware.com/support/vi3/doc/vi3_esx35_vc25_rel_notes.html"&gt;http://www.vmware.com/support/vi3/doc/vi3_esx35_vc25_rel_notes.html&lt;/a&gt;&lt;br /&gt;
ESX Server 3 Installation Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_installation_guide.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_installation_guide.pdf&lt;/a&gt;&lt;br /&gt;
Upgrade Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_upgrade_guide.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_upgrade_guide.pdf&lt;/a&gt;&lt;br /&gt;
ESX Server 3 Patch Management Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_esxupdate.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_esxupdate.pdf&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Additional documentation:&lt;/b&gt;&lt;br /&gt;
Configuration Maximums for VMware Infrastructure 3 - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_config_max.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_config_max.pdf&lt;/a&gt;&lt;br /&gt;
Quick Start Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_quickstart.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_quickstart.pdf&lt;/a&gt;&lt;br /&gt;
Basic System Administration - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_admin_guide.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_admin_guide.pdf&lt;/a&gt;&lt;br /&gt;
Virtual Infrastructure Web Access Administrator's Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_web_access.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_web_access.pdf&lt;/a&gt;&lt;br /&gt;
ESX Server 3 Configuration Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf&lt;/a&gt;&lt;br /&gt;
Resource Management Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_resource_mgmt.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_resource_mgmt.pdf&lt;/a&gt;&lt;br /&gt;
Fibre Channel SAN Configuration Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_san_cfg.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_san_cfg.pdf&lt;/a&gt;&lt;br /&gt;
iSCSI SAN Configuration Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_iscsi_san_cfg.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_iscsi_san_cfg.pdf&lt;/a&gt;&lt;br /&gt;
Virtual Machine Backup Guide - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_vm_backup.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_vm_backup.pdf&lt;/a&gt;&lt;br /&gt;
VMware Infrastructure 3 Primer - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_prim.pdf"&gt;http://vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_prim.pdf&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Additional downloads:&lt;/b&gt;&lt;br /&gt;
Remote CLI Download - &lt;a class="jive-link-external" href="http://www.vmware.com/download/download.do?downloadGroup=VI-RCLI"&gt;http://www.vmware.com/download/download.do?downloadGroup=VI-RCLI&lt;/a&gt;&lt;br /&gt;
License Server for ESX 3.5 - &lt;a class="jive-link-external" href="http://download3.vmware.com/software/vi/VMware-licenseserver-64192.exe"&gt;http://download3.vmware.com/software/vi/VMware-licenseserver-64192.exe&lt;/a&gt;&lt;br /&gt;
CPU Compatibility Tool for ESX 3.5 - &lt;a class="jive-link-external" href="http://download3.vmware.com/software/vi/CPU_Compatibility-64557.zip"&gt;http://download3.vmware.com/software/vi/CPU_Compatibility-64557.zip&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Converter:&lt;/b&gt;&lt;br /&gt;
VMware Converter Enterprise for VirtualCenter 2.5 Admin Guide  - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_vec_10_admin_guide.pdf"&gt;http://vmware.com/pdf/vi3_vec_10_admin_guide.pdf&lt;/a&gt;&lt;br /&gt;
VMware Converter Enterprise for VirtualCenter 2.5 Release Notes - &lt;a class="jive-link-external" href="http://vmware.com/support/vi3/doc/vi3_vec_10_rel_notes.html"&gt;http://vmware.com/support/vi3/doc/vi3_vec_10_rel_notes.html&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Update Manager:&lt;/b&gt;&lt;br /&gt;
VMware Update Manager Release Notes - &lt;a class="jive-link-external" href="http://vmware.com/support/vi3/doc/vi3_vum_10_rel_notes.html"&gt;http://vmware.com/support/vi3/doc/vi3_vum_10_rel_notes.html&lt;/a&gt;&lt;br /&gt;
VMware Update Manager Admin Guide - &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_vum_10_admin_guide.pdf"&gt;http://www.vmware.com/pdf/vi3_vum_10_admin_guide.pdf&lt;/a&gt;&lt;br /&gt;
VMware Update Manager Sizing Estimator - &lt;a class="jive-link-external" href="http://vmware.com/support/vi3/doc/vi3_vum_10_sizing_estimator.xls"&gt;http://vmware.com/support/vi3/doc/vi3_vum_10_sizing_estimator.xls&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Latest Hardware Compatibility Guides:&lt;/b&gt;&lt;br /&gt;
Systems - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_systems_guide.pdf"&gt;http://vmware.com/pdf/vi3_systems_guide.pdf&lt;/a&gt;&lt;br /&gt;
I/O - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_io_guide.pdf"&gt;http://vmware.com/pdf/vi3_io_guide.pdf&lt;/a&gt;&lt;br /&gt;
Storage/SAN - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_san_guide.pdf"&gt;http://vmware.com/pdf/vi3_san_guide.pdf&lt;/a&gt;&lt;br /&gt;
Backup Software - &lt;a class="jive-link-external" href="http://vmware.com/pdf/vi3_backup_guide.pdf"&gt;http://vmware.com/pdf/vi3_backup_guide.pdf&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Blog &amp;#38; News Articles:&lt;/b&gt;&lt;br /&gt;
VMware ESX 3.5 goes live with key new features - &lt;a class="jive-link-external" href="http://searchservervirtualization.techtarget.com/originalContent/0,289142,sid94_gci1285629,00.html"&gt;http://searchservervirtualization.techtarget.com/originalContent/0,289142,sid94_gci1285629,00.html&lt;/a&gt;&lt;br /&gt;
What's new in ESX 3.5 &amp;#38; VC 2.5? - &lt;br /&gt;
&lt;a class="jive-link-external" href="http://virtualgabe.wordpress.com/2007/12/08/what%e2%80%99s-new-in-esx-35-vc-25-part-2/"&gt;http://virtualgabe.wordpress.com/2007/12/08/what%e2%80%99s-new-in-esx-35-vc-25-part-2/&lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-external" href="http://virtualgabe.wordpress.com/2007/12/08/what%e2%80%99s-new-in-esx-35-vc-25-part-3/"&gt;http://virtualgabe.wordpress.com/2007/12/08/what%e2%80%99s-new-in-esx-35-vc-25-part-3/&lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-external" href="http://virtualgabe.wordpress.com/2007/12/08/what%e2%80%99s-new-in-esx-35-vc-25-part-4/"&gt;http://virtualgabe.wordpress.com/2007/12/08/what%e2%80%99s-new-in-esx-35-vc-25-part-4/&lt;/a&gt;&lt;br /&gt;
VMware VI Client 2.5 does not support 64-bit workstations - &lt;a class="jive-link-external" href="http://www.dabcc.com/article.aspx?id=6674"&gt;http://www.dabcc.com/article.aspx?id=6674&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Relevant KB Articles:&lt;/b&gt;&lt;br /&gt;
&lt;u&gt;Licensing:&lt;/u&gt;&lt;br /&gt;
Updates to your VMware VI3 Starter Licenses - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003299"&gt;http://kb.vmware.com/kb/1003299&lt;/a&gt;&lt;br /&gt;
Changes in licensing for VI3 Standard Edition When upgrading to VI 3.5 - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003301"&gt;http://kb.vmware.com/kb/1003301&lt;/a&gt;&lt;br /&gt;
Understanding VI 3.5 Licensing: Server and Host-based Licensing Models - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003295"&gt;http://kb.vmware.com/kb/1003295&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;u&gt;ESX 3.5:&lt;/u&gt;&lt;br /&gt;
Installing ESX Server throws an "Anaconda Error" in the Partitioning Options screen - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003217"&gt;http://kb.vmware.com/kb/1003217&lt;/a&gt;&lt;br /&gt;
VMFS Partition cannot be created for "Typical" ESX Server Installation if Prior installation is detected - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003309"&gt;http://kb.vmware.com/kb/1003309&lt;/a&gt;&lt;br /&gt;
IBM System x3850 M2 and System x3950 M2 Servers fail to connect to 100Mbps Networks - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003226"&gt;http://kb.vmware.com/kb/1003226&lt;/a&gt;&lt;br /&gt;
Installing the Tivoli Storage Manager Client on the Service Console results in an error - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003142"&gt;http://kb.vmware.com/kb/1003142&lt;/a&gt;&lt;br /&gt;
Virtual Machine on a RDM Shared Storage becomes invalid after migration from ESX Server 2.5.x to ESX Server 3.5 or 3i - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003092"&gt;http://kb.vmware.com/kb/1003092&lt;/a&gt;&lt;br /&gt;
Vmotion is disabled after ESX Server upgrade - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003060"&gt;http://kb.vmware.com/kb/1003060&lt;/a&gt;&lt;br /&gt;
Certain Special Characters cause software iSCSI Initiator CHAP Configuration corruption - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003095"&gt;http://kb.vmware.com/kb/1003095&lt;/a&gt;&lt;br /&gt;
Connection to ESX Server host through VI Client is lost if you attempt to delete several VM's at once from the Datastore Browser - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003250"&gt;http://kb.vmware.com/kb/1003250&lt;/a&gt;&lt;br /&gt;
Storage Devices connected to McData FC Switch through Qlogic adapters occasionally do not re-appear after reboot - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003250"&gt;http://kb.vmware.com/kb/1003250&lt;/a&gt;&lt;br /&gt;
Snapshot operations submitted directly to an ESX Server Host during Storage vMotion corrupts Virtual Machine data - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003114"&gt;http://kb.vmware.com/kb/1003114&lt;/a&gt;&lt;br /&gt;
Storage vMotion on a VM with I/O intensive workload may result incorrectly in a timeout error - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003276"&gt;http://kb.vmware.com/kb/1003276&lt;/a&gt;&lt;br /&gt;
Upgrading to ESX Server 3.5 when the Root Parition is nearly full might cause Incomplete System Configuration - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003311"&gt;http://kb.vmware.com/kb/1003311&lt;/a&gt;&lt;br /&gt;
Restarting Hostd (mgmt-vmware) on ESX Server hosts restarts Hosted Virtual Machines where VM Auto Startup/Shutdown is enabled - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003312"&gt;http://kb.vmware.com/kb/1003312&lt;/a&gt;&lt;br /&gt;
ESX Server becomes temporarily unresponsive under a Heavy I/O load - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003039"&gt;http://kb.vmware.com/kb/1003039&lt;/a&gt;&lt;br /&gt;
Consolidation of Large or Deeply Nested Snapshots using VirtualCenter, SDK or VCB might take longer on ESX Server 3.5 than on ESX Server 3.0.x - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003308"&gt;http://kb.vmware.com/kb/1003308&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;u&gt;Consolidated Backup 1.1:&lt;/u&gt;&lt;br /&gt;
Upgrading Consolidated Backup version 1.0.x to 1.1 causes the installer to hang - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003045"&gt;http://kb.vmware.com/kb/1003045&lt;/a&gt; &lt;br /&gt;
Consolidated Backup cannot create Quiesced Snapshots of VM's running Windows Vista - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003074"&gt;http://kb.vmware.com/kb/1003074&lt;/a&gt;&lt;br /&gt;
VCB 1.1 Command Line utility connection to port 902 causes an error message - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003088"&gt;http://kb.vmware.com/kb/1003088&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;u&gt;VC 2.5:&lt;/u&gt;&lt;br /&gt;
When you install SQL Server Express on a System where SQL Native Client is present the installation might fail with error - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003076"&gt;http://kb.vmware.com/kb/1003076&lt;/a&gt;&lt;br /&gt;
VirtualCenter Server Fails to Start after your replace Default SSL Ceritifcates with Custom Certificates - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003070"&gt;http://kb.vmware.com/kb/1003070&lt;/a&gt;&lt;br /&gt;
Error Message During Installation: error 1603: error installing Windows installer engine - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003036"&gt;http://kb.vmware.com/kb/1003036&lt;/a&gt;&lt;br /&gt;
Administrative Credentials are Required for Oracle and SQL Database when Installing or Upgrading VirtualCenter - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003052"&gt;http://kb.vmware.com/kb/1003052&lt;/a&gt;&lt;br /&gt;
Client-side CD-ROM or Floppy can become disconnected - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003118"&gt;http://kb.vmware.com/kb/1003118&lt;/a&gt;&lt;br /&gt;
VirtualCenter Server does not detect changes in Host IP Address unless SSL Certificate Verification has been enabled - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003066"&gt;http://kb.vmware.com/kb/1003066&lt;/a&gt;&lt;br /&gt;
Permission problem if host had been in lockdown mode - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003117"&gt;http://kb.vmware.com/kb/1003117&lt;/a&gt;&lt;br /&gt;
Virtual Machines might lose Network Connectivity when moved to a different Port Group - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003061"&gt;http://kb.vmware.com/kb/1003061&lt;/a&gt;&lt;br /&gt;
Powering on Virtual Machines with multiple PCI Devices might fail - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003048"&gt;http://kb.vmware.com/kb/1003048&lt;/a&gt;&lt;br /&gt;
Incorrect Device Paths for LUNs displayed in Storage Summary - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003064"&gt;http://kb.vmware.com/kb/1003064&lt;/a&gt;&lt;br /&gt;
VirtualCenter Consolidation service Usernames and Passwords must use only ASCII characters - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003096"&gt;http://kb.vmware.com/kb/1003096&lt;/a&gt;&lt;br /&gt;
VI Client installation fails on Windows Vista Business Edition with enabled Anti-virus software - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003079"&gt;http://kb.vmware.com/kb/1003079&lt;/a&gt;&lt;br /&gt;
VirtualCenter Server might crash in a cluster with Manual or Partially Automatic DRS and Automatic DPM - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003027"&gt;http://kb.vmware.com/kb/1003027&lt;/a&gt;&lt;br /&gt;
Deleting Snapshots of VM's with Heavy disk I/O might cause host to be Disconnected from VirtualCenter - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003024"&gt;http://kb.vmware.com/kb/1003024&lt;/a&gt;&lt;br /&gt;
Paravirtualization option is not Disabled for Unsupported Operating Systems - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003008"&gt;http://kb.vmware.com/kb/1003008&lt;/a&gt;&lt;br /&gt;
VirtualCenter Server installation fails or results in an error if your system does not have MDAC 2.8 SP1 or later installed - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003160"&gt;http://kb.vmware.com/kb/1003160&lt;/a&gt;&lt;br /&gt;
Installing Update Manager with Unified Installer might faile if Disparate Databases are used - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003277"&gt;http://kb.vmware.com/kb/1003277&lt;/a&gt;&lt;br /&gt;
Some Alarms may disappear after upgrading to VirtualCenter 2.5 - &lt;a class="jive-link-external" href="http://kb.vmware.com/selfservicekb/1003072"&gt;http://kb.vmware.com/selfservicekb/1003072&lt;/a&gt;&lt;br /&gt;
VirtualCenter Database upgrade fails with an exception when a Password that contains Apostrophes or Double Quotes is used - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003049"&gt;http://kb.vmware.com/kb/1003049&lt;/a&gt;&lt;br /&gt;
The VirtualCenter Server might Crash when using an older ODBC driver with Oracle 9i - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003049"&gt;http://kb.vmware.com/kb/1003049&lt;/a&gt;&lt;br /&gt;
Guest Operating System Standby feature removed in VirtualCenter Server 2.5 - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1002414"&gt;http://kb.vmware.com/kb/1002414&lt;/a&gt;&lt;br /&gt;
Cannot specify Destination Folder on Non-default Datacenter when Cloning Virtual Machines - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003075"&gt;http://kb.vmware.com/kb/1003075&lt;/a&gt;&lt;br /&gt;
VirtualCenter Service will not start on a machine with non-Ascii characters in it's Machine Name - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003075"&gt;http://kb.vmware.com/kb/1003075&lt;/a&gt;&lt;br /&gt;
vMotion from ESX Server 3.5 hosts to ESX Server 3.0.x hosts causes the console sessions of the migrated VM's to become blank - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003038"&gt;http://kb.vmware.com/kb/1003038&lt;/a&gt;&lt;br /&gt;
Automatic VMware Tools upgrade does not upgrade to the latest version on VM's with Insufficient space in the Root parition - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003051"&gt;http://kb.vmware.com/kb/1003051&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Eric Siebert&lt;br /&gt;
VMware Communities User Moderator&lt;br /&gt;
-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-&lt;br /&gt;
Visit my website: &lt;a class="jive-link-external" href="http://vmware-land.com"&gt;http://vmware-land.com&lt;/a&gt;&lt;br /&gt;
-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Thanks for putting this together.  Very useful!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Make this a sticky!&lt;br /&gt;
&lt;hr /&gt;
Updates to the list...&lt;br /&gt;
&lt;p /&gt;
&lt;b&gt;Forum Threads:&lt;/b&gt;&lt;br /&gt;
3.5 Install Notes: &lt;a class="jive-link-message" href="http://communities.vmware.com/message/820473#820473"&gt;http://communities.vmware.com/message/820473&lt;/a&gt;&lt;br /&gt;
VC 2.5 SQL Server 2000 permission configuration needs - &lt;a class="jive-link-message" href="http://communities.vmware.com/message/820079#820079"&gt;http://communities.vmware.com/message/820079&lt;/a&gt;&lt;br /&gt;
VC 2.5 Upgrade - Wiped my Database - &lt;a class="jive-link-message" href="http://communities.vmware.com/message/820174#820174"&gt;http://communities.vmware.com/message/820174&lt;/a&gt;&lt;br /&gt;
New Features - What Have You Noticed? - &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/117565?tstart=50"&gt;http://communities.vmware.com/thread/117565?tstart=50&lt;/a&gt;&lt;br /&gt;
VMware 3.5 Disappointing News - &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/116816?tstart=100"&gt;http://communities.vmware.com/thread/116816?tstart=100&lt;/a&gt;&lt;br /&gt;
Upgrade of 3.0.2 or Fresh Install? - &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/116907?tstart=100"&gt;http://communities.vmware.com/thread/116907?tstart=100&lt;/a&gt;&lt;br /&gt;
VI Client 2.5 only supports 32-bit OS - &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/116881?tstart=150"&gt;http://communities.vmware.com/thread/116881?tstart=150&lt;/a&gt;&lt;br /&gt;
VC 2.5 Database Upgrade - Space required by Upgrade Wizard - &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/117001?tstart=150"&gt;http://communities.vmware.com/thread/117001?tstart=150&lt;/a&gt;&lt;br /&gt;
Update Manager - Changing the Default Location of the Patch Repository - &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/117426?tstart=150"&gt;http://communities.vmware.com/thread/117426?tstart=150&lt;/a&gt;&lt;br /&gt;
ESX 3.5 Time Configuration Error "Failed to Change Host Configuration" - &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/117349?tstart=200"&gt;http://communities.vmware.com/thread/117349?tstart=200&lt;/a&gt;&lt;br /&gt;
VirtualCenter 2.5 Components won't install - &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/116964?tstart=250"&gt;http://communities.vmware.com/thread/116964?tstart=250&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Other:&lt;/b&gt;&lt;br /&gt;
Technote: Round-Robin Load Balancing - &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35_25_roundrobin.pdf"&gt;http://www.vmware.com/pdf/vi3_35_25_roundrobin.pdf&lt;/a&gt;&lt;br /&gt;
Technote: Enabling Netflow on Virtual Switches - &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35_25_netflow.pdf"&gt;http://www.vmware.com/pdf/vi3_35_25_netflow.pdf&lt;/a&gt;&lt;br /&gt;
Technote: Configuring and Troubleshooting N-Port ID Virtualization - &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35_25_npiv_config.pdf"&gt;http://www.vmware.com/pdf/vi3_35_25_npiv_config.pdf&lt;/a&gt;&lt;br /&gt;
Technote: Virtual Machine Failure Monitoring - &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35_25_vmha.pdf"&gt;http://www.vmware.com/pdf/vi3_35_25_vmha.pdf&lt;/a&gt;&lt;br /&gt;
ESX 3.5 Installation Video (You Tube) - &lt;a class="jive-link-external" href="http://ca.youtube.com/watch?v=qobhariBEec"&gt;http://ca.youtube.com/watch?v=qobhariBEec&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Blog &amp;#38; News Articles:&lt;/b&gt;&lt;br /&gt;
Review: VMware Infrastructure 3.5 builds on the base - &lt;a class="jive-link-external" href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;#38;articleId=9053158"&gt;http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;#38;articleId=9053158&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;Relevant KB Articles:&lt;/b&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;u&gt;VC 2.5:&lt;/u&gt;&lt;br /&gt;
For SQL Server 2000, Do Not Grant or Revoke the System Administrators Role to Satisfy the Database Permission Requirements When Upgrading to VirtualCenter 2.5 - &lt;a class="jive-link-external" href="http://kb.vmware.com/kb/1003346"&gt;http://kb.vmware.com/kb/1003346&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Eric Siebert&lt;br /&gt;
VMware Communities User Moderator&lt;br /&gt;
-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-&lt;br /&gt;
Visit my website: &lt;a class="jive-link-external" href="http://vmware-land.com"&gt;http://vmware-land.com&lt;/a&gt;&lt;br /&gt;
-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
This is an excelent set of information within such a short time. Thank you very much.&lt;br /&gt;
&lt;hr /&gt;
Great info.  Thank you!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
&lt;div class="jive-quote"&gt;&lt;span class="jive-quote-header"&gt;FredPeterson wrote:&lt;/span&gt;Make this a sticky!&lt;/div&gt;
I second that!&lt;br /&gt;
&lt;hr /&gt;
Very nice post, sticky or not, added to bookmarks&lt;br /&gt;
&lt;hr /&gt;
The Remote CLI documentation I found only discusses svmotion.  Is there a document that describes all the commands?&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/117185"&gt;Essential ESX 3.5 &amp;#38; VC 2.5 links&lt;/a&gt;</description>
      <pubDate>Fri, 18 Jan 2008 18:08:09 GMT</pubDate>
      <author>eric@bost.com</author>
      <guid>http://communities.vmware.com/docs/DOC-2562</guid>
      <dc:date>2008-01-18T18:08:09Z</dc:date>
      <clearspace:dateToText>1 year, 10 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Patching Offline ESX servers with Vmware Update Manager</title>
      <link>http://communities.vmware.com/docs/DOC-2513</link>
      <description>&lt;h1&gt;Patching Offline ESX servers with Vmware Update Manager&lt;/h1&gt;
This is my brief guide to what I did to setup patching for isolated networks, like those in intellegence communities, etc. This is meant to help fill in some of the gaps that the documentation left in the process. &lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Install Update Manager Download Service&lt;/h2&gt;
Setup a machine to be your Update Manager Download system: &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;This machine must have Internet access.&lt;/li&gt;
&lt;li&gt;This system will require another database beyond what the Update Manager in Virtual Center uses, so you may not want to install it there.&lt;/li&gt;
&lt;li&gt;Also, you will need to burn CDs/DVDs or transfer files to a device&lt;/li&gt;
&lt;li&gt;This all being said, a workstation is a good candidate system&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Install the Update Manager Download Service on the above machine &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Files are located in "&lt;b&gt;umds&lt;/b&gt;" folder of the &lt;b&gt;Virtual Center installation CD image&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Open the &lt;b&gt;VMware-UMDS.exe&lt;/b&gt; file to install&lt;/li&gt;
&lt;li&gt;Select to use the local SQL 2005 Express database server&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Download Current Updates&lt;/h2&gt;
The best thing to do is setup a Windows Scheduled Task that downloads the updates automatically. The first step is to create a script to accomplish this manually then you can make it a scheduled task.&lt;br /&gt;
&lt;br /&gt;
To get current downloads: &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Change to the "&lt;b&gt;C:\Program Files\VMware\Infrastructure\Update Manager"&lt;/b&gt; directory&lt;/li&gt;
&lt;li&gt;Run the program: &lt;b&gt;vmware-udms --download&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Get coffee! Really, the first run takes a loonngg time.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Once downloads are done you need to export to a local file repository: &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Change to the "&lt;b&gt;C:\Program Files\VMware\Infrastructure\Update Manager"&lt;/b&gt; directory&lt;/li&gt;
&lt;li&gt;Run the program: vmware-umds -E --dest &lt;b&gt;&amp;lt;FULL PATH TO YOUR REPOSITORY&amp;gt;&lt;/b&gt; -s 2007-01-01T00:00:00 -t 2007-12-31T23:59:59&lt;/li&gt;
&lt;li&gt;This downloads all the patches for 2007, specify different time ranges as required.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Once exported you need to export your repository to some sort of portable media, say a DVD (most likely a DL from what I have already seen!!!)&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Import Updates to Virtual Center on Isolated Network&lt;/h2&gt;
Now that your Internet connect machine has done all the dirty work, you need to get the updates into Virtual Center's Update Database:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Get you update media connected to Virtual Center so it can access the files&lt;/li&gt;
&lt;li&gt;Change to the "&lt;b&gt;C:\Program Files\VMware\Infrastructure\Update Manager"&lt;/b&gt; directory on Virtual Center&lt;/li&gt;
&lt;li&gt;Run the program: vmware-updateDownloadCli.exe --update-path &lt;b&gt;&amp;lt;YOUR DRIVE LETTER HERE&amp;gt;&lt;/b&gt; --config-import windows esx --vc-user &lt;b&gt;&amp;lt;YOUR VC USER&amp;gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
This is a very brief explanation of what to do. See these fine documents below for more stuff:&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;VMWare Update Manager&lt;/h3&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_vum_10_admin_guide.pdf"&gt;http://www.vmware.com/pdf/vi3_vum_10_admin_guide.pdf&lt;/a&gt;</description>
      <pubDate>Fri, 11 Jan 2008 15:28:05 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2513</guid>
      <dc:date>2008-01-11T15:28:05Z</dc:date>
      <clearspace:dateToText>1 year, 10 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Setting up Vmware Update Manager Download Service for Isolated Networks</title>
      <link>http://communities.vmware.com/docs/DOC-2505</link>
      <description>&lt;h1&gt;Patching Offline ESX servers with Vmware Update Manager&lt;/h1&gt;
This is my brief guide to what I did to setup patching for isolated networks, like those in intellegence communities, etc. This is meant to help fill in some of the gaps that the documentation left in the process. &lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Install Update Manager Download Service&lt;/h2&gt;
Setup a machine to be your Update Manager Download system: &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;This machine must have Internet access.&lt;/li&gt;
&lt;li&gt;This system will require another database beyond what the Update Manager in Virtual Center uses, so you may not want to install it there.&lt;/li&gt;
&lt;li&gt;Also, you will need to burn CDs/DVDs or transfer files to a device&lt;/li&gt;
&lt;li&gt;This all being said, a workstation is a good candidate system&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Install the Update Manager Download Service on the above machine. Take note of the installation folder and the folder where the downloads will be stored.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Files are located in "&lt;b&gt;umds&lt;/b&gt;" folder of the &lt;b&gt;Virtual Center installation CD image&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Open the &lt;b&gt;VMware-UMDS.exe&lt;/b&gt; file to install&lt;/li&gt;
&lt;li&gt;Select to use the local SQL 2005 Express database server&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Download Current Updates&lt;/h2&gt;
The best thing to do is setup a Windows Scheduled Task that downloads the updates automatically. The first step is to create a script to accomplish this manually then you can make it a scheduled task.&lt;br /&gt;
&lt;br /&gt;
To get current downloads: &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Change to the "&lt;b&gt;C:\Program Files\VMware\Infrastructure\Update Manager"&lt;/b&gt; directory&lt;/li&gt;
&lt;li&gt;Run the program: &lt;b&gt;vmware-umds --download&lt;/b&gt; (or "vmware-umds -D")&lt;/li&gt;
&lt;li&gt;Get coffee! Really, the first run takes a loonngg time.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
NOTE: It is possible to configure the download to only retrieve ESX host updates, Windows VM updates and/or Linux VM updates. To change which updates are downloaded use the following syntax:&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;vmware-umds -S -h true | false&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;vmware-umds -S -w true | false&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;vmware-umds -S -l true | false&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
For example: &lt;b&gt;vmware-umds -S -h true&lt;/b&gt; will d/l ESX host patches, &lt;b&gt;vmware-umds -S -w false&lt;/b&gt; will NOT d/l Windows VM patches, etc. This can be useful if you want to verify the process but not spend time waiting for the Windows patches to download. Before running "&lt;b&gt;vmware-umds -D&lt;/b&gt;", disable Windows and Linux and verify that the ESX patches are downloaded successfully &lt;br /&gt;
&lt;br /&gt;
Once downloads are done you need to export to a local file repository: &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ul&gt;
&lt;li&gt;Change to the "&lt;b&gt;C:\Program Files\VMware\Infrastructure\Update Manager"&lt;/b&gt; directory&lt;/li&gt;
&lt;li&gt;Run the program: vmware-umds -E --dest &lt;b&gt;&amp;lt;FULL PATH TO YOUR REPOSITORY&amp;gt;&lt;/b&gt; -s 2007-01-01T00:00:00 -t 2007-12-31T23:59:59&lt;/li&gt;
&lt;li&gt;This downloads all the patches for 2007, specify different time ranges as required.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Once exported you need to export your repository to some sort of portable media, say a DVD (most likely a DL from what I have already seen!!!)&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Import Updates to Virtual Center on Isolated Network&lt;/h2&gt;
Now that your Internet connect machine has done all the dirty work, you need to get the updates into Virtual Center's Update Database:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Get you update media connected to Virtual Center so it can access the files&lt;/li&gt;
&lt;li&gt;Change to the "&lt;b&gt;C:\Program Files\VMware\Infrastructure\Update Manager"&lt;/b&gt; directory on Virtual Center&lt;/li&gt;
&lt;li&gt;Run the program: vmware-updateDownloadCli.exe --update-path &lt;b&gt;&amp;lt;YOUR DRIVE LETTER HERE&amp;gt;&lt;/b&gt; --config-import windows esx --vc-user &lt;b&gt;&amp;lt;YOUR VC USER&amp;gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
This is a very brief explanation of what to do. See these fine documents below for more stuff:&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;VMWare Update Manager&lt;/h3&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_vum_10_admin_guide.pdf"&gt;http://www.vmware.com/pdf/vi3_vum_10_admin_guide.pdf&lt;/a&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">update_mgr</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">update</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">3.5</category>
      <pubDate>Thu, 10 Jan 2008 03:21:57 GMT</pubDate>
      <author>allan.christiansen@accenture.com</author>
      <guid>http://communities.vmware.com/docs/DOC-2505</guid>
      <dc:date>2008-01-10T03:21:57Z</dc:date>
      <clearspace:dateToText>1 year, 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Storage VMotion is a great feature... but usage is hell</title>
      <link>http://communities.vmware.com/docs/DOC-2421</link>
      <description>Just my two cents about svmotion.&lt;br /&gt;
&lt;br /&gt;
It's working in my test lab. I just did some copy job to the vm I svmotion. No Problem&lt;br /&gt;
&lt;br /&gt;
BTW if u rename a VM before you svmotion it, then the folder and files change to the new name as well. (nice) &lt;br /&gt;
&lt;br /&gt;
BUT I tried the --interactive mode...... and you need to enter to full path to the vmx like in old vmware-cmd times... &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
like....... [san01_vendor_metalun_R5] My_great_running_Win2003_with_VC25/My_great_running_Win2003_with_VC25.vmx &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
...... and if use miss somthing or did not know its "CASE SENSITIVE" you need to type it in again.... &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Conclusion. Only use the interactive mode to get familar with the required options and for productive use the command line switches .... (there you have history of your tries)&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Could you please post the exact command line statement you used to get it to work.  The examples in the PDF are horrible, I keep getting &lt;i&gt;"Argument to --vm is not in the correct format."&lt;/i&gt; no matter what I do.  Thanks.&lt;br /&gt;
&lt;hr /&gt;
It's not documented, but you don't have to give the name of the .vmx file. So in your example, you can just say &lt;br /&gt;
&lt;br /&gt;
&amp;lt;san01_vendor_metalun_R5&amp;gt; My_great_running_Win2003_with_VC25&lt;br /&gt;
&lt;br /&gt;
This works in both --interactive and via the command line. You do need the space, though. &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
I used angle brackets here.  (How do you get the square backets to come through unmolested in this editor?)&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Documentation is indeed poor. Problem areas are that you have to use "&amp;lt;&amp;gt;" for the &lt;b&gt;source&lt;/b&gt; datastore but must &lt;b&gt;not&lt;/b&gt; use it for the destination. You must have a space after the first datastore, but must &lt;b&gt;not&lt;/b&gt; before and after the second. Here's a real command that's running now:&lt;br /&gt;
&lt;br /&gt;
svmotion --datacenter=AdaCore-NY --server=esx --vm='&amp;lt;Nexenta-VM&amp;gt; TFBSDo:NAS-is' &lt;br /&gt;
&lt;br /&gt;
Note that I've had to use angle brackets (&amp;lt;&amp;gt;) instead of right brackets due to the editing being done in this forum's editor.&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
FYI: I used the RCLI appliance which I downloaded from vmware.&lt;br /&gt;
&lt;br /&gt;
I used the following command:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
svmotion --server=vc.mynet.de --username=administrator --datacenter='democenter' --vm='[san01] VC25\VC25.vmx:san02' &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
I used [ ] for the first datapool san01 followed by a space. no space nor other special chars after the ":" for san02.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
So, I'm trying to use svmotion via the RCLI client installed on my laptop running Windows Vista. If I do svmotion.pl --interactive and enter in all of my information, everything works great. However, if I then try: &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
svmotion.pl --server "my-virtualcenter.domain.loc" --username "domain\userid" --password "password" --datacenter "VI3.5-Test" --vm "&amp;lt;vmhba0:1:0:1&amp;gt; My-VM/My-VM.vmx:vmhba0:2:0" &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
(yes, my lab datastores haven't been given a good name yet, and I'm using square brackets instead of &amp;lt;&amp;gt; in the actual command)..., using the same information as I use in the --interactive session, I constantly get the "arguement to --vm is not in the correct format" error. Can anyone see what I'm doing wrong? Has anyone else had good luck using the Windows RCLI tools to do a svmotion with the explicit commands, as opposed to via --interactive?&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
I'd guess that the problem is the use of ":" in the names of your datastores.  I'd suggest trying names without that character.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
I wondered about that, but since it works in --interactive mode I didn't think it would be the problem. Also, shouldn't the wrapping " "s take care of that as well?&lt;br /&gt;
&lt;hr /&gt;
No, I wouldn't think so because the issue isn't the parsing of the argument by the shell, but by the Perl code.  It uses ":" as a delimiter, so it wouldn't be too strange if it would get confused if it sees more than one when it expects only one.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Interesting.  I could not get the command to work under Windows, but the exact same syntax copied and pasted to a RedHat 5 box worked fine.&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/118338"&gt;Storage VMotion is a great feature... but usage is hell&lt;/a&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">storage_vmotion</category>
      <pubDate>Sat, 22 Dec 2007 07:12:11 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2421</guid>
      <dc:date>2007-12-22T07:12:11Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>how to get Esx host ip from guest</title>
      <link>http://communities.vmware.com/docs/DOC-2412</link>
      <description>Is it possible to get the ESX 3.0 Host ip from within the Guest  OS?</description>
      <pubDate>Thu, 20 Dec 2007 13:02:29 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2412</guid>
      <dc:date>2007-12-20T13:02:29Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>ESX Backup Script</title>
      <link>http://communities.vmware.com/docs/DOC-2400</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I've created for our own purposes a hot backup script for ESX servers. features are:&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Skip VMs with their names stored in a external file&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Configuration:&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Create a file on your Backup storage with names of VMs which should not be backupped automatically. You can later specify this file at backup time, the named VMs will be skipped&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Usage: Log onto the console of the ESX host and run "ESXBackup" without parameters. Some informations will be displayed.&lt;br /&gt;
&lt;br /&gt;
To backup a single VM use this command: "ESXBackup -v VMNAME"&lt;br /&gt;
To backup all powered on VMs use that: "ESXBackup -v poweredon"&lt;br /&gt;
&lt;br /&gt;
You may want to use ESXBackup in your crontab, be sure to modify roots crontab "crontab -e -u root" ...&lt;br /&gt;
&lt;br /&gt;
Known bugs and issues:&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Be aware that VM-Names are CASE-sensitiv. If you use the exludelist, write one VM's name per line without spaces and tabs.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Planned enhancements:&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Retry backup if one VM fails&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Note: This script is "at is it" - no warranty or other features. Feature request are welcome. This was my first "more-than-a-three-liner" shell script, so many improvements can be made.&lt;br /&gt;
If you find this script useful (or not) please let me know ...&lt;br /&gt;
&lt;br /&gt;
Have fun,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;ESX Backup script&lt;/li&gt;
&lt;/ol&gt;
#&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Version 0.1c&lt;/li&gt;
&lt;/ol&gt;
#&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;eMail: vmware&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=_at_"&gt;&lt;u&gt;at&lt;/u&gt;&lt;/a&gt;vmpro.de&lt;/li&gt;
&lt;/ol&gt;
#&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;functions ###############################################################&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
function LogOut() {&lt;br /&gt;
echo "$(date '+%b %d %H:%M:%S'): $2" | tee -a $1 &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;definitions #############################################################&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
ESX_backupdir=/vmfs/volumes/ESXBackup&lt;br /&gt;
ESX_logfile=/var/log/ESXBackup.log&lt;br /&gt;
ESX_user=ESXBackup&lt;br /&gt;
ESX_pass=Password&lt;br /&gt;
ESX_host=$HOSTNAME&lt;br /&gt;
ESX_mailfrom=ESX-Admins\@domain.org&lt;br /&gt;
ESX_sendmail=/usr/bin/sendmail.pl&lt;br /&gt;
ESX_mailhost=mail.domain.de&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;code ####################################################################&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
echo "ESXBackup V0.1c - ESX host backup script"&lt;br /&gt;
echo ""&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;if no parameters are spedified, print usage hints and exit&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if ; then&lt;br /&gt;
cat &amp;lt;&amp;lt; EOF&lt;br /&gt;
Usage: ESXBackup    -v &amp;lt;VMName&amp;gt;|any|poweredon&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-t+%26lt%3Bage%26gt%3B+"&gt; -t &amp;lt;age&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-m+%26lt%3Bmailto%26gt%3B+"&gt; -m &amp;lt;mailto&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-x+%26lt%3Bexcludefile%26gt%3B+"&gt; -x &amp;lt;excludefile&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
-v &amp;lt;VMName&amp;gt;:  Name of VM to be saved regardless of powerstate.&lt;br /&gt;
any:       All VMs registered on this ESX host are saved.&lt;br /&gt;
poweredon: All VM which are powered on are saved.&lt;br /&gt;
-t &amp;lt;age&amp;gt;:     All backup folders older than &amp;lt;age&amp;gt; days are&lt;br /&gt;
purged from the backup location folder after&lt;br /&gt;
backup was successful. &amp;lt;age&amp;gt; must be numeric.&lt;br /&gt;
-m &amp;lt;mailto&amp;gt;:  Send backup notification for each single VM&lt;br /&gt;
to this given smtp address.&lt;br /&gt;
-x &amp;lt;file&amp;gt;:    File with virtual machine names to be excluded&lt;br /&gt;
from backup.&lt;br /&gt;
EOF&lt;br /&gt;
exit 0&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;get command line parameters&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
while getopts v:t:m:x: Optionen; do&lt;br /&gt;
case $Optionen in&lt;br /&gt;
v) ESX_VM=$OPTARG;;&lt;br /&gt;
t) ESX_purge=$OPTARG;;&lt;br /&gt;
m) ESX_mailto=$OPTARG;;&lt;br /&gt;
x) ESX_exclude=$OPTARG;;&lt;br /&gt;
esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test parameters&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+%24ESX_VM+"&gt; ! $ESX_VM &lt;/a&gt;; then&lt;br /&gt;
echo "You have to define at least a VM to be backed up. Exiting."&lt;br /&gt;
echo ""&lt;br /&gt;
exit 2&lt;br /&gt;
fi &lt;br /&gt;
&lt;br /&gt;
if ; then&lt;br /&gt;
ESX_search="any:"&lt;br /&gt;
elif ; then&lt;br /&gt;
ESX_search="powerstate:on"&lt;br /&gt;
else&lt;br /&gt;
ESX_search="name:$ESX_VM"&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test if purge parameter is positiv numeric&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_purge+"&gt; $ESX_purge &lt;/a&gt;; then&lt;br /&gt;
echo $ESX_purge | egrep '&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Aalpha%3A"&gt;:alpha:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Acntrl%3A"&gt;:cntrl:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Agraph%3A"&gt;:graph:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Apunct%3A"&gt;:punct:&lt;/a&gt;' -q&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%3D+0+"&gt; $RetVal = 0 &lt;/a&gt;; then&lt;br /&gt;
echo "Purge parameter (-t) must be a numeric value."&lt;br /&gt;
exit 3&lt;br /&gt;
fi&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_purge+-lt+1+"&gt; $ESX_purge -lt 1 &lt;/a&gt;; then&lt;br /&gt;
echo "Purge parameter (-t) must be greater than 1"&lt;br /&gt;
exit 3&lt;br /&gt;
fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ESX_summaryfile="/var/tmp/$(date '+%Y%m%d-%H%M')"&lt;br /&gt;
&lt;br /&gt;
LogOut $ESX_logfile "Script ESXBackup started."&lt;br /&gt;
echo "Backup summary for ESX host $ESX_host:" &amp;gt; $ESX_summaryfile&lt;br /&gt;
echo "" &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;br /&gt;
ESX_failed=0&lt;br /&gt;
ESX_success=0&lt;br /&gt;
ESX_skipped=0&lt;br /&gt;
&lt;br /&gt;
for ESX_VMS in `/usr/sbin/vcbVmName -h $ESX_host -u $ESX_user -p $ESX_pass -s $ESX_search | grep -i name: | awk -F: '{print $2}'`&lt;br /&gt;
do&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;skip server if its name is in the exclude list&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
RetVal=""&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_exclude+"&gt; $ESX_exclude &lt;/a&gt;; then&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-e+%24ESX_exclude+"&gt; -e $ESX_exclude &lt;/a&gt;; then&lt;br /&gt;
RetVal=`grep -i -x $ESX_VMS $ESX_exclude`&lt;br /&gt;
fi&lt;br /&gt;
fi  &lt;br /&gt;
&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%3D+%24ESX_VMS+"&gt; $RetVal = $ESX_VMS &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "  Skipped $ESX_VMS."&lt;br /&gt;
echo "    SKIPPED virtual machine $ESX_VMS." &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
ESX_skipped=$(($ESX_skipped+1))&lt;br /&gt;
else&lt;br /&gt;
LogOut $ESX_logfile "  Init backup of $ESX_VMS"&lt;br /&gt;
&lt;br /&gt;
ESX_vmfolder="$ESX_backupdir/$ESX_VMS"&lt;br /&gt;
ESX_date=$(date '+%Y%m%d-%H%M')&lt;br /&gt;
ESX_backupfolder="$ESX_backupdir/$ESX_VMS/$ESX_date"&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;create folder for backup&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
LogOut $ESX_logfile "    Creating folder $ESX_vmfolder"&lt;br /&gt;
mkdir -p $ESX_vmfolder&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%21%3D+0+"&gt; $RetVal != 0 &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "    Error creating folder: $Retval"&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;start backup - destination folder should not exist&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
LogOut $ESX_logfile "    Backing up to folder $ESX_backupfolder"&lt;br /&gt;
START=$(date +%s);&lt;br /&gt;
ESX_vcb=`/usr/sbin/vcbMounter -h $ESX_host -u $ESX_user -p $ESX_pass -a name:$ESX_VMS -r $ESX_backupfolder -t fullvm`&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
END=$(date +%s);&lt;br /&gt;
DIFF=$(($END - $START));&lt;br /&gt;
&lt;br /&gt;
echo "$ESX_vcb" &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
echo "" &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test whether backup was successfull&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%21%3D+0+"&gt; $RetVal != 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;br /&gt;
LogOut $ESX_logfile "    Backup error: $RetVal"&lt;br /&gt;
echo "Backup time needed: $DIFF seconds." &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
echo "*** ERROR backing up $ESX_VMS. Error code was $RetVal" &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
echo "    Please refer to the logfile stored on $ESX_vmfolder/$ESX_date.log" &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
ESX_failed=$(($ESX_failed+1))&lt;br /&gt;
&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_mailto+"&gt; $ESX_mailto &lt;/a&gt;; then&lt;br /&gt;
perl $ESX_sendmail $ESX_mailhost $ESX_mailfrom $ESX_mailto Backup\ failed:\ $ESX_VMS $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
fi  &lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
&lt;br /&gt;
ESX_hddused=`du $ESX_backupfolder -b | awk -F\  '{print $1}'`&lt;br /&gt;
ESX_throughput=$((($ESX_hddused/(1024*1024))/$DIFF))&lt;br /&gt;
LogOut $ESX_logfile "    Backup of $ESX_VMS successfull. Saved $ESX_hddused bytes."&lt;br /&gt;
echo "Backed up $ESX_hddused bytes within $DIFF seconds. Throughput was $ESX_throughput MB/second." &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
echo "    SUCCESS backing up $ESX_VMS. It took $DIFF seconds to back up $ESX_hddused bytes ($ESX_throughput MB/s)." &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
ESX_success=$(($ESX_success+1))&lt;br /&gt;
&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_purge+"&gt; $ESX_purge &lt;/a&gt;; then&lt;br /&gt;
&lt;br /&gt;
LogOut $ESX_logfile "    Purging content older than $ESX_purge days."&lt;br /&gt;
find $ESX_vmfolder/* -maxdepth 0 -type d -mtime +$ESX_purge -exec rm -rfdv {} \;&lt;br /&gt;
find $ESX_vmfolder/* -maxdepth 0 -type f -mtime +$ESX_purge -exec rm -fv {} \;&lt;br /&gt;
&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_mailto+"&gt; $ESX_mailto &lt;/a&gt;; then&lt;br /&gt;
perl $ESX_sendmail $ESX_mailhost $ESX_mailfrom $ESX_mailto Backup\ succeeded:\ $ESX_VMS $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
LogOut $ESX_logfile "  Done backup of $ESX_VMS"&lt;br /&gt;
&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_mailto+"&gt; $ESX_mailto &lt;/a&gt;; then&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_VMS+"&gt; $ESX_VMS &lt;/a&gt;; then&lt;br /&gt;
perl $ESX_sendmail $ESX_mailhost $ESX_mailfrom $ESX_mailto Backup\ summary\ $ESX_host:\ $ESX_failed\ failed,\ $ESX_success\ successful,\ $ESX_skipped\ skipped. $ESX_summaryfile&lt;br /&gt;
fi  &lt;br /&gt;
rm $ESX_summaryfile&lt;br /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;no host was detected by the given name&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+%24ESX_VMS+"&gt; ! $ESX_VMS &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "  Unable to detect any host to be backed up."&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
LogOut $ESX_logfile "Script ESXBackup stopped."&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
use Net::SMTP;&lt;br /&gt;
&lt;br /&gt;
die ("Usage: sendmail.pl &amp;lt;smtpserver&amp;gt; &amp;lt;from&amp;gt; &amp;lt;to&amp;gt; &amp;lt;subject&amp;gt; &amp;lt;msgfilename&amp;gt;") if ($#ARGV != 4);&lt;br /&gt;
&lt;br /&gt;
$smtpserver =  $ARGV[0];&lt;br /&gt;
$sender =      $ARGV[1];&lt;br /&gt;
$recipient =   $ARGV[2];&lt;br /&gt;
$subject =     $ARGV[3];&lt;br /&gt;
$msgfilename = $ARGV[4];&lt;br /&gt;
&lt;br /&gt;
$smtp = Net::SMTP-&amp;gt;new($smtpserver);&lt;br /&gt;
$smtp-&amp;gt;mail($sender);&lt;br /&gt;
$smtp-&amp;gt;to($recipient);&lt;br /&gt;
$smtp-&amp;gt;data();&lt;br /&gt;
$smtp-&amp;gt;datasend("Subject: $subject\n");&lt;br /&gt;
$smtp-&amp;gt;datasend("To: $recipient\n");&lt;br /&gt;
$smtp-&amp;gt;datasend("\n");&lt;br /&gt;
&lt;br /&gt;
open (MESSAGE, $msgfilename) || die "cannot open message file $msgfilename.";&lt;br /&gt;
@nachricht=&amp;lt;MESSAGE&amp;gt;;&lt;br /&gt;
close MESSAGE;&lt;br /&gt;
&lt;br /&gt;
foreach $zeile (@nachricht) {&lt;br /&gt;
$smtp-&amp;gt;datasend("$zeile");&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$smtp-&amp;gt;dataend();&lt;br /&gt;
$smtp-&amp;gt;quit;&lt;br /&gt;
&lt;hr /&gt;
Hem... Alex, am I missing something or the location of your script is not stated in your post ? I'm really interested in it &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; !&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Antonello&lt;br /&gt;
&lt;br /&gt;
Message was edited by: &lt;br /&gt;
Nementis&lt;br /&gt;
Oops... posting lag....&lt;br /&gt;
&lt;hr /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
took some time to format them &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;&lt;br /&gt;
Terribly the script is a little bit "mis-formatted", but soon, I'll maintain it on my own website - maybe I've got enough time during christmas holiday &lt;b&gt;g&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi, I'm really interested in this script. What is the URL of your website?&lt;br /&gt;
&lt;hr /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
my web site takes a little extra time to come online - and additionally I'll update my script to include the following features:&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;Extra error handling for incomplete vcbMounter activities (such as removement of left snapshots after backup has failed).&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
The job should be done next week, then I'll post the new version here (now I know how to post code *g*).&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi there,&lt;br /&gt;
&lt;br /&gt;
this is a new version of my backup script. Installation is as easy as it was before with the older script. It's tested with ESX 3.0.1&lt;br /&gt;
&lt;br /&gt;
Improvements:&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;retry failed backups&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
I'm interested if anybody uses my script, &lt;b&gt;so please provide me with information/experiences and/or simply write me a private message.&lt;/b&gt; If nobody uses this script, there's no need to publish it ...&lt;br /&gt;
&lt;br /&gt;
And once again: I provide no warranty at all ... you know what I mean. But it's tested - it should do the job &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":-)" /&gt;&lt;br /&gt;
&lt;br /&gt;
Here it goes:&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
#!/bin/bash&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
#&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;ESX Backup script&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
#&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;11. Jan 2007&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Version 0.1f&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
#&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Alexander Storf&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
#&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;changelog:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;From Version 0.1d&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Jan 08 2007: Delete &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot after backup failed&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Jan 08 2007: Implemented switch to use locking for simultaneous backups&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;From Version 0.1e&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Jan 10 2007: Implemented optional retry if backup fails&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
#############################################################################&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;function for logging output (screen and file)&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Parameters: &amp;lt;displaytext&amp;gt; &amp;lt;filename&amp;gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
function LogOut() {&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "$(date '+%b %d %H:%M:%S'): $2" | tee -a $1 &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
}&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;function to delete a &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot from a virtual machine&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Parameters: &amp;lt;vmname&amp;gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
function DelSnapshot() {&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
VM_ID=`vcbVmName -h $ESX_host -u $ESX_user -p $ESX_pass -s Name:$1 | grep -i moref`&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
SS_ID=`vcbSnapshot -h $ESX_host -u $ESX_user -p $ESX_pass -f $VM_ID &lt;u&gt;VCB-BACKUP&lt;/u&gt; | grep -i ssid`&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if ; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
SS_Result=`vcbSnapshot -h $ESX_host -u $ESX_user -p $ESX_pass -d $VM_ID $SS_ID`&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
return $RetVal&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
else&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
return 1&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
}&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;definitions #############################################################&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Directory where to store the backups:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_backupdir=/vmfs/volumes/ESXBackup&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Filename of backup logfiles:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_logfile=/var/log/ESXBackup.log&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Backup user name (on ESX host):&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_user=ESXUsername&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;Password of the backup user:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_pass=EsxUserPassword&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;own hostname (got from environment), not to be changed:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_host=$HOSTNAME&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;eMail notification senders address:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_mailfrom=backup\@somedomain.com&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;location of the sendmail script:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_sendmail=/usr/bin/sendmail.pl&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;smarthost for mail delivery:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_smtphost="mail.somedomain.com"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;location of the locking file:&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_lockfile=/vmfs/volumes/ESXBackup/ESXBackup.lck&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;code ####################################################################&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "ESXBackup V0.1f - ESX host backup script"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo ""&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;if no parameters are spedified, print usage hints and exit&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
if ; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
cat &amp;lt;&amp;lt; EOF&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
Usage: ESXBackup    -v &amp;lt;VMName&amp;gt;|any|poweredon&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-t+%26lt%3Bage%26gt%3B+"&gt; -t &amp;lt;age&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-m+%26lt%3Bmailto%26gt%3B+"&gt; -m &amp;lt;mailto&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-x+%26lt%3Bexcludefile%26gt%3B+"&gt; -x &amp;lt;excludefile&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-l+"&gt; -l &lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-r+%26lt%3Bcount%26gt%3B+"&gt; -r &amp;lt;count&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
-v &amp;lt;VMName&amp;gt;:  Name of VM to be saved regardless of powerstate.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
any:       All VMs registered on this ESX host are saved.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
poweredon: All VM which are powered on are saved.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
-t &amp;lt;age&amp;gt;:     All backup folders older than &amp;lt;age&amp;gt; days are&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
purged from the backup location folder after&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
backup was successful. &amp;lt;age&amp;gt; must be numeric.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
-m &amp;lt;mailto&amp;gt;:  Send backup notification for each single VM&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
to this given smtp address.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
-x &amp;lt;file&amp;gt;:    File with virtual machine names to be excluded&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
from backup.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
-l :          Use locking mechanism to ensure only one backup&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
is running at the same time. The locking file&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
has to be specified inside the script.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
-r &amp;lt;count&amp;gt;:   Retries a failed backup &amp;lt;count&amp;gt; times. Be aware that&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
backup time could significantly raise using this&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
parameter.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
EOF&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
exit 0&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;get command line parameters&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
while getopts v:t:m:x:r:l Optionen; do&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
case $Optionen in&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
v) ESX_VM=$OPTARG;;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
t) ESX_purge=$OPTARG;;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
m) ESX_mailto=$OPTARG;;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
x) ESX_exclude=$OPTARG;;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
l) ESX_lock=TRUE;;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
r) ESX_retry=$OPTARG;;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
esac&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
done&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test parameters&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+%24ESX_VM+"&gt; ! $ESX_VM &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "You have to define at least a VM to be backed up. Exiting."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo ""&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
exit 2&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if ; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_search="any:"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
elif ; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_search="powerstate:on"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
else&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_search="name:$ESX_VM"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_singlevm=TRUE&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test if purge parameter is positiv numeric&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+-z+%24ESX_purge+"&gt; ! -z $ESX_purge &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo $ESX_purge | egrep '&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Aalpha%3A"&gt;:alpha:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Acntrl%3A"&gt;:cntrl:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Agraph%3A"&gt;:graph:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Apunct%3A"&gt;:punct:&lt;/a&gt;' -q&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%3D%3D+0+"&gt; $RetVal == 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "Invalid value for purge (-t) parameter."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
exit 3&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_purge=$(expr $ESX_purge)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_purge+-le+0+"&gt; $ESX_purge -le 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "Purge parameter must be positive numeric."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
exit 3&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test if retry parameter is positiv numeric&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+-z+%24ESX_retry+"&gt; ! -z $ESX_retry &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo $ESX_retry | egrep '&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Aalpha%3A"&gt;:alpha:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Acntrl%3A"&gt;:cntrl:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Agraph%3A"&gt;:graph:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Apunct%3A"&gt;:punct:&lt;/a&gt;' -q&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%3D%3D+0+"&gt; $RetVal == 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "Invalid value for retry (-r) parameter."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
exit 3&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_retry=$(expr $ESX_retry)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_retry+-lt+0+"&gt; $ESX_retry -lt 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "Retry parameter must be positive numeric."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
exit 3&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
else&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;if its not definied in commandline, assume 0 retries&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
ESX_retry=0&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;temporary file to store backup messages for the complete ESX host&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_summaryfile="/var/tmp/$(date '+%Y%m%d-%H%M')"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "Script ESXBackup started."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "Backup summary for ESX host $ESX_host:" &amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "" &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_failed=0&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_success=0&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_skipped=0&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;loop through all VMs which fit within the search criteria&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
for ESX_VMS in `/usr/sbin/vcbVmName -h $ESX_host -u $ESX_user -p $ESX_pass -s $ESX_search | grep -i name: | awk -F: '{print $2}'`&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
do&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;skip server if its name is in the exclude list&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
RetVal=""&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_exclude+"&gt; $ESX_exclude &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-e+%24ESX_exclude+"&gt; -e $ESX_exclude &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RetVal=`grep -i -x $ESX_VMS $ESX_exclude`&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if ; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "  Skipped $ESX_VMS."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "    SKIPPED virtual machine $ESX_VMS." &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_skipped=$(($ESX_skipped+1))&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
else&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "  Init backup of $ESX_VMS"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Handle locking mechanism&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_lock+"&gt; $ESX_lock &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
while &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-e+%24ESX_lockfile+"&gt; -e $ESX_lockfile &lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
do&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_vmlocked=`cat $ESX_lockfile`&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Backup locking active ($ESX_vmlocked). Waiting 60s ..."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
sleep 60&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
done&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;create locking file and write VM and hostname into it&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
touch $ESX_lockfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "$ESX_VMS on server $ESX_host" &amp;gt; $ESX_lockfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Setting lock on $ESX_host for $ESX_VMS"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_vmfolder="$ESX_backupdir/$ESX_VMS"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_date=$(date '+%Y%m%d-%H%M')&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_backupfolder="$ESX_backupdir/$ESX_VMS/$ESX_date"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;create folder for backup&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Creating folder $ESX_vmfolder"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
mkdir -p $ESX_vmfolder&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%21%3D+0+"&gt; $RetVal != 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Error creating folder: $Retval"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;start backup - destination folder should not exist&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Backing up to folder $ESX_backupfolder"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
START=$(date +%s);&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RetryCount=0&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
Success=FALSE&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ToRetry=TRUE&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
while &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ToRetry+%3D%3D+TRUE+"&gt; $ToRetry == TRUE &lt;/a&gt;;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
do&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetryCount+-gt+0+"&gt; $RetryCount -gt 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Now retrying backup (loop $RetryCount out of $ESX_retry) ..."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "Now retrying backup (loop $RetryCount out of $ESX_retry) ..." &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_vcb=`/usr/sbin/vcbMounter -h $ESX_host -u $ESX_user -p $ESX_pass -a name:$ESX_VMS -r $ESX_backupfolder -t fullvm`&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "$ESX_vcb" &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "" &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test whether backup was successfull&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%21%3D+0+"&gt; $RetVal != 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Backup was not successful&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Backup error: $RetVal"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "    ERROR backing up $ESX_VMS. Error code was $RetVal" &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Try to rename folder of unsuccessful backup&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;If we retry the backup, the folder must not exist&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-d+%24ESX_backupfolder+"&gt; -d $ESX_backupfolder &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Renaming Backupfolder to $ESX_backupfolder.$RetryCount"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
mv $ESX_backupfolder $ESX_backupfolder.$RetryCount&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
else&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    $ESX_backupfolder does not exist, so no renaming needed"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Sometimes if backup fails the snapshot still resided - now delete it:&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
DelSnapshot $ESX_VMS&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%3D%3D+0+"&gt; $RetVal == 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Deleted &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "    Remaining &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot successfully deleted." &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "Remaining &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot successfully deleted." &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
else&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Backup has been successful&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
END=$(date +%s);&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
DIFF=$(($END - $START));&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Determine space on backup folder used and calculate the throughput&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
ESX_hddused=`du $ESX_backupfolder -b | awk -F\  '{print $1}'`&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_throughput=$((($ESX_hddused/(1024*1024))/$DIFF))&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Backup of $ESX_VMS successfull. Saved $ESX_hddused bytes."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "Backed up $ESX_hddused bytes within $DIFF seconds. Throughput was $ESX_throughput MB/second." &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "    SUCCESS backing up $ESX_VMS. It took $DIFF seconds to back up $ESX_hddused bytes ($ESX_throughput MB/s)." &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_success=$(($ESX_success+1))&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Delete old backups if purging was specified&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_purge+"&gt; $ESX_purge &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Purging content older than $ESX_purge days."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
find $ESX_vmfolder/* -maxdepth 0 -type d -mtime +$ESX_purge -exec rm -rfdv {} \;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
find $ESX_vmfolder/* -maxdepth 0 -type f -mtime +$ESX_purge -exec rm -fv {} \;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Send success eMail&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_mailto+"&gt; $ESX_mailto &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
perl $ESX_sendmail $ESX_smtphost $ESX_mailfrom $ESX_mailto Backup\ succeeded:\ $ESX_VMS\ on\ $ESX_host $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Break to while loop&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
Success=TRUE&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ToRetry=FALSE&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Increment the number of retries and determine if a retry should be made&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
RetryCount=$(($RetryCount+1))&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetryCount+-gt+%24ESX_retry+"&gt; $RetryCount -gt $ESX_retry &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ToRetry=FALSE&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
done&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;If backup unsuccessful, increment the failed counter and send an email&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24Success+%3D%3D+FALSE+"&gt; $Success == FALSE &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    *** Backup of $ESX_VMS finally failed!"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
echo "*** Backup of $ESX_VMS finally failed!" &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
ESX_failed=$(($ESX_failed+1))&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_mailto+"&gt; $ESX_mailto &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
perl $ESX_sendmail $ESX_smtphost $ESX_mailfrom $ESX_mailto Backup\ failed:\ $ESX_VMS\ on\ $ESX_host $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Backup is done for this VM, so release the lockfile&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_lock+"&gt; $ESX_lock &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Release lockfile&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
rm $ESX_lockfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "    Locking released on $ESX_host for $ESX_VMS"&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "  Done backup of $ESX_VMS"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Sleep some time if not only a single vm has to be backed up to give other&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;ESX hosts the chance to start their backup in the 30 second pause&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+%24ESX_singlevm+"&gt; ! $ESX_singlevm &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
sleep 30&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
done&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;At last send the summary mail of the complete ESX host&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_mailto+"&gt; $ESX_mailto &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_VMS+"&gt; $ESX_VMS &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
perl $ESX_sendmail $ESX_smtphost $ESX_mailfrom $ESX_mailto Backup\ summary\ $ESX_host:\ $ESX_failed\ failed,\ $ESX_success\ successful,\ $ESX_skipped\ skipped. $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;remove the summary file&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-e+%24ESX_summaryfile+"&gt; -e $ESX_summaryfile &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
rm $ESX_summaryfile&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;no host was detected by the given name&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;p /&gt;
&lt;p /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+%24ESX_VMS+"&gt; ! $ESX_VMS &lt;/a&gt;; then&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "  Unable to detect any host to be backed up."&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
fi&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
LogOut $ESX_logfile "Script ESXBackup stopped."&lt;br /&gt;
&lt;p /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;esxcfg-firewall -o 25,tcp,out,SMTP[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;esxcfg-firewall -o 25,tcp,out,SMTP[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;esxcfg-firewall -o 25,tcp,out,SMTP[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;esxcfg-firewall -o 25,tcp,out,SMTP[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;esxcfg-firewall -o 25,tcp,out,SMTP[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;esxcfg-firewall -o 25,tcp,out,SMTP[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;esxcfg-firewall -o 25,tcp,out,SMTP[/code]&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Hi kapplah,&lt;br /&gt;
&lt;br /&gt;
i test your script today and it works fine but i found an failure.&lt;br /&gt;
&lt;br /&gt;
it the name of an host have a space in the name the script crash.&lt;br /&gt;
&lt;br /&gt;
Can you fix it ?&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hallo Alex,&lt;br /&gt;
&lt;br /&gt;
(wow - it's funny to speak to myself as my first name is alex, too &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt; &lt;br /&gt;
&lt;br /&gt;
yes, this was untested as we don't use spaces in our virtual machine name intentionally.&lt;br /&gt;
&lt;br /&gt;
Tomorrow I'll test and begin to modify the script.&lt;br /&gt;
&lt;br /&gt;
Thanks for your reply,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
unfortunately it's not as easy as I thought, because I use the VM's name under several conditions:&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;sending a mail &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
We always recommend using printable 7bit ascii characters for the VM name. Is it possible to simply rename the VM?&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi Alex!&lt;br /&gt;
&lt;br /&gt;
Great script. Thank you!&lt;br /&gt;
&lt;br /&gt;
Probably i'm the only one who encountered this problem...&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;loop through all VMs which fit within the search criteria&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
for ESX_VMS in `/usr/sbin/vcbVmName -h $ESX_host -u $ESX_user -p $ESX_pass -s $ESX_search | grep -i name: | awk -F: '{print $2}'`&lt;br /&gt;
&lt;br /&gt;
After searching for VMs the script always reported, that it was unable to find any VMs.&lt;br /&gt;
&lt;br /&gt;
I did then the following:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;loop through all VMs which fit within the search criteria&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
/usr/sbin/vcbVmName -h $ESX_host -u $ESX_user -p $ESX_pass -s $ESX_search | grep -i name: | awk -F: '{print $2}' &amp;gt; /tmp/.ESX_VMs&lt;br /&gt;
for ESX_VMS in `cat /tmp/.ESX_VMs`&lt;br /&gt;
&lt;br /&gt;
I know - it's really not a big difference...&lt;br /&gt;
But like this the script works like a charm!&lt;br /&gt;
&lt;br /&gt;
Roland&lt;br /&gt;
&lt;hr /&gt;
Hi Roland,&lt;br /&gt;
&lt;br /&gt;
please post the statement which you have called the script. What was the content of your temporary file?&lt;br /&gt;
&lt;br /&gt;
Can you give me the output of the vcbVmName when called with your hostz settings, Username, password and search string? The search string itself may be 'any:' or 'powerstate:on' or 'name:VMNAME' (where VMNAME is the name of the single VM you wanted top backup) depending on your commandline call.&lt;br /&gt;
&lt;br /&gt;
cu,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi Alex&lt;br /&gt;
&lt;br /&gt;
I did the following:&lt;br /&gt;
&lt;br /&gt;
ESXBackup -v poweredon&lt;br /&gt;
&lt;br /&gt;
After a bit debugging, I figured out that the variable $ESX_VMS was always empty (with your original version).&lt;br /&gt;
&lt;br /&gt;
I made the changes I posted above, then my temporary file had the correct content - all names of VMs which where powered on at the moment.&lt;br /&gt;
&lt;br /&gt;
If I called the vcbVmName (copy / paste the command from the script and changed the necessary variables) the command worked fine.&lt;br /&gt;
&lt;br /&gt;
Another issue - the sendmail.pl script gives me the following error:&lt;br /&gt;
&lt;br /&gt;
&lt;strike&gt;root@vi3h02 /&lt;/strike&gt;# perl /usr/bin/sendmail.pl relay.host.com backup\@address.com recipient@address.com test /var/log/ESXBackup.log&lt;br /&gt;
Can't call method "mail" on an undefined value at /usr/bin/sendmail.pl line 12.&lt;br /&gt;
&lt;br /&gt;
Do you have an idea what's going wrong there?&lt;br /&gt;
&lt;br /&gt;
CU, Roland&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
very fast response &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;&lt;br /&gt;
&lt;br /&gt;
For sending mail you have to configure your firewall ontop the ESX server to allow outgoing SMTP. It should be something like that:&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;esxcfg-firewall -o 25,tcp,out,SMTP[/code]&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Ooops, my mistake....&lt;br /&gt;
&lt;br /&gt;
Thx, regards&lt;br /&gt;
&lt;br /&gt;
Roland&lt;br /&gt;
&lt;hr /&gt;
So far I am very impressed with your script, there is just one thing missing. Any chance you can have the snapshot deleted if a Vmotion occurrs during a VM backup? I have had several VM's fail backups because DRS vmotions them while being backed up.&lt;br /&gt;
&lt;hr /&gt;
Hi there, I am not a genius with linux but I have a quick questions:&lt;br /&gt;
&lt;br /&gt;
I have managed to edit the backupscript so now instead of taking VMNAME its looking for UUID (My machine all have like IT: Test (ast)  - test ) So I have spaces special caracters and everything. But Once I modified this now it works fine, actually I have added also a file called host.lst who defined every uuid and a friendly name to create directory, if not found on host.lst then the script will not backup this machine. (Almost work as the exclusion one)&lt;br /&gt;
&lt;br /&gt;
But anyway, here is my question:&lt;br /&gt;
I need to be sending mail using this script but I need to be able to specify the port, and the authentication. I have tried looking on the new but I can't seem to be able to modify the sendmail.pl to use another port (2525) and authenticate to the mail server.&lt;br /&gt;
&lt;br /&gt;
Thanks for all your help. Btw the script is awesome.&lt;br /&gt;
&lt;br /&gt;
Have a great day!&lt;br /&gt;
&lt;br /&gt;
Message was edited by: &lt;br /&gt;
nface&lt;br /&gt;
&lt;hr /&gt;
Any ideas? I know what this error means... but how do you install the perl package? Is there an rpm?&lt;br /&gt;
&lt;br /&gt;
&lt;strike&gt;root@dali bin&lt;/strike&gt;# ./sendmail.pl&lt;br /&gt;
Can't locate Net/DNS.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at ./sendmail.pl line 7.&lt;br /&gt;
BEGIN failed--compilation aborted at ./sendmail.pl line 7.&lt;br /&gt;
&lt;hr /&gt;
Hi Steve,&lt;br /&gt;
&lt;br /&gt;
the script doesn't detect whether a vmotion occurs. If the backup fails, the script SHOULD delete the created &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot. &lt;br /&gt;
&lt;br /&gt;
But there is a little work to do for me to get this procedure REALLY fully functional (under some conditions when backup fails, the following calls for vcbVmName and vcbSnapshot don't return results ...).&lt;br /&gt;
&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
I'm neither a expert on perl nor on Unix ... &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt; The perl script was completely stolen from any other webpage to do the simplest possible job: Sending SMTP mail. The possibilites on the COS are very limited and I don't want to install any other software on it.&lt;br /&gt;
&lt;br /&gt;
Maybe here's a PERL expert in this forum who can answer the question.&lt;br /&gt;
&lt;br /&gt;
@renski:&lt;br /&gt;
&lt;br /&gt;
The sendmail.pl script works for me without installing any 3rd party perl modules or something else. It should work out-of-the box, don't know where your problem is located.&lt;br /&gt;
Did you have made any changes (scripting enhacements or something else)? I cannot find a DNS.pm on my ESX server.&lt;br /&gt;
What is the size of your SMTP.pm file inside /usr/lib/perl5/5.8.0/Net/ ? Maybe anything has modified it's contents ...&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi Alex,&lt;br /&gt;
I figured out how to make your script vmotion aware. If you point the vcbMounter commands and the vcbSnapshot commands to your VC server instead of the local host, the backup will complete even if the VM is vmotioned while being backed up. A host will even backup a VM that was vmotioned an hour earlier and it resides on a different host. &lt;br /&gt;
&lt;br /&gt;
The vcbVmName command still needs to point to the localhost since it should only backup the VMs that reside on it at the beginning of the backup loop. This has worked for me so far if I run all of my host backups at the same time.&lt;br /&gt;
&lt;br /&gt;
Message was edited by: &lt;br /&gt;
steve.higgins&lt;br /&gt;
&lt;hr /&gt;
Hi Steve,&lt;br /&gt;
&lt;br /&gt;
thanks for your hints. Some days ago I've tested the scenario to make backups via the VC server - and as you've said, this doesn't work.&lt;br /&gt;
&lt;br /&gt;
I'll try to implement your improvements and put the new script online here when it's done.&lt;br /&gt;
&lt;br /&gt;
I would have to fix some problems with removing snapshots after failed backups (most times when backup fails it fails without any visible reasons - maybe console memory is too low or something else - and then I've got problems deleting the snapshot)&lt;br /&gt;
&lt;br /&gt;
cu,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
I think I found the reason why the vcbVmName and vcbSnapshot scripts don't return results when called sometimes. Whenever I run the script manually to test, they work flawlessly. As soon as I run the ESXBackup script as a cron job they fail. What I did to make it work was add the full path to the "vcb" commands and they will be called successfully. The cron jobs do not search the /usr/sbin directory thus not calling the "vcb" scripts without specifying the full path.&lt;br /&gt;
&lt;hr /&gt;
I have had the script working for about 2 weeks now fully VMotion aware, snapshots deleting automatically whenever failures do occur. This is the miracle script that I've been looking for. Thank you!&lt;br /&gt;
&lt;hr /&gt;
Hey  kapplah, thanks for the script!   Where do you plan on posting updates?  Do you have a website?&lt;br /&gt;
&lt;hr /&gt;
Hi Steve,&lt;br /&gt;
&lt;br /&gt;
please be so kind to post your enhanced script so I can include changes into mine and post the modified script?&lt;br /&gt;
&lt;br /&gt;
And thanks for the term "miracle script" - I like it :-))&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Sure, here is the modified script. I took all of the emailing functions out and a few other small modifications, but it works perfect for what we need to do in our organization.&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;ESX Backup script&lt;/li&gt;
&lt;/ol&gt;
#&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Version 0.1f&lt;/li&gt;
&lt;/ol&gt;
#&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Alexander Storf&lt;/li&gt;
&lt;/ol&gt;
#&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Jan 10 2007: Implemented optional retry if backup fails&lt;/li&gt;
&lt;/ol&gt;
#############################################################################&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Parameters: &amp;lt;displaytext&amp;gt; &amp;lt;filename&amp;gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
function LogOut() {&lt;br /&gt;
echo "$(date '+%b %d %H:%M:%S'): $2" | tee -a $1 &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Parameters: &amp;lt;vmname&amp;gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
function DelSnapshot() {&lt;br /&gt;
VM_ID=`/usr/sbin/vcbVmName -h ict0vc01 -u vcbadmin -p ***** -s Name:$1 | grep -i moref`&lt;br /&gt;
SS_ID=`/usr/sbin/vcbSnapshot -h ict0vc01 -u vcbadmin -p ***** -f $VM_ID &lt;u&gt;VCB-BACKUP&lt;/u&gt; | grep -i ssid`&lt;br /&gt;
if ; then&lt;br /&gt;
SS_Result=`/usr/sbin/vcbSnapshot -h ict0vc01 -u vcbadmin -p ***** -d $VM_ID $SS_ID`&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
return $RetVal&lt;br /&gt;
else&lt;br /&gt;
return 1&lt;br /&gt;
fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;definitions #############################################################&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Directory where to store the backups:&lt;/li&gt;
&lt;/ol&gt;
ESX_backupdir=/vmfs/volumes/ict0esx01-local-backups/backups&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Filename of backup logfiles:&lt;/li&gt;
&lt;/ol&gt;
ESX_logfile=/var/log/ESXBackup.log&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Backup user name (on ESX host):&lt;/li&gt;
&lt;/ol&gt;
ESX_user=root&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Password of the backup user:&lt;/li&gt;
&lt;/ol&gt;
ESX_pass=*****&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;own hostname (got from environment), not to be changed:&lt;/li&gt;
&lt;/ol&gt;
ESX_host=$HOSTNAME&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;location of the locking file:&lt;/li&gt;
&lt;/ol&gt;
ESX_lockfile=/vmfs/volumes/ICT0SAN07_LUN100/ESXBackup.lck&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;code ####################################################################&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
echo "ESXBackup V0.1f - ESX host backup script"&lt;br /&gt;
echo ""&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;if no parameters are spedified, print usage hints and exit&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if ; then&lt;br /&gt;
cat &amp;lt;&amp;lt; EOF&lt;br /&gt;
Usage: ESXBackup    -v &amp;lt;VMName&amp;gt;|any|poweredon&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-t+%26lt%3Bage%26gt%3B+"&gt; -t &amp;lt;age&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-x+%26lt%3Bexcludefile%26gt%3B+"&gt; -x &amp;lt;excludefile&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-l+"&gt; -l &lt;/a&gt;&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-r+%26lt%3Bcount%26gt%3B+"&gt; -r &amp;lt;count&amp;gt; &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
-v &amp;lt;VMName&amp;gt;:  Name of VM to be saved regardless of powerstate.&lt;br /&gt;
any:       All VMs registered on this ESX host are saved.&lt;br /&gt;
poweredon: All VM which are powered on are saved.&lt;br /&gt;
-t &amp;lt;age&amp;gt;:     All backup folders older than &amp;lt;age&amp;gt; minutes are&lt;br /&gt;
purged from the backup location folder after&lt;br /&gt;
backup was successful. &amp;lt;age&amp;gt; must be numeric.&lt;br /&gt;
-x &amp;lt;file&amp;gt;:    File with virtual machine names to be excluded&lt;br /&gt;
from backup.&lt;br /&gt;
-l :          Use locking mechanism to ensure only one backup&lt;br /&gt;
is running at the same time. The locking file&lt;br /&gt;
has to be specified inside the script.&lt;br /&gt;
-r &amp;lt;count&amp;gt;:   Retries a failed backup &amp;lt;count&amp;gt; times. Be aware that&lt;br /&gt;
backup time could significantly raise using this&lt;br /&gt;
parameter.&lt;br /&gt;
EOF&lt;br /&gt;
exit 0&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;get command line parameters&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
while getopts v:t:m:x:r:l Optionen; do&lt;br /&gt;
case $Optionen in&lt;br /&gt;
v) ESX_VM=$OPTARG;;&lt;br /&gt;
t) ESX_purge=$OPTARG;;&lt;br /&gt;
x) ESX_exclude=$OPTARG;;&lt;br /&gt;
l) ESX_lock=TRUE;;&lt;br /&gt;
r) ESX_retry=$OPTARG;;&lt;br /&gt;
esac&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test parameters&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+%24ESX_VM+"&gt; ! $ESX_VM &lt;/a&gt;; then&lt;br /&gt;
echo "You have to define at least a VM to be backed up. Exiting."&lt;br /&gt;
echo ""&lt;br /&gt;
exit 2&lt;br /&gt;
fi &lt;br /&gt;
&lt;br /&gt;
if ; then&lt;br /&gt;
ESX_search="any:"&lt;br /&gt;
elif ; then&lt;br /&gt;
ESX_search="powerstate:on"&lt;br /&gt;
else&lt;br /&gt;
ESX_search="name:$ESX_VM"&lt;br /&gt;
ESX_singlevm=TRUE&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test if purge parameter is positiv numeric&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+-z+%24ESX_purge+"&gt; ! -z $ESX_purge &lt;/a&gt;; then&lt;br /&gt;
echo $ESX_purge | egrep '&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Aalpha%3A"&gt;:alpha:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Acntrl%3A"&gt;:cntrl:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Agraph%3A"&gt;:graph:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Apunct%3A"&gt;:punct:&lt;/a&gt;' -q&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%3D%3D+0+"&gt; $RetVal == 0 &lt;/a&gt;; then&lt;br /&gt;
echo "Invalid value for purge (-t) parameter."&lt;br /&gt;
exit 3&lt;br /&gt;
fi&lt;br /&gt;
ESX_purge=$(expr $ESX_purge)&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_purge+-le+0+"&gt; $ESX_purge -le 0 &lt;/a&gt;; then&lt;br /&gt;
echo "Purge parameter must be positive numeric."&lt;br /&gt;
exit 3&lt;br /&gt;
fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test if retry parameter is positiv numeric&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+-z+%24ESX_retry+"&gt; ! -z $ESX_retry &lt;/a&gt;; then&lt;br /&gt;
echo $ESX_retry | egrep '&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Aalpha%3A"&gt;:alpha:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Acntrl%3A"&gt;:cntrl:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Agraph%3A"&gt;:graph:&lt;/a&gt;|&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%3Apunct%3A"&gt;:punct:&lt;/a&gt;' -q&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%3D%3D+0+"&gt; $RetVal == 0 &lt;/a&gt;; then&lt;br /&gt;
echo "Invalid value for retry (-r) parameter."&lt;br /&gt;
exit 3&lt;br /&gt;
fi&lt;br /&gt;
ESX_retry=$(expr $ESX_retry)&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_retry+-lt+0+"&gt; $ESX_retry -lt 0 &lt;/a&gt;; then&lt;br /&gt;
echo "Retry parameter must be positive numeric."&lt;br /&gt;
exit 3&lt;br /&gt;
fi&lt;br /&gt;
else&lt;br /&gt;
&lt;p /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;if its not definied in commandline, assume 0 retries&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
ESX_retry=0&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;temporary file to store backup messages for the complete ESX host&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
ESX_summaryfile="/var/tmp/$(date '+%Y%m%d-%H%M')"&lt;br /&gt;
&lt;br /&gt;
LogOut $ESX_logfile "Script ESXBackup started."&lt;br /&gt;
echo "Backup summary for ESX host $ESX_host:" &amp;gt; $ESX_summaryfile&lt;br /&gt;
echo "" &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;br /&gt;
ESX_failed=0&lt;br /&gt;
ESX_success=0&lt;br /&gt;
ESX_skipped=0&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;loop through all VMs which fit within the search criteria&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
for ESX_VMS in `/usr/sbin/vcbVmName -h $ESX_host -u $ESX_user -p $ESX_pass -s $ESX_search | grep -i name: | awk -F: '{print $2}'`&lt;br /&gt;
do&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;skip server if its name is in the exclude list&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
RetVal=""&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_exclude+"&gt; $ESX_exclude &lt;/a&gt;; then&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-e+%24ESX_exclude+"&gt; -e $ESX_exclude &lt;/a&gt;; then&lt;br /&gt;
RetVal=`grep -i -x $ESX_VMS $ESX_exclude`&lt;br /&gt;
fi&lt;br /&gt;
fi  &lt;br /&gt;
&lt;br /&gt;
if ; then&lt;br /&gt;
LogOut $ESX_logfile "  Skipped $ESX_VMS."&lt;br /&gt;
echo "    SKIPPED virtual machine $ESX_VMS." &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
ESX_skipped=$(($ESX_skipped+1))&lt;br /&gt;
else&lt;br /&gt;
LogOut $ESX_logfile "  Init backup of $ESX_VMS"&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Handle locking mechanism&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_lock+"&gt; $ESX_lock &lt;/a&gt;; then&lt;br /&gt;
while &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-e+%24ESX_lockfile+"&gt; -e $ESX_lockfile &lt;/a&gt;&lt;br /&gt;
do&lt;br /&gt;
ESX_vmlocked=`cat $ESX_lockfile`&lt;br /&gt;
LogOut $ESX_logfile "    Backup locking active ($ESX_vmlocked). Waiting 60s ..."&lt;br /&gt;
sleep 60&lt;br /&gt;
done&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;create locking file and write VM and hostname into it&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
touch $ESX_lockfile&lt;br /&gt;
echo "$ESX_VMS on server $ESX_host" &amp;gt; $ESX_lockfile&lt;br /&gt;
LogOut $ESX_logfile "    Setting lock on $ESX_host for $ESX_VMS"&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ESX_vmfolder="$ESX_backupdir/$ESX_VMS"&lt;br /&gt;
ESX_date=$(date '+%Y%m%d-%H%M')&lt;br /&gt;
ESX_backupfolder="$ESX_backupdir/$ESX_VMS/$ESX_date"&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;create folder for backup&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
LogOut $ESX_logfile "    Creating folder $ESX_vmfolder"&lt;br /&gt;
mkdir -p $ESX_vmfolder&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%21%3D+0+"&gt; $RetVal != 0 &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "    Error creating folder: $Retval"&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;start backup - destination folder should not exist&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
LogOut $ESX_logfile "    Backing up to folder $ESX_backupfolder"&lt;br /&gt;
START=$(date +%s);&lt;br /&gt;
&lt;br /&gt;
RetryCount=0&lt;br /&gt;
Success=FALSE&lt;br /&gt;
ToRetry=TRUE&lt;br /&gt;
&lt;br /&gt;
while &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ToRetry+%3D%3D+TRUE+"&gt; $ToRetry == TRUE &lt;/a&gt;;&lt;br /&gt;
do&lt;br /&gt;
&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetryCount+-gt+0+"&gt; $RetryCount -gt 0 &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "    Now retrying backup (loop $RetryCount out of $ESX_retry) ..."&lt;br /&gt;
echo "Now retrying backup (loop $RetryCount out of $ESX_retry) ..." &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ESX_vcb=`/usr/sbin/vcbMounter -h ict0vc01 -u vcbadmin -p ***** -a name:$ESX_VMS -r $ESX_backupfolder -t fullvm`&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
&lt;br /&gt;
echo "$ESX_vcb" &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
echo "" &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;test whether backup was successfull&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%21%3D+0+"&gt; $RetVal != 0 &lt;/a&gt;; then&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Backup was not successful&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
LogOut $ESX_logfile "    Backup error: $RetVal"&lt;br /&gt;
echo "    ERROR backing up $ESX_VMS. Error code was $RetVal" &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Try to rename folder of unsuccessful backup&lt;/li&gt;
&lt;li&gt;If we retry the backup, the folder must not exist&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-d+%24ESX_backupfolder+"&gt; -d $ESX_backupfolder &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "    Renaming Backupfolder to $ESX_backupfolder.$RetryCount"&lt;br /&gt;
mv $ESX_backupfolder $ESX_backupfolder.$RetryCount&lt;br /&gt;
else&lt;br /&gt;
LogOut $ESX_logfile "    $ESX_backupfolder does not exist, so no renaming needed"&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Sometimes if backup fails the snapshot still resided - now delete it:&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
DelSnapshot $ESX_VMS&lt;br /&gt;
RetVal=$(expr $?)&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetVal+%3D%3D+0+"&gt; $RetVal == 0 &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "    Deleted &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot."&lt;br /&gt;
echo "    Remaining &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot successfully deleted." &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
echo "Remaining &lt;u&gt;VCB-BACKUP&lt;/u&gt; snapshot successfully deleted." &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Backup has been successful&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
END=$(date +%s);&lt;br /&gt;
DIFF=$(($END - $START));&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Determine space on backup folder used and calculate the throughput&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
ESX_hddused=`du $ESX_backupfolder -b | awk -F\  '{print $1}'`&lt;br /&gt;
ESX_throughput=$((($ESX_hddused/(1024*1024))/$DIFF))&lt;br /&gt;
LogOut $ESX_logfile "    Backup of $ESX_VMS successfull. Saved $ESX_hddused bytes."&lt;br /&gt;
echo "Backed up $ESX_hddused bytes within $DIFF seconds. Throughput was $ESX_throughput MB/second." &amp;gt;&amp;gt; $ESX_vmfolder/$ESX_date.log&lt;br /&gt;
echo "    SUCCESS backing up $ESX_VMS. It took $DIFF seconds to back up $ESX_hddused bytes ($ESX_throughput MB/s)." &amp;gt;&amp;gt; $ESX_summaryfile&lt;br /&gt;
ESX_success=$(($ESX_success+1))&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Delete old backups if purging was specified&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_purge+"&gt; $ESX_purge &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "    Purging content older than $ESX_purge minutes."&lt;br /&gt;
find $ESX_vmfolder/* -maxdepth 0 -type d -mmin +$ESX_purge -exec rm -rfdv {} \;&lt;br /&gt;
find $ESX_vmfolder/* -maxdepth 0 -type f -mmin +$ESX_purge -exec rm -fv {} \;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Break to while loop&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
Success=TRUE&lt;br /&gt;
ToRetry=FALSE&lt;br /&gt;
&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Increment the number of retries and determine if a retry should be made&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
RetryCount=$(($RetryCount+1))&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24RetryCount+-gt+%24ESX_retry+"&gt; $RetryCount -gt $ESX_retry &lt;/a&gt;; then&lt;br /&gt;
ToRetry=FALSE&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Backup is done for this VM, so release the lockfile&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_lock+"&gt; $ESX_lock &lt;/a&gt;; then&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Release lockfile&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
rm $ESX_lockfile&lt;br /&gt;
LogOut $ESX_logfile "    Locking released on $ESX_host for $ESX_VMS"&lt;br /&gt;
fi &lt;br /&gt;
&lt;br /&gt;
LogOut $ESX_logfile "  Done backup of $ESX_VMS"&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Sleep some time if not only a single vm has to be backed up to give other&lt;/li&gt;
&lt;li&gt;ESX hosts the chance to start their backup in the 30 second pause&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+%24ESX_singlevm+"&gt; ! $ESX_singlevm &lt;/a&gt;; then&lt;br /&gt;
sleep 30&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;remove the summary file&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+-e+%24ESX_summaryfile+"&gt; -e $ESX_summaryfile &lt;/a&gt;; then&lt;br /&gt;
rm $ESX_summaryfile&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;no host was detected by the given name&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%21+%24ESX_VMS+"&gt; ! $ESX_VMS &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "  Unable to detect any host to be backed up."&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;

&lt;ol&gt;

&lt;ol&gt;
&lt;li&gt;Delete ALL old backups if purging was specified (5 days)&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=+%24ESX_purge+"&gt; $ESX_purge &lt;/a&gt;; then&lt;br /&gt;
LogOut $ESX_logfile "    Purging content older than $ESX_purge days."&lt;br /&gt;
find $ESX_backupdir/* -maxdepth 0 -type d -mtime +$ESX_purge -exec rm -rfdv {} \;&lt;br /&gt;
find $ESX_backupdir/* -maxdepth 0 -type f -mtime +$ESX_purge -exec rm -fv {} \;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
LogOut $ESX_logfile "Script ESXBackup stopped."&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Hi, is it possible to store the backup on a NTFS share ?&lt;br /&gt;
&lt;hr /&gt;
Hi zemotard,&lt;br /&gt;
&lt;br /&gt;
everything is possible. The only thing you have to do is to mount the share to each ESX host and pass the mount point to the script.&lt;br /&gt;
&lt;br /&gt;
But there are several prerequisits to achieve this: Open the firewall port for SMB, maybe to start the portmapper and then finally to make a smbmount (I don't know if smbmount is supported by ESX hosts OS).&lt;br /&gt;
&lt;br /&gt;
I decided to use a NFS mount, because it's supported by the VI Interface directly and the directories are automatically (most times). Additionally you don't have to workaround firewall settings or something else.&lt;br /&gt;
&lt;br /&gt;
cu,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
I did set this script up and it worked so far. I want to use it to backup vms on a san to nfs. &lt;br /&gt;
&lt;br /&gt;
Now I've got the snapshot-files on my nfs - allright.&lt;br /&gt;
&lt;br /&gt;
What would be the right way to bring this vm up again if the san dies?&lt;br /&gt;
&lt;br /&gt;
I couldn't find any option in the vc to "import" snapshots as vms. I couldn't find the snaphot in the Snapshot-Manager either.&lt;br /&gt;
&lt;br /&gt;
Where am I thinking wrong?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
Carsten&lt;br /&gt;
&lt;hr /&gt;
The actual backup of the VM is not a snapshot. Snapshots are used to get a hot backup of the VM. You will not be able to restore or revert to a snapshot once the VM has been backed up. (You can restore the entire backed up VM)&lt;br /&gt;
&lt;br /&gt;
What you would do is a vmkfstools import or export of the backup files to put them in the correct format so that they can be powered on again by an ESX host if your SAN happened to fail.&lt;br /&gt;
&lt;br /&gt;
Message was edited by: &lt;br /&gt;
steve.higgins&lt;br /&gt;
&lt;hr /&gt;
Hello,&lt;br /&gt;
&lt;br /&gt;
What version of sendmail are you using?  Where can I download it?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
/guser&lt;br /&gt;
&lt;hr /&gt;
You might be interested in this thread, as a way not to put the password in the script:&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/community/thread.jspa?threadID=50424&amp;#38;start=0&amp;#38;tstart=0"&gt;http://www.vmware.com/community/thread.jspa?threadID=50424&amp;#38;start=0&amp;#38;tstart=0&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;
Hi&lt;br /&gt;
&lt;br /&gt;
Sorry to bring this topic up again so late on. I do apologise as i'm very new to VMWare and Linux.&lt;br /&gt;
&lt;br /&gt;
I am trying to get this script to backup to a mounted disk on a Windows 2003 box. I can access this through ESX and create directories etc&lt;br /&gt;
&lt;br /&gt;
The VM's I am trying to backup all sit on a dl380 with 6 drives, we have no SAN&lt;br /&gt;
&lt;br /&gt;
This is a proof of concept environment.&lt;br /&gt;
&lt;br /&gt;
I am using ESX 3.0 with no patches&lt;br /&gt;
&lt;br /&gt;
These are my definitions:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Directory where to store the backups:&lt;/li&gt;
&lt;/ol&gt;
ESX_backupdir=/mnt/backup/ESX&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;location of the locking file:&lt;/li&gt;
&lt;/ol&gt;
ESX_lockfile=/mnt/backup/ESX/ESXBackup.lck&lt;br /&gt;
&lt;br /&gt;
The command line i run is:&lt;br /&gt;
bash esxbackup -v any&lt;br /&gt;
&lt;br /&gt;
And the output is:&lt;br /&gt;
ESXBackup V0.1f - ESX host backup script&lt;br /&gt;
&lt;br /&gt;
Apr 12 13:01:13: Script ESXBackup started.&lt;br /&gt;
Apr 12 13:01:16:   Init backup of Harrow&lt;br /&gt;
Apr 12 13:01:16:     Creating folder /mnt/backup/ESX/Harrow&lt;br /&gt;
Apr 12 13:01:16:     Backing up to folder /mnt/backup/ESX/Harrow/20070412-1301&lt;br /&gt;
Apr 12 13:01:18:     Backup error: 1&lt;br /&gt;
Apr 12 13:01:18:     /mnt/backup/ESX/Harrow/20070412-1301 does not exist, so no renaming needed&lt;br /&gt;
VMware Consolidated Backup -- Snapshot Utility, Version 1.0&lt;br /&gt;
(C) 2005, VMware, Inc. All rights reserved.&lt;br /&gt;
Usage:&lt;br /&gt;
vcbSnapshot -h &amp;lt;url&amp;gt; -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%26lt%3Bverbosity%26gt%3B"&gt;&amp;lt;verbosity&amp;gt;&lt;/a&gt; &amp;lt;command&amp;gt;&lt;br /&gt;
&amp;lt;url&amp;gt;     := &amp;lt;hostname&amp;gt;&lt;br /&gt;
&amp;lt;command&amp;gt; := &amp;lt;create&amp;gt;|&amp;lt;find&amp;gt;|&amp;lt;list&amp;gt;|&amp;lt;delete&amp;gt;&lt;br /&gt;
&amp;lt;verbosity&amp;gt; := -L (0-6)&lt;br /&gt;
&amp;lt;create&amp;gt;  := -c &amp;lt;VmId&amp;gt; &amp;lt;SnapshotName&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=%26lt%3BDescription%26gt%3B"&gt;&amp;lt;Description&amp;gt;&lt;/a&gt;&lt;br /&gt;
&amp;lt;find&amp;gt;    := -f &amp;lt;VmId&amp;gt; &amp;lt;SnapshotName&amp;gt;&lt;br /&gt;
&amp;lt;list&amp;gt;    := -l &amp;lt;VmId&amp;gt; &amp;lt;SsId&amp;gt;&lt;br /&gt;
&amp;lt;delete&amp;gt;  := -d &amp;lt;VmId&amp;gt; &amp;lt;SsId&amp;gt;&lt;br /&gt;
&amp;lt;VmId&amp;gt;    := "moref:"&amp;lt;Sdk-MoRef&amp;gt;&lt;br /&gt;
&amp;lt;SsId&amp;gt;    := "ssid:"&amp;lt;Sdk-MoRef&amp;gt;&lt;br /&gt;
Apr 12 13:01:20:     *** Backup of Harrow finally failed!&lt;br /&gt;
Apr 12 13:01:20:   Done backup of Harrow&lt;br /&gt;
&lt;br /&gt;
The ESX directory on the backup device is a USB drive plugged into a Win2K3 server.&lt;br /&gt;
&lt;br /&gt;
I'm a bit unsure about the lock file. Maybe this is the problem?&lt;br /&gt;
&lt;br /&gt;
Any help would be much appreciated&lt;br /&gt;
&lt;br /&gt;
Julian&lt;br /&gt;
&lt;hr /&gt;
Love the script !&lt;br /&gt;
&lt;br /&gt;
How do i "restore" the backuped VM back to its original place ?&lt;br /&gt;
&lt;br /&gt;
Thnx&lt;br /&gt;
&lt;hr /&gt;
Hi kapplah,&lt;br /&gt;
&lt;br /&gt;
If you still have problems with hosts with space in the name try with &lt;b&gt;IFS=$'\n'&lt;/b&gt; in beginning of script and don't forget at end &lt;b&gt;unset IFS&lt;/b&gt;&lt;br /&gt;
This is for loop problem, because it split by default on space tab and newline&lt;br /&gt;
&lt;hr /&gt;
Using the script I only want to make snapshots of all the vm servers on the host without backup and then delete them once I have patched them for example. Is there a modified version of this script for this only??&lt;br /&gt;
&lt;hr /&gt;
Hi c0de1,&lt;br /&gt;
&lt;br /&gt;
sorry answering that late ...&lt;br /&gt;
&lt;br /&gt;
To restore a backed up VM you simplay have to run the vcbRestore Command within the COS.&lt;br /&gt;
&lt;br /&gt;
The syntax should be like that:&lt;br /&gt;
&lt;br /&gt;
vcbRestore -h name.of.the.esxhost -u username -p password -s /vmfs/volumes/ESXBackup/NameOfVM/date_subdir&lt;br /&gt;
&lt;br /&gt;
You have to pass the ESXs hostname, the user and password of the Backup Account (you have installed for running ESXBackup) and the location of the backup.&lt;br /&gt;
&lt;br /&gt;
BTW: You can alway reach me by email, so this decreases response time dramatically :-))&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Hi dobyrne,&lt;br /&gt;
&lt;br /&gt;
that cannot be done with my script with minor modifications - but it can be done with a script. You have to loop through all VMs on this ESX host and create a snaphot on it (vmware-cmd will do this job). Second you have to delete these snaphsots ... sounds easy &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;&lt;br /&gt;
&lt;br /&gt;
If I have enough time maybe I'll make a proof of concept.&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Dobyme,&lt;br /&gt;
&lt;br /&gt;
I haven't used myself but VMSnapper (&lt;a class="jive-link-external" href="http://www.virtualizeplanet.com/content/index.php?option=com_content&amp;#38;task=view&amp;#38;id=26&amp;#38;Itemid=44"&gt;http://www.virtualizeplanet.com/content/index.php?option=com_content&amp;#38;task=view&amp;#38;id=26&amp;#38;Itemid=44&lt;/a&gt;) sounds like it'll do what you want. Not as a script, but at least a single operation.&lt;br /&gt;
&lt;hr /&gt;
Of course you could also try the V.I.S.B.U script written by mittell of these forums - you can get that one from here&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.xtravirt.com/index.php?option=com_remository&amp;#38;Itemid=75&amp;#38;func=fileinfo&amp;#38;id=7"&gt;http://www.xtravirt.com/index.php?option=com_remository&amp;#38;Itemid=75&amp;#38;func=fileinfo&amp;#38;id=7&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
and read the many many messages here&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/community/thread.jspa?messageID=653056&amp;#38;tstart=0"&gt;http://www.vmware.com/community/thread.jspa?messageID=653056&amp;#38;tstart=0&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
it's actively developed and we use it in house with great success&lt;br /&gt;
&lt;hr /&gt;
Hi all,&lt;br /&gt;
&lt;br /&gt;
I just make this script running, but with root account. If i test with an other, i got error. Sounds like normal as this user shouldn't have enough permission to do so.&lt;br /&gt;
My question is a general linux like : What kind of access i have to give to my backup account ? I would like to give strictly minimum to it to work ...&lt;br /&gt;
&lt;br /&gt;
I got an other question, about the restore :&lt;br /&gt;
I didn't understand the last post speacking about, The snapshot i had copying to my NFS is sufficient to restore or i have to first copy my .vmdk (virtual box off) and after make snapshot copy ?!&lt;br /&gt;
&lt;br /&gt;
Thanks a lot for your response.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
The Backup Account has to be created on each ESX host locally and must have Administrative Privileges on each host via VC GUI.&lt;br /&gt;
&lt;br /&gt;
cu,&lt;br /&gt;
Alex&lt;br /&gt;
&lt;hr /&gt;
Can you shed some more light on creating the ESXBackup account and granted it Admin Priveledges?&lt;br /&gt;
&lt;br /&gt;
When you say "Locally" I would assume you mean create a new user "ESXBackup" via linux on the host, then give them permissions via VC?&lt;br /&gt;
&lt;br /&gt;
I don't see where you can change local users via VC, only add domain users...&lt;br /&gt;
&lt;br /&gt;
Can you just step through this process?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;
&lt;hr /&gt;
an0malist,&lt;br /&gt;
&lt;br /&gt;
You can create a local user on each ESX server by pointing the VI client at the individual host rather than the VC server.  (You'll probably have to connect as root.)&lt;br /&gt;
&lt;br /&gt;
Click on the Users &amp;#38; Groups tab in the right-hand pane, then right-click and select "Add..." from the context menu that pops up.&lt;br /&gt;
&lt;br /&gt;
HTH,&lt;br /&gt;
&lt;br /&gt;
Ted&lt;br /&gt;
&lt;hr /&gt;
Hey, thanks for the quick reply!!  That was easier than what I was thinking... I was about to add the user in the linux environment.  I didnt even know you could connect to individual servers... nice!&lt;br /&gt;
&lt;br /&gt;
I'm running into a problem though... here's what I get when I run the script:&lt;br /&gt;
&lt;br /&gt;
&lt;strike&gt;esxbackup@VMESX01 bin&lt;/strike&gt;# ./ESXBackup -v JMHOptio01&lt;br /&gt;
ESXBackup V0.1c - ESX host backup script&lt;br /&gt;
&lt;br /&gt;
Sep 14 18:16:59: Script ESXBackup started.&lt;br /&gt;
./ESXBackup: line 153: syntax error near unexpected token `newline'&lt;br /&gt;
./ESXBackup: line 153: `echo "*** ERROR backing up $ESX_VMS. Error code was $RetVal" &amp;gt;&amp;gt; '&lt;br /&gt;
&lt;strike&gt;esxbackup@VMESX01 bin&lt;/strike&gt;#&lt;br /&gt;
&lt;br /&gt;
any ideas?&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/65687"&gt;ESX Backup Script&lt;/a&gt;</description>
      <pubDate>Tue, 18 Dec 2007 11:58:18 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2400</guid>
      <dc:date>2007-12-18T11:58:18Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>VI3 V3.5 Release Details</title>
      <link>http://communities.vmware.com/docs/DOC-2365</link>
      <description>&lt;h4&gt;VMware ESX Server 3.5&lt;/h3&gt;
&lt;p&gt;Latest Version: 3.5&amp;nbsp;|&amp;nbsp;12/10/2007 | Build: 64607&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.vmware.com/support/vi3/doc/vi3_esx35_vc25_rel_notes.html" target="_top"&gt;Release Notes&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;VMware VirtualCenter 2.5&lt;/h3&gt;
&lt;p&gt;Latest Version: 2.5&amp;nbsp;|&amp;nbsp;12/10/2007 | Build: 64201&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.vmware.com/support/vi3/doc/vi3_esx35_vc25_rel_notes.html" target="_top"&gt;Release Notes&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;VMware Consolidated Backup 1.1&lt;/h3&gt;
&lt;p&gt;Latest Version: 1.1&amp;nbsp;|&amp;nbsp;12/10/2007 | Build: 64559&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.vmware.com/support/vi3/doc/vi3_esx35_vc25_rel_notes.html" target="_top"&gt;Release Notes&lt;/a&gt;&lt;/p&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=2411">update_mgr</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">guided_config</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">storage_vmotion</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">dpm</category>
      <pubDate>Tue, 11 Dec 2007 01:45:38 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2365</guid>
      <dc:date>2007-12-11T01:45:38Z</dc:date>
      <clearspace:dateToText>1 year, 11 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>How to Stop a VM that is not responding AND How to Release files that give device or resource busy</title>
      <link>http://communities.vmware.com/docs/DOC-2290</link>
      <description />
      <category domain="http://communities.vmware.com/tags?communityID=2411">vmfs</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">storage</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vmware-cmd</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vmkfstools</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vm-support</category>
      <category domain="http://communities.vmware.com/tags?communityID=2411">vmkload_app</category>
      <pubDate>Fri, 30 Nov 2007 22:20:21 GMT</pubDate>
      <author>rreynol@indiana.edu</author>
      <guid>http://communities.vmware.com/docs/DOC-2290</guid>
      <dc:date>2007-11-30T22:20:21Z</dc:date>
      <clearspace:dateToText>1 year, 12 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Move a VM from one ESX3 server to another ESX3 server</title>
      <link>http://communities.vmware.com/docs/DOC-2271</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I have an ESX3 server with local storage. I need to move a VM to another ESX3 server and I would like to know the best way to do this. &lt;br /&gt;
&lt;br /&gt;
I have copied the VM to a Windows server using FastSCP. Should I just copy it to the datastore of the other ESX3 server?&lt;br /&gt;
&lt;br /&gt;
Any help would be really appreciated.&lt;br /&gt;
&lt;hr /&gt;
The "normal" procedure is to export the disk using vmkfstools, copy it to the new host and import it there (using vmkfstools)&lt;br /&gt;
&lt;hr /&gt;
&lt;div class="jive-quote"&gt;Hello,&lt;br /&gt;
&lt;p /&gt;
I have an ESX3 server with local storage. I need to&lt;br /&gt;
move a VM to another ESX3 server and I would like to&lt;br /&gt;
know the best way to do this. &lt;br /&gt;
&lt;p /&gt;
I have copied the VM to a Windows server using&lt;br /&gt;
FastSCP. Should I just copy it to the datastore of&lt;br /&gt;
the other ESX3 server?&lt;br /&gt;
&lt;p /&gt;
Any help would be really appreciated.&lt;/div&gt;
Yes, you could just SCP it over to the new host.   Then browse the datastore, right click the vmx file, and choose register.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
When copying to and from an ESX host it's best to run vmkfstools -i /path/to/src/src.vmdk -d 2gbsparse /path/to/dest/dest.vmdk  , then copy those files to Windows and then to a temporary space on ESX.  Then run vmkfstools -i to import the file again.&lt;br /&gt;
&lt;br /&gt;
If you want to keep your VM files in the same folder,  you'll want to create the VM on the destination ESX host first,  delete the hard drive from the VM, then copy the vmdk file to the VM's folder.  You can then edit the VM and add an existing vmdk file.&lt;br /&gt;
&lt;br /&gt;
VMware also has a free converter product that could handle the transfer for you.  www.vmware.com/converter&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmware.com/community/message.jspa?messageID=703580#703580"&gt;http://www.vmware.com/community/message.jspa?messageID=703580#703580&lt;/a&gt;&lt;br /&gt;
&lt;hr /&gt;
COpy it using FastSCP to the second ESX host, but then use "vmkfstools -i &amp;lt;source&amp;gt; &amp;lt;destination&amp;gt;" to import the VMDK to your VMFS volume. Using SCP/CP to place the VMDK on the VMFS volume can cause poor disk performance for the VM, vmfkstools properly allocates the space to prevent this.&lt;br /&gt;
&lt;hr /&gt;
Thanks for all the help.&lt;br /&gt;
&lt;hr /&gt;
Hi Mittell, I am interested in yr comment. Can you explain how a copy using vmkfstools differs from a SCP copy and why it affects performance to use the latter?&lt;br /&gt;
&lt;hr /&gt;
vmkfstools allocates all space at once and then copies the data, a "normal" copy (cp, scp, ...) allocates the space while copying.&lt;br /&gt;
This behavior can lead to VMDK fragmentation and therefore to poor disk performance.&lt;br /&gt;
&lt;hr /&gt;
Interesting, thanks for that. No more lazy Veam copies for me then! &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;hr /&gt;
we use vmbk.pl&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.vmts.net/vmbk.htm"&gt;http://www.vmts.net/vmbk.htm&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
clive&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.osde.info"&gt;http://www.osde.info&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Hello, ESX noob here. &lt;br /&gt;
&lt;br /&gt;
I've copied all of the files from an existing ESX server to another using FastSCP. Now when performing the import using the vmkfstools -i, which vmdk file am I running this against? The "name.vmdk" or the "name-flat.vmdk"? From reading other posts I know that the "-flat.vmdk" file is the virtual disk.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
nevermind. Found my answer. It's on the smaller "name.vmdk". &lt;br /&gt;
&lt;br /&gt;
However, when I attempt to run the vmkfstools -i on the file, I immediately get back an error message "Broken pipe". I've tried designating the paths directly to the files and I've tried running the command while in the directory where the vmdk file is located. Is there something I'm missing?&lt;br /&gt;
&lt;hr /&gt;
You'll specify the vmdk (and not the flat.vmdk).  Vmkfstools will take care of the flat.vmdk for you.&lt;br /&gt;
&lt;hr /&gt;
can you confirm if vmkfstools does or doesn't include delta / redo / snapshot file components ? &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
clive&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.osde.info"&gt;http://www.osde.info&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
How would I verify that these components are on the server? It's a new&lt;br /&gt;
install of ESX 3.0.2, 52542. &lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;
Andy&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;hr /&gt;
vmkfstools doesn't include snapshot files, so the source files should not have included any *delta.vmdk files.&lt;br /&gt;
&lt;hr /&gt;
There were no *delta.vmdk files in the directory. I've gone ahead and deleted the files that I had copied with FastSCP and am trying the VMware Converter to move the VM. Thanks for all of the assistance so far. Was under the gun and needed a fast solution.&lt;br /&gt;
&lt;br /&gt;
This document was generated from the following thread: &lt;a class="jive-link-thread" href="http://communities.vmware.com/thread/95022"&gt;Move a VM from one ESX3 server to another ESX3 server&lt;/a&gt;</description>
      <pubDate>Thu, 29 Nov 2007 18:41:13 GMT</pubDate>
      <guid>http://communities.vmware.com/docs/DOC-2271</guid>
      <dc:date>2007-11-29T18:41:13Z</dc:date>
      <clearspace:dateToText>1 year, 12 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Announcement: New (free) backup utility realease.</title>
      <link>http://communities.vmware.com/docs/DOC-2245</link>
      <description>Hello all,&lt;br /&gt;
&lt;br /&gt;
I've written a backup utility, it's currently still in 'beta' but I think I've worked out most of the bugs and it's been working very well for me, so I thought I'd share my work with the community. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
I'll be trying to update it fairly regularly, hot-clone of a VM or specific VMDK attached to a VM planned for next version.&lt;br /&gt;
&lt;br /&gt;
Please see the readme file here for some initial instructions: &lt;a class="jive-link-external" href="http://users.ox.ac.uk/~alexm/README"&gt;http://users.ox.ac.uk/~alexm/README&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You can download the utility here: &lt;br /&gt;
&lt;a class="jive-link-external" href="http://xtravirt.com/index.php?option=com_remository&amp;#38;Itemid=75&amp;#38;func=select&amp;#38;id=5"&gt;http://xtravirt.com/index.php?option=com_remository&amp;#38;Itemid=75&amp;#38;func=select&amp;#38;id=5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once you've extracted the archive, please read the README file in the directory created for instructions on using the utility.&lt;br /&gt;
&lt;br /&gt;
Any problems post them to this thread and I'll try and resolve them, I'll set up a proper website when I have the time.&lt;br /&gt;
&lt;br /&gt;
Alex&lt;br /&gt;
&lt;br /&gt;
p.s. Big thanks to acr for help with testing!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Added link to the latest release - 21st May 2007&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Message was edited by: &lt;br /&gt;
MR-T: Updated with link to Xtravirt site&lt;br /&gt;
&lt;p /&gt;
&lt;hr /&gt;
Thanks for taking the time to write this mittell. I'll definitely give it a whirl and throw you some feedback.&lt;br /&gt;
&lt;hr /&gt;
Sorry about not testing much, I've been traveling. Look for an email later week &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; And so far it works well !&lt;br /&gt;
&lt;hr /&gt;
Great Utility, used it... Love it..&lt;br /&gt;
&lt;br /&gt;
Thanks again Alex.. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;hr /&gt;
Like Kix, sorry I haven't had a chance to use this yet.&lt;br /&gt;
&lt;br /&gt;
Fingers crossed some lab time is round the corner.&lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;
&lt;hr /&gt;
Works like a charm...I backed up about 8 VMs using the script without any issues. Noticed that if we had an option to terminate scheduled backup process, it would have been great for me. I actually started process (scheduled) and then realized that I needed to terminate process. However, the script works great.&lt;br /&gt;
Thanks,&lt;br /&gt;
samkshah&lt;br /&gt;
&lt;hr /&gt;
Hmm that's an interesting point, perhaps the script should just check if there is already an instance running already, and if there is, refuse to run?&lt;br /&gt;
&lt;br /&gt;
I'm slightly nervous about automatically terminating processes from a menu option, although I could put it in fairly easily.&lt;br /&gt;
&lt;br /&gt;
If you need to terminate a backup job early for any reason you can do so as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;ps aux | grep vi-backup[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;kill &amp;lt;PID&amp;gt;[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;mkdir /mnt/backup[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "Disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;/path/to/backup/vmname/vmname.restore[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "Disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;service mgmt-vmware restart[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;/path/to/backup/vmname/vmname.restore[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;VMX Entry:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
backup.Disable = "X"&lt;br /&gt;
&lt;p /&gt;
Action:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
X= Manual - Only back this VM when running a manual backup.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
X= Disabled - Always exclude this VM from backup.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
----------------------------------------&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
VMX Entry:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
scsiY:Z.Backup = "disabled"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Action:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Always exclude this disk from backup.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h youresx.domain.com -u root -p password -s Any[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h youresx.domain.com -u root -p&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
password -s Any[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;## Config file created by vi-backup.pl 0.9 ## &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
hostname=abc-vcenter.abc.net&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
username=abc\administrator&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
password=abc123&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
searchspec=Name:SERVER3&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
exportpath=/vmfs/volumes/vi-backup/&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
2gbsparse=1&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
safemode=0&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
mailreport=1&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
mailserver=10.0.0.10&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
mailfrom=vi-backup@abc.net&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
mailto=hugo@abc.net&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
smb=0[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;We're running VMware ESX Server 3.0.1 build-44686&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
-------------------------------------------------&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Searching for target VMs....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
FATAL ERROR: No VMs found from specified search specification '"Name:SERVER3"'!&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Name searches are case sensitive, please check your VMs name.[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h abc-vcenter.abc.net -u administrator -p 'abc123' -s name:SERVER3[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;*****Virtual Infrastructure Scripted Backup Utility v0.9 by Alex Mittell*****&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
We're running VMware ESX Server 3.0.1 build-44686&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
-------------------------------------------------&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Searching for target VMs....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Locating VM files....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Processing config files....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
SERVER3 is not on a VMFS volume visible by this host!&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Target VMs from specified searchspec:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
SERVER3&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Snapshotting VM SERVER3....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
VM SERVER3 is set to be excluded from backup. No snapshot taken. Skipping VM.[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;mv 462e0dcf-cd25404e-f565-0016350603e7/yourvm.vmdk ./yourvm.vmdk[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;ls -d */[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
backup.Disable = "Manual"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;scsi0:6.present = "false"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
scsi0:6.fileName = "VMNAME-000001.vmdk"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
scsi0:6.deviceType = "scsi-hardDisk"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt; /etc/init.d/crond restart [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt; /etc/init.d/crond restart [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[root@host01 ~]# cat /usr/local/vi-backup/vi-backup-host02-guest02.cfg&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
## Config file created by vi-backup.pl 0.9.1 ##&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
hostname=host02.dom.loc&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
username=root&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
password=password&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
searchspec=Name:guest02&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
exportpath=/vmfs/volumes/host01.dom.loc-vms&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
2gbsparse=1&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
safemode=1&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
mailreport=1&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
mailserver=mail.dom.loc&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
mailfrom=backups@host01.dom.loc&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
mailto=it@dom.loc&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
smb=0&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[root@host01 ~]# cat /var/log/vi-backup.log&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:02: Script started.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:02: We're running VMware ESX Server 3.0.2 build-52542&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:02: Searching for target VMs....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:05: Locating VM files....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: Processing config files....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: guest02 is not on a VMFS volume visible by this host!&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: guest02 log file = /vmfs/volumes/host01.dom.loc-vms/guest02.log&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: Snapshotting VM guest02....&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: VM guest02 is set to be excluded from backup. No snapshot taken. Skipping VM.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: *** Script completed successfully. ***&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[root@host02 ~]# ls -l /vmfs/volumes/host02.dom.loc-vms/&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
drwxr-xr-x 1 root root 2.3K Aug 8 16:13 guest02&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;Update:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
The new version (0.9.1) is working fine when pointing to a VC server to perform the backups. You will now only need to install VISBU onto one ESX host and perform backups of VMs running on any other hosts without problems.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
To use VISBU in this way, you must use a domain account that is given Virtual Machine Power User permissions (minimal). Or give this user permissions to create and delete snapshots etc.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Great work Alex.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
-Hugo [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job1.cfg&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job2.cfg&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job3.cfg&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;kill &amp;lt;PID&amp;gt;[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;mkdir /mnt/backup[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "Disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;/path/to/backup/vmname/vmname.restore[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "Disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;service mgmt-vmware restart[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;/path/to/backup/vmname/vmname.restore[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;VMX Entry:&lt;br /&gt;
&lt;br /&gt;
backup.Disable = "X"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Action:&lt;br /&gt;
&lt;br /&gt;
X= Manual - Only back this VM when running a manual backup.&lt;br /&gt;
&lt;br /&gt;
X= Disabled - Always exclude this VM from backup.&lt;br /&gt;
&lt;br /&gt;
----------------------------------------&lt;br /&gt;
&lt;br /&gt;
VMX Entry:&lt;br /&gt;
&lt;br /&gt;
scsiY:Z.Backup = "disabled"&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Action:&lt;br /&gt;
&lt;br /&gt;
Always exclude this disk from backup.&lt;br /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h youresx.domain.com -u root -p password -s Any[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h youresx.domain.com -u root -p&lt;br /&gt;
&lt;br /&gt;
password -s Any[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;## Config file created by vi-backup.pl 0.9 ## &lt;br /&gt;
&lt;br /&gt;
hostname=abc-vcenter.abc.net&lt;br /&gt;
&lt;br /&gt;
username=abc\administrator&lt;br /&gt;
&lt;br /&gt;
password=abc123&lt;br /&gt;
&lt;br /&gt;
searchspec=Name:SERVER3&lt;br /&gt;
&lt;br /&gt;
exportpath=/vmfs/volumes/vi-backup/&lt;br /&gt;
&lt;br /&gt;
2gbsparse=1&lt;br /&gt;
&lt;br /&gt;
safemode=0&lt;br /&gt;
&lt;br /&gt;
mailreport=1&lt;br /&gt;
&lt;br /&gt;
mailserver=10.0.0.10&lt;br /&gt;
&lt;br /&gt;
mailfrom=vi-backup@abc.net&lt;br /&gt;
&lt;br /&gt;
mailto=hugo@abc.net&lt;br /&gt;
&lt;br /&gt;
smb=0[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;We're running VMware ESX Server 3.0.1 build-44686&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Searching for target VMs....&lt;br /&gt;
&lt;br /&gt;
FATAL ERROR: No VMs found from specified search specification '"Name:SERVER3"'!&lt;br /&gt;
&lt;br /&gt;
Name searches are case sensitive, please check your VMs name.[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h abc-vcenter.abc.net -u administrator -p 'abc123' -s name:SERVER3[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;*****Virtual Infrastructure Scripted Backup Utility v0.9 by Alex Mittell*****&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
We're running VMware ESX Server 3.0.1 build-44686&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Searching for target VMs....&lt;br /&gt;
&lt;br /&gt;
Locating VM files....&lt;br /&gt;
&lt;br /&gt;
Processing config files....&lt;br /&gt;
&lt;br /&gt;
SERVER3 is not on a VMFS volume visible by this host!&lt;br /&gt;
&lt;br /&gt;
Target VMs from specified searchspec:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
SERVER3&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Snapshotting VM SERVER3....&lt;br /&gt;
&lt;br /&gt;
VM SERVER3 is set to be excluded from backup. No snapshot taken. Skipping VM.[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;mv 462e0dcf-cd25404e-f565-0016350603e7/yourvm.vmdk ./yourvm.vmdk[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;ls -d */[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
backup.Disable = "Manual"&lt;br /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;scsi0:6.present = "false"&lt;br /&gt;
&lt;br /&gt;
scsi0:6.fileName = "VMNAME-000001.vmdk"&lt;br /&gt;
&lt;br /&gt;
scsi0:6.deviceType = "scsi-hardDisk"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt; /etc/init.d/crond restart [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt; /etc/init.d/crond restart [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
[root@host01 ~]# cat /usr/local/vi-backup/vi-backup-host02-guest02.cfg&lt;br /&gt;
&lt;br /&gt;
## Config file created by vi-backup.pl 0.9.1 ##&lt;br /&gt;
&lt;br /&gt;
hostname=host02.dom.loc&lt;br /&gt;
&lt;br /&gt;
username=root&lt;br /&gt;
&lt;br /&gt;
password=password&lt;br /&gt;
&lt;br /&gt;
searchspec=Name:guest02&lt;br /&gt;
&lt;br /&gt;
exportpath=/vmfs/volumes/host01.dom.loc-vms&lt;br /&gt;
&lt;br /&gt;
2gbsparse=1&lt;br /&gt;
&lt;br /&gt;
safemode=1&lt;br /&gt;
&lt;br /&gt;
mailreport=1&lt;br /&gt;
&lt;br /&gt;
mailserver=mail.dom.loc&lt;br /&gt;
&lt;br /&gt;
mailfrom=backups@host01.dom.loc&lt;br /&gt;
&lt;br /&gt;
mailto=it@dom.loc&lt;br /&gt;
&lt;br /&gt;
smb=0&lt;br /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
[root@host01 ~]# cat /var/log/vi-backup.log&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:02: Script started.&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:02: We're running VMware ESX Server 3.0.2 build-52542&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:02: Searching for target VMs....&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:05: Locating VM files....&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: Processing config files....&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: guest02 is not on a VMFS volume visible by this host!&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: guest02 log file = /vmfs/volumes/host01.dom.loc-vms/guest02.log&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: Snapshotting VM guest02....&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: VM guest02 is set to be excluded from backup. No snapshot taken. Skipping VM.&lt;br /&gt;
&lt;br /&gt;
08/08/2007 16:20:11: *** Script completed successfully. ***&lt;br /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
[root@host02 ~]# ls -l /vmfs/volumes/host02.dom.loc-vms/&lt;br /&gt;
&lt;br /&gt;
drwxr-xr-x 1 root root 2.3K Aug 8 16:13 guest02&lt;br /&gt;
&lt;br /&gt;
[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;Update:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
The new version (0.9.1) is working fine when pointing to a VC server to perform the backups. You will now only need to install VISBU onto one ESX host and perform backups of VMs running on any other hosts without problems.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
To use VISBU in this way, you must use a domain account that is given Virtual Machine Power User permissions (minimal). Or give this user permissions to create and delete snapshots etc.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Great work Alex.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
-Hugo [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;#!/bin/bash&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job1.cfg&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job2.cfg&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job3.cfg&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;kill &amp;lt;PID&amp;gt;[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;mkdir /mnt/backup[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "Disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;/path/to/backup/vmname/vmname.restore[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "Disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;service mgmt-vmware restart[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;/path/to/backup/vmname/vmname.restore[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;VMX Entry:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;backup.Disable = "X"&lt;/i&gt;&lt;br /&gt;
+&lt;br /&gt;
+&lt;br /&gt;
&lt;i&gt;Action:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;X= Manual - Only back this VM when running a manual backup.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;X= Disabled - Always exclude this VM from backup.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;\----------------------------------------&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;VMX Entry:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
+scsiY:Z.Backup = "disabled"&lt;br /&gt;
&lt;p /&gt;
+&lt;br /&gt;
&lt;i&gt;Action:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Always exclude this disk from backup.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h youresx.domain.com -u root -p password -s Any[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h youresx.domain.com -u root -p&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;password -s Any[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;## Config file created by vi-backup.pl 0.9 ##&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;hostname=abc-vcenter.abc.net&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;username=abc\administrator&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;password=abc123&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;searchspec=Name:SERVER3&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;exportpath=/vmfs/volumes/vi-backup/&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;2gbsparse=1&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;safemode=0&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mailreport=1&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mailserver=10.0.0.10&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mailfrom=vi-backup@abc.net&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mailto=hugo@abc.net&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;smb=0[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;We're running VMware ESX Server 3.0.1 build-44686&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;\-------------------------------------------------&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Searching for target VMs....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;FATAL ERROR: No VMs found from specified search specification '"Name:SERVER3"'!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
+Name searches are case sensitive, please check your VMs name.[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;vcbVmName -h abc-vcenter.abc.net -u administrator -p 'abc123' -s name:SERVER3[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;*****Virtual Infrastructure Scripted Backup Utility v0.9 by Alex Mittell*****&lt;br /&gt;
&lt;p /&gt;
+&lt;br /&gt;
&lt;i&gt;We're running VMware ESX Server 3.0.1 build-44686&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;\-------------------------------------------------&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Searching for target VMs....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Locating VM files....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Processing config files....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;SERVER3 is not on a VMFS volume visible by this host!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
+Target VMs from specified searchspec:&lt;br /&gt;
&lt;p /&gt;
+&lt;br /&gt;
+SERVER3&lt;br /&gt;
&lt;p /&gt;
+&lt;br /&gt;
&lt;i&gt;Snapshotting VM SERVER3....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;VM SERVER3 is set to be excluded from backup. No snapshot taken. Skipping VM.[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;mv 462e0dcf-cd25404e-f565-0016350603e7/yourvm.vmdk ./yourvm.vmdk[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;ls -d */[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;backup.Disable = "Manual"&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "disabled"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;scsi0:6.present = "false"&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;scsi0:6.fileName = "VMNAME-000001.vmdk"&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;scsi0:6.deviceType = "scsi-hardDisk"[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt; /etc/init.d/crond restart [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt; /etc/init.d/crond restart [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[root@host01 ~]# cat /usr/local/vi-backup/vi-backup-host02-guest02.cfg&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;\## Config file created by vi-backup.pl 0.9.1 ##&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;hostname=host02.dom.loc&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;username=root&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;password=password&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;searchspec=Name:guest02&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;exportpath=/vmfs/volumes/host01.dom.loc-vms&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;2gbsparse=1&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;safemode=1&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mailreport=1&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mailserver=mail.dom.loc&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mailfrom=backups@host01.dom.loc&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mailto=it@dom.loc&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;smb=0&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[root@host01 ~]# cat /var/log/vi-backup.log&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:02: Script started.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:02: We're running VMware ESX Server 3.0.2 build-52542&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:02: Searching for target VMs....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:05: Locating VM files....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:11: Processing config files....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:11: guest02 is not on a VMFS volume visible by this host!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:11: guest02 log file = /vmfs/volumes/host01.dom.loc-vms/guest02.log&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:11: Snapshotting VM guest02....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:11: VM guest02 is set to be excluded from backup. No snapshot taken. Skipping VM.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;08/08/2007 16:20:11: *** Script completed successfully. ***&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[root@host02 ~]# ls -l /vmfs/volumes/host02.dom.loc-vms/&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;drwxr-xr-x 1 root root 2.3K Aug 8 16:13 guest02&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
+[/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;Update:&lt;br /&gt;
&lt;p /&gt;
+&lt;br /&gt;
+The new version (0.9.1) is working fine when pointing to a VC server to perform the backups. You will now only need to install VISBU onto one ESX host and perform backups of VMs running on any other hosts without problems.&lt;br /&gt;
&lt;p /&gt;
+&lt;br /&gt;
+To use VISBU in this way, you must use a domain account that is given Virtual Machine Power User permissions (minimal). Or give this user permissions to create and delete snapshots etc.&lt;br /&gt;
&lt;p /&gt;
+&lt;br /&gt;
+Great work Alex.&lt;br /&gt;
&lt;p /&gt;
+&lt;br /&gt;
&lt;i&gt;-Hugo [/code]&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;#!/bin/bash&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job1.cfg&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job2.cfg&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;/usr/local/vi-backup/vi-backup.pl -c /usr/local/vi-backup/backup_job3.cfg&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[/code]&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Find the PID for vi-backup.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;kill &amp;lt;PID&amp;gt;[/code]&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;That should terminate any existing backup, note that if a disk is currently being exported it will be completed but no further exports will be made, you will also need to remove 'Scripted Backup Snapshots' from any VMs that had a backup terminated half way though using the vi-client.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Version 0.8.5 will be out in the next week, with a menu option to hot clone VMs, and a few bug fixes related to DRS migrations and logging, and lock files so two instances of the script don't attempt to backup a VM simultaneously. I'll try and work something into it related to existing processes too.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
+Thanks for the suggestion, glad you found the script useful. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
Thanks for the great script, good job!+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Can you explain to me why backups of VM's can't be run without committing or flushing the existing snapshots? We use (manual) snapshots on quite a lot of servers and would like to preserve them. VCBMounter doesn't complain about the snapshots, that's why I don't understand why the script does. Thanks in advance!&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
It doesn't use vcbMounter to do the exports, couple of reasons I chose not to use it - firstly I found it to be unreliable at removing snapshots - so I decided to deal with them myself and use vmkfstools to export the disks. Secondly this way you also end up with instantly usable exported VMDKs, you don't need to use vcbRestore and the catalog file to restore the VMs - this opens other options like the ability to clone VM/specific VMDKs etc.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;So, the reason snapshotted VMs are excluded is that I'd have to write a load of logic into the script to find existing snapshot files/.vmsd and export them as well as the base VMDK, and this would also complicate the automatic restore of VMs massivley as I'd have to make sure I re-imported the deltas properly and that the correct delta was in use.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I may have a crack at dealing with VMs with existing snapshots at some point but it's not a small a task.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Hope it's useful to you anyway. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Thank you for the explanation, that clears things up. For a short time I tried your previous script (I think it was called something like smb_backup.sh) and that used vcbMounter, so I assumed the new script also did.+ &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;The script is very useful for me, I just have to try and find a way to tackle the 'snapshot-enabled' servers. Thanks again!&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Hi All,+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Im going to look at this but wanted to ask a few questions!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;our san is a netapp 3050c and a 3020 for DR&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;now i want to be able to backup the vm's to a volume then replicate that vol to the dr san that I can then use as a datastore in the event of a disaster?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;So will this util create copies of the vm's or will it create backup files that can only be 'restored' also does it quiesce any file/cache activity first?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;er think that will do for know!&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Yep that should work. The util creates copies of VMs that can be used immediately (if on VMFS), no 'restore' neccesary. It creates a snapshot of the VM, thus quiescing the VMs VMDK files, and exports them with vmkfstools.+&lt;br /&gt;
+-----&lt;br /&gt;
this script works nicely.. thanks+&lt;br /&gt;
+-----&lt;br /&gt;
Hi,+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;When I try to use this script with the smb option, it fails.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I can't seem to chmod or chown anything on a smbmount from my samba server... I can create and delete files but not change the permissions on them.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Stephen&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
[root@dali vi-backup]# vi-backup.pl -c vi-backup.cfg+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;*****Virtual Infrastructure Scripted Backup Utility v0.8.4 by Alex Mittell*****&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;We're running VMware ESX Server 3.0.1 build-32039&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;\-------------------------------------------------&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Searching for target VMs....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Locating VM files....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Processing config files....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Target VMs from specified searchspec:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;logbook&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Snapshotting VM logbook....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Snapshot of logbook successful.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Exporting disks for logbook....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Exporting disk UBUNTU - Logbook Server.vmdk....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Destination disk format: VMFS thick&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Cloning disk '/vmfs/volumes/440500b0-6cb6fa4d-412a-0017a4a74e4e/UBUNTU - Logbook Server/UBUNTU - Logbook Server.vmdk'...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Failed to clone disk : File system isn't VMFS. (35)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;WARNING: There were one or more errors during the disk export. Please look at the VM log file.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Removing Snapshot for logbook....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Snapshot removed successfully from logbook.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Exporting VM config and log file...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Config and log file exported successfully.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;chmod: changing permissions of `/vmfs/volumes/storage1/ESXBackup2/logbook/logbook.restore' (requested: 0700, actual: 0755): Operation not permitted&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Hi, could you PM me your config file (minus passwords/real FQDNs of course). Looks like your export path has been detected as VMFS rather than SMB so the -d 2gbsparse switch has not been parsed to vmkfstools.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;What is your export path?&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
exportpath=/vmfs/volumes/storage1/ESXBackup2/+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Also after the vi-backup fails, I notice this smb is mounted now:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;//10.2.32.10/esx 276G 76G 200G 28% /vmfs/volumes/440500b0-6cb6fa4d-412a-0017a4a74e4e/ESXBackup2&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
If i run the script without the smb option using that same export path, it works fine... but as soon as I use the smb it fails.+&lt;br /&gt;
+-----&lt;br /&gt;
[root@dali vi-backup]# cat vi-backup.cfg+&lt;br /&gt;
&lt;i&gt;\## Config file created by vi-backup.pl ##&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;hostname=dali.xxx.edu&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;username=root&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;password=xxx&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;searchspec=name:logbook&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;exportpath=/vmfs/volumes/storage1/ESXBackup2/&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;safemode=1&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mailreport=1&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mailserver=123.123.123.123&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mailfrom=esx@xxx.edu&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;mailto=logs@xxx.com.au&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;smb=1&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;smbshare=//10.2.32.10/esx&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;smbuser=vmesx&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;smbpass=xxxx&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Message was edited by:&lt;/i&gt; &lt;br /&gt;
&lt;i&gt;renski&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Right the problem is your export path - you should only mount VMFS volumes under /vmfs.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Create a directory called /mnt/backup to mount your SMB share on.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;mkdir /mnt/backup[/code]&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Then change your export path to /mnt/backup and it should work fine.&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;If you want to backup to a VMFS export path, leave the smb option off.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
I will try it in the next few deys and let you know....+&lt;br /&gt;
&lt;i&gt;I've been having massive issues with VCB but I guess I'll post that seperately.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Hi, the script works great save for a big issue I'm seeing. Are you locking the VMFS file system for the export path? I had the script running on one ESX server and kicked it off on another, both writing to a SAN LUN shared among 5 servers. As soon as I kicked off the job on the 2nd server, both the running backup and newly kicked off backup failed. The error from the 2nd server was:+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Snapshotting VM cvsdms....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Snapshot of cvsdms successful.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Exporting disks for cvsdms....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Exporting disk cvsdms.vmdk....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Destination disk format: VMFS thick&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Cloning disk&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;'/vmfs/volumes/455230b5-32d0fd0a-e8b8-00110a55aa32/cvsdms/cvsdms.vmdk'...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Clone: 0% done.Failed to clone disk : Resource temporarily unavailable (720905)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I also noticed when running a backup on one ESX server that access to the backup LUN from the other ESX servers is slow. This is an HP XP12000 array.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Thanks&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Hmm no, no locking, I'm using VMware's vmkfstools so there shouldn't be any issues.+ &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;It could be that you have another underlying issue, a quick search gave me this thread.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;a class="jive-link-external" href="http://www.vmware.com/community/thread.jspa?messageID=528312"&gt;http://www.vmware.com/community/thread.jspa?messageID=528312&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I haven't seen these issues on my setup so I'm not sure why you're having them, anything interesting in your vmkernel logs?&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
alright that did the trick, thanks...+&lt;br /&gt;
+-----&lt;br /&gt;
Weird. I don't see this issue on any of my other 12 luns. I fixed the path to the backup LUN to be the same on all host servers, that did the trick.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;One other thing, the exclusion setting for the VMX file doesn't seem to work for me. Can you confirm this looks right:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;backup.Disable = Disabled&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Thanks&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
That's an odd one, I will remember to look out for that. :)+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;The Disabled switch needs to be in quotes.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "Disabled"[/code]&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Will this work with RDM machines?+&lt;br /&gt;
+-----&lt;br /&gt;
Yes, I use vmkfstools to export the VMs disks so RDMs should be supported. Virtual compatibilty RDMs defintely work as I've tested them.+&lt;br /&gt;
+-----&lt;br /&gt;
Nice tool...have been looking for some scripts w/ the email notifications.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Thanks much.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Thank you Alex for sharing your script with us.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Alex K&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Does the script use+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;vmkfstools -i /path/to/src/src.vmdk -d 2gbsparse /path/to/dest/dest.vmdk&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;?&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Yes if your exportpath is non-VMFS, if you're exportpath is VMFS it'll automatically drop the *-d 2gbspare *switch.+&lt;br /&gt;
+-----&lt;br /&gt;
I scheduled the backup to run overnight backing up 5 vm's. I am getting one error.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;21/02/2007 02:00:10: [machine] VM set to be excluded from backup. This may not be an error.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Please review host/vm logs if you did not expect this VM to be excluded.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;..in the machine.log :&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;21/02/2007 02:00:10: Log file opened.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;The machines powerstate is on. How can I find out where the backup goes wrong?&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Yeah sorry the VM log for disk exports is a bit lacking at the moment, will be sorted in the next release, in the mean time have a look in the host log. (default /var/log/vi-backup.log).+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Does the machine have any snapshots? If so it will be automatically excluded from backup. You must commit or revert all snapshots before you can back up a VM.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
you are right...never remember making a snap..but+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;...&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;21/02/2007 02:00:10: MACHINE already has one or more snapshots.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;21/02/2007 02:00:10: All snapshots must be commited or removed before a VM can be backed up.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;21/02/2007 02:00:10: Snapshots can only be auto-commited when running in manual mode.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;21/02/2007 02:00:10: MACHINE log file = /mnt/vmbackup/snaps/JSOBACKUP.log&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;21/02/2007 02:00:10: Snapshotting VM JSOBACKUP....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;21/02/2007 02:00:10: VM JSOBACKUP is set to be excluded from backup. No snapshot taken. Skipping VM.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;What is the cmd for removing a snapshot?? Not using VC.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Thanks again.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
vmware-cmd /vmfs/volumes/yourvol/yourvm/yourvm.vmx removesnapshots+&lt;br /&gt;
+-----&lt;br /&gt;
Hi,+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I've done a full backup to a smb share. I want to test the restore, so I changed the target name for the machine, to logbooktest and it restored fine to /vmfs/volumes/storage1/logbooktest.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;How can I now put that machine into vmware and start it up? I won't give it any network settings so I don't disturb the live running instance of "logbook", but I'd just like to see it bootup.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Stephen&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
sorry just figured it out, worked well.. thanks+&lt;br /&gt;
+-----&lt;br /&gt;
Hi,+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;How can I schedule multiple backups? I scheduled one machine to backup, then I ran the vi-backup.pl again to schedule the next machine but it said:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Please select a menu option: 4&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Configuring scheduled backup....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;A schedule already exists - do you want to remove it? [y]: n&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Existing schedule un-modified. Exiting script.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Note: I have 4 servers all setup in seperate .cfg's&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
+-----&lt;br /&gt;
Right at the moment the menu option only allows you to schedule one backup job - so if you were running powerstate:on for example that would be fine, but I can see what you're saying about having a config file per VM to allow greater granularity.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I will write support for multiple backup jobs as it seems like a good idea now I think about it, previously I was following the KISS principle. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Anyway, all is not lost. In the directory /etc/cron.d you will find a vi-backup.cron file, just mv this file to say vmname.cron and leave it that directory. Then you can use the menu options to create a new schedule file, and then move that to othervmname.cron, and so on, until you have one .cron file per VM.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Ok cool thanks.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;So for restoring these backups, the best way I'm assuming is to recreate the machine and when creating the hard disk for the machine select the original backup .vmdk?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;What about backing up the actual vm config's... is that possible?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Message was edited by:&lt;/i&gt; &lt;br /&gt;
&lt;i&gt;renski&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
It backs up the vm's config file and log files automatically and generates a restore script to restore the VM to a desired location (and rename it if you want, it modifies the .vmx for you). All you need to do once the VM is restored is register the restored .vmx with an ESX host and the VM is ready to use.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;The restore script will be called:&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;/path/to/backup/vmname/vmname.restore[/code]&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Just run it, it's a perl script. There will be one for every VM you backup.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;You can use vmkfstool to import individual vmdks if you don't want to use the restore script, but I recommend you just use the script, it's nice and easy.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
ISD+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Ahh.. On the NTAP replication question.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Remember, if you use a script like this to export to a LUN that you then SnapMirror to another site, your replication taffic will be unable to benefit from only moving the deltas. Basically, you will wind up replicating the entire LUN every time, because in the NTAP's eyes, you will have changed every block.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;A much better way to do it is to use NTAP snapshots and SnapMirror in conjunction with one another to replicate your live LUNs directly the DR site. This way you do not have the export process, the full replication (only changed blocks) and you will be able to replicate far more frequently with no production impact.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;There are ways to get the LUN consistent before replication, I think that others have discussed it here (including myself). However, even with this method, you will have to find some way to ensure .VMDK consistency. As long as you have VM Tools installed, you will be fine with basic file servers. For databases, you will need to use pre-post scripts or VSS to get a clean image.&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Either way, you should really look into replicating the live LUNs. It will be much faster, more reliable, and not load your array to nearly the same degree.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
&lt;div class="jive-quote"&gt;That's an odd one, I will remember to look out for+&lt;br /&gt;
&lt;i&gt;that. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;The Disabled switch needs to be in quotes.&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;backup.Disable = "Disabled"[/code]Mittell,&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;The reason I saw the problem was because my backup LUN is a LUSE volume. There is a bug about LUSE volumes and multi-initiators. All hosts need to access a LUSE volume by the same physical path.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
This really is a great script and works like a charm. Ive been doing some testing and using the scsiY:Z.Backup = "disabled" option in the vmx file to disable additional disks and that was working well, i removed those and for some reason im getting the message "All snapshots must be commited or removed before a VM can be backed up.+&lt;br /&gt;
&lt;i&gt;Do you want to commit the snapshots and proceed with the backup?" if i say yes it continues but if i look at snapshot manager for this host, it shows no snapshots, ive also tried issuing the remove snapshots command via vmware-cmd and this reports no snapshots to remove.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Any ideas ?&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Mike+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Dont suppose you can point me to that thread you were discussing the ONTap snap shotting in could you?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Cheers&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
If you look in the VM's directory does it have any delta files listed? Also look in the VMs .vmx, do the disks have -000001.vmdk or similar on the end? If they do you may have a stuck snapshot - you can try a couple of things to get the snapshot manager to pick them up. First restart the managment agent on the host with the following.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;*NB: *before running this make sure you disable auto startup/shutdown for the VMs on the host otherwise they will get rebooted.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;service mgmt-vmware restart[/code]&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;After doing that, give it a few minutes to settle, then check the Snapshot Manager again see if the snapshot shows up. If it doesn't I'd then try restarting the VC service, this usaully works.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;If you still can't see the snapshot, check that your VM is not affected by this issue.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;a class="jive-link-external" href="http://kb.vmware.com/kb/5096672"&gt;http://kb.vmware.com/kb/5096672&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;If it isn't, try creating another snapshot manually using the VI client and then doing a 'delete all' in the snapshot manager.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Let me know how you get on.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
+-----&lt;br /&gt;
I've noticed that if Virtual Center is managing my VM, I cannot edit manually the .vmx files on the host because Virtual Center is handling this file and will overwrite my modification.+&lt;br /&gt;
&lt;i&gt;One solution is to add the parameter in the Advanced Configuration panel of the guest, but this is possibile only if the Guest is powered off.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Another solution is to deregister the host from Virtual Center, modify all the .vmx on the host and then reregister it with Virtual Center but it is not very comfortable.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Do you know if there are other solutions for safely adding this parameter to the .vmx without powering off the guest?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;In ESX 2.5 it was a lot easier &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":-)" /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;TIA.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Regards,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Luca&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
&lt;div class="jive-quote"&gt;The restore script will be called:+ &lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=2411&amp;subject=code"&gt;code&lt;/a&gt;/path/to/backup/vmname/vmname.restore[/code]&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;Just run it, it's a perl script. There will be one&lt;/i&gt;&lt;br /&gt;
+for every VM you backup.ahh very nice :)-----&lt;/div&gt;
Thanks. yeah i had 000001.vmdk entry in there which was causing havoc, ive removed this and shes all go, once again thanks awesome script.+&lt;br /&gt;
+-----&lt;br /&gt;
Excellent work Alex, defiantely appreciated. I'm looking forward to seeing compression added. Only just started looking at the file today so may try to add it in myself and do some testing.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Once again, thanks. Keep up the good work!&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Great work. My personal requests :)+&lt;br /&gt;
&lt;i&gt;1. I agree it would be great to have multiple schedules, I would like to be able to backup half of my machines one night and then the other half the next night.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;2. I would like the ability to force it to 2 GB sparse. I mount an NFS volume in VC so it shows up under my VMFS volumes, but I would like to be able to save the disk space.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Thanks again for sharing this.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Is there a newer version out yet?  ;)I have a few suggestions, but I'd like to see any newer code if it's out there.+&lt;br /&gt;
+-----&lt;br /&gt;
1/ Yep I agree and that will defintely be in the next version, it's easy to do too.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;2/ Hmmm hadn't thought of this....was trying to be smart by suto-setting the 2gbspare option. &amp;lt; &amp;lt;img class="jive-emoticon" src="http://communities.vmware.com/images/emoticons/happy.gif" border="0" alt="&lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;"/&amp;gt;suppose I could add an option to the config to try and force a 2gbsparse export regardless of the path being under /vmfs. What I was trying to prevent was people not understanding what the switch was for and setting it to the wrong value, causing the export to fail.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
No unfortunately I've been quite busy lately so progress has been slow (my girlfriend got fed up of me spending all evening doing it too hehe). I'm half way there, but can't say when I'll have it ready for sure, so fire away with the suggestions. ;)+&lt;br /&gt;
+-----&lt;br /&gt;
WOW!+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Thx a lot!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;This works like thunder!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Some more tests and....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;This script is very worthful due to the lack of vmaddRedo and comit functionality in 3.x. Doing a snapshot in VI manually was not the solution for a host based backup....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;(This is for poor admins which have only the "starter" edition.)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Again: Thx a lot for sharing this with us!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Leo&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Very nice tool Mitell. I am a Vmware/ESX newbie.+&lt;br /&gt;
&lt;i&gt;I tested the script backing up a XP VM onto a SMB share, and had no problems.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;I use SMS Trace (SMS Toolkit 2) to read the logfiles, and saw this error in a few of the logfiles:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Mar 05 09:54:19.411: mks| SOCKET 14 recv error 5: Input/output error&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Mar 05 09:54:19.411: mks| SOCKET 14 destroying VNC backend on socket error: 5&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Is it something to be worried about.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Furthermore i saw that the backup was splitted into 2GB files.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Is this standard ?&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
&lt;div class="jive-quote"&gt;Very nice tool Mitell. I am a Vmware/ESX newbie.+&lt;br /&gt;
&lt;i&gt;I tested the script backing up a XP VM onto a SMB&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;share, and had no problems.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;I use SMS Trace (SMS Toolkit 2) to read the logfiles,&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;and saw this error in a few of the logfiles:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Mar 05 09:54:19.411: mks| SOCKET 14 recv error 5:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Input/output error&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Mar 05 09:54:19.411: mks| SOCKET 14 destroying VNC&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;backend on socket error: 5&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;i&gt;Is it something to be worried about.I've not seen this with my VMs, but it's only a console timeout error, probably happening on snapshot commit. As long as the VM is functioning properly I don't think it's anything to worry about.&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;&amp;gt; Furthermore i saw that the backup was splitted into&lt;/i&gt;&lt;br /&gt;
&lt;div class="jive-quote"&gt;&lt;i&gt;2GB files.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Is this standard ?Yes, if you export to an SMB share the VMDK will be split into 2GB chunks. The advantage of this is that white space (i.e. unused space within the VM) will not be exported, saving disk space.&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;It will be automatically recombined into a single file when you restore the VM using the .restore script.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Thanx for the quick reply Mitell.+&lt;br /&gt;
&lt;i&gt;One last question.&lt;/i&gt; &lt;br /&gt;
&lt;i&gt;I just like to understand things i see in the logfiles&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;What does this warning mean:&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;[2007-03-21 09:39:04.103 'BaseLibs' 5954480 warning] [Vmdb_Unset] Unsetting unknown path: /vmomi/&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;And you promised the VM world a new release &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Any idea when??&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Thanx again.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
That's just an informational message, produced when you create a snapshot, I get that too you can ignore it. (it's only visible because of the default logging level).+ &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Soon, I promise, I've been really busy of late and not had as much time to work on it as I'd like. If anyone wants to help me please offer! &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Like i said i'm a newbie, so i don't think i can help. My scipting skills are primitive to nonexistent. Sorry.+&lt;br /&gt;
&lt;i&gt;Somewhere in the future i want to do something about it.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Hey no worries, just hope the script is useful to you. I'll get the new version out as soon as I can. ;)+&lt;br /&gt;
+-----&lt;br /&gt;
Here i am again with another simpel question.+&lt;br /&gt;
&lt;i&gt;I tested a restore and also without any problems.&lt;/i&gt; &lt;br /&gt;
&lt;i&gt;The restore was a XP client with a 12 GB disk. It took almost an hour to restore.&lt;/i&gt; &lt;br /&gt;
&lt;i&gt;Isn't that too slow. I compare the restore time with backup exec that we use in our live enviromet, and restoring 12 Gb is faster.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Is restoring from a SMB share slower. For faster restore do i need to perform this from a vmfs / ext3 are other partition? I read something about CIFS.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;I have a VM of almost 60 GB. Restoring that would take a working day.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I hope i am not annoying you with those silly questions.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
That is slow - what's the network speed between your SMB server and your ESX host running the restore script?+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;If you backup to VMFS-&amp;gt;VMFS on the SAN it won't use the network, so will be much faster. Also technically you wouldn't even need to restore the VM as the disks won't be split into 2GB chunks when exporting to VMFS, so you can use the VMDKs straight away as they are without needing to import them if you don't want to.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I do this for a couple of my VMs, the script backs up the VMDKs to a VMFS volume on the SAN every night, I have a 'backup' VM pointing at these disks - so if my primary VM dies, all I need to do is switch on my 'backup' VM and away we go. Requires more space but it's a nice neat solution for critical VMs.&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;You're not annoying me, I don't mind answering questions at all. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Network speed between SMB and ESX server is 1 GB.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;We do have a SAN, but are in the process of ordering a new EVA SAN&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;For the time being i installed ESX and VC server on 2 proliant dl 380 G4.&lt;/i&gt; &lt;br /&gt;
&lt;i&gt;The VC server has enought diskspace for the backups. (SMBshare)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Offcourse we will backup VMFS-&amp;gt;VMFS if our new EVA is installed.Thanx for the "backup VM pointing at these disk " tip. Going to use that.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;A few minutes ago i started the script to backup 4 VM's. It just done backing up my XP VM i restored earlier, in approximally 10 minutes. So i don't think there is a network issue.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;I started the script on the ESX console.&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;The previous restore test, i did on my workstation throught Putty console. Could putty cause some performance issues on the ESX server? I don't think so....&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I wil test a restore on the esx console tomorrow.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Thanx&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
+-----&lt;br /&gt;
Great script! have been writing /using my own in ruby but its nowhere near as polished as this so i'm going to just start using this now.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Few suggestions of things I think may be easy to implement (and if i brush up on my perl i may try it myself)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;1) Compression, gzip the disks up to a directory would be very useful for me, we keep a local copy and also copy that to two separate places so less time on the network would be great!&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I had another Idea but i want to look further into your code before I bring it up.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Thanks again!!&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Can I log an issure if the SMB mount fails. The script does not exit and continues doing backup on the local ESX server filesystem+&lt;br /&gt;
+-----&lt;br /&gt;
I started the restore on the ESX console, but still very slow. Backup is going fast, but i don't know why restore is taking so long.+&lt;br /&gt;
&lt;i&gt;I will figure it out. Important thing is i can backup and restore.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
While trying to do a restore I get the following error:+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Please enter location of .restore file: &amp;lt;location of .restore&amp;gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Can't exec "/data/backups/ruby_dev/ruby_dev.restore": Permission denied at ./vi-backup.pl line 1213, &amp;lt;STDIN&amp;gt; line 2.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Line 1213 contains: system($input);&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;snippet from above line 1213:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;chomp($input = &amp;lt;STDIN&amp;gt;);&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;}&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;die("Restore aborted.\n") if ($input eq 'q');&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;system($input);&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;exit;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;If I manually goto the &amp;lt;vmname&amp;gt;.restore file that the backup created, and chmod 744 it I can get past this, however I'm not sure its supposed to be like this &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I am running it as root by the way... just for testing purposes. In the future I'll be running it as its own backup user.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;-----*pauldavidbarker&amp;lt; &amp;lt;/strong&amp;gt;- I thought I'd trapped failed SMB mounts, thanks for pointing out the bug, I'll get that sorted.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;*Mellman *- what type of volume is /data/backups? SMB? The .restore file needs chowning if it's not on SMB, but it throws an error if you try and chown it when it is on SMB, so I've tried to detect the exportpath type and only run chown if it's non-SMB - looks like it hasn't picked up your exportpath type correctly so hasn't run chown to make the .restore executable when it should have. As you say manually running a chown on the file should sort the problem.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Great script. The backups work fine, I just cant seem to get the restore to work. The logs and vmx's restore fine. The vmdk chokes though. I'm restoring to another server and a new storage.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;I am running this as root and have no problem getting to the vmdk file from the CLI.&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Here's the output.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Target folder &amp;#38; VM name = ThreeKey&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;ThreeKey.vmx target volume = VMotionFS1&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;ThreeKey.vmdk target volume = VMotionFS1&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Do you want to start the restore? [y]:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Restoring disks....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Restoring ThreeKey.vmdk to /vmfs/volumes/VMotionFS1/ThreeKey....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Destination disk format: VMFS thick&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;VmfsExtentOpen: failed to get handle&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Failed to open '/mnt/brnfstest/ThreeKey/44f695ff-33ff3a34-99c1-0013726873ad/ThreeKey.vmdk': Inappropriate ioctl for device (1638409)&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Disk ThreeKey.vmdk was not restored successfully.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Restoring config files....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Restoring log files....&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Successfully restored log files.&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Restore to /vmfs/volumes/VMotionFS1/ThreeKey complete.&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
That's a vmkfstools error that you normally get when trying to import a VMDK to a non-VMFS volume or from an unsupported filesytem.+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;What type file system are you backing up to? ext3?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Can you manually import the VMDKs with vmkfstools -i &amp;lt;source&amp;gt; &amp;lt;destination&amp;gt;?&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
&lt;div class="jive-quote"&gt;What type file system are you backing up to? ext3?&lt;/div&gt;
It's an NFS export on my EMC NAS+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;gt; Can you manually import the VMDKs with vmkfstools -i&lt;/i&gt;&lt;br /&gt;
&lt;div class="jive-quote"&gt;+&amp;lt;source&amp;gt; &amp;lt;destination&amp;gt;?Nope, that failed. +&lt;/div&gt;
&lt;i&gt;What do you suggest?&lt;/i&gt;&lt;br /&gt;
+-----&lt;br /&gt;
Hmm here's where my lack of experience with NFS and ESX doesn't help....+&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Seem that vmkfstools is incorrectly determining the filesystem type for your NFS mount. I'm not sure, but I thought NFS mounts under ESX3.0.1 went under /vmfs? That might solve your problem, what mechanism are you using to mount hte NFS share?&lt;/i&gt;&lt;br /&gt;
+----