Basically a very simple setup, but have eluded me for some time now: Simply backup some running VM's on a ESXi 5.x to a FreeNAS NFS service. I'm running FreeNAS 8.2 (FreeNAS update routine is also give me some strange access rights errors lately, so never got round to updating the bugger) Shouldn’t be a problem with version 8.1 or 8.3.
Things might be done differently with better preference/lesser work. I'm no expert, so please let me know if your setup performs better, or to point out some stupid mistakes I have made. But the following will get backups of your VM's to a FreeNAS box.
I'm still struggling with some kind of synchronisation with Amazon S3 from FreeNAS. If you have done any kind of progress along offsite sync from FreeNAS or any throughs on this, please let me know.
All glory is going to William Lam (www.virtuallyghetto.com) for his work on ghettoVCB script. There is nothing original here, I just put some snips together.
VMware Knowledge Base: 1002491
Renaming using the virtual disk using the ESX/ESXi host console interface To rename the disk and its files using the vmkfstools command in ESX/ESXi host's console interface: Verify the virtual machine referring to the virtual machine disk is powered off and does not have outstanding snapshots. Remove the virtual disk from the virtual machine's configuration: Locate the virtual machine in the inventory using the vSphere Client. Right-click the virtual machine select Edit Settings. Select the virtual disk in question and take note of virtual device node (eg, SCSI 0:1) and the name of the datastore and directory in the Disk File field at the top-right. Click the Remove button to disconnect the virtual disk from the virtual machine. Open a console to the ESX or ESXi host. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807) or Using Tech Support Mode in ESXi 4.1 (1017910). Navigate to the virtual machine's directory using a command similar to:
Obtain a listing of the files within a directory using the command:
Rename a virtual disk using a command similar to:
Note: Specify the descriptor file; the associated extent file is renamed in the process. Validate the files were renamed by listing the files within the directory using the command:
Re-add the virtual machine disk to the virtual machine's configuration. Using the vSphere Client, select the virtual machine and click Edit Settings. Click the Add... button above the virtual hardware list. Select Hard Disk and Use an existing virtual disk. Select the datastore and disk that was renamed. Confirm that the same SCSI controller type and Device Node noted in step 2c. Click the OK button to complete the configuration change.
Ever found out how commutative ESXi patches/updates are. Possible not all below steps are necessary, but it worked out fine. No lose of configuration data and so on. Started out with build 1117900. Did only 5.1 update 2 and 3.
I was sure I could go from 5.1 update 3 to 5.5 baseline. I found documentation for that - but possibly you could go directly 5.5 update 3. Not a test machine, so I took the conservative route. Let me know if you have been able to skip some of the steps.
Started from the bottom.
ESXi550-201412001 ESXi 5.5 Express Patch 5 2014-12-02 2302651 ESXi550-201410001 ESXi 5.5 Patch 3 2014-10-15 2143827 VMware ESXi 5.5 Update 2 ESXi 5.5 Update 2 2014-09-09 2068190 VMware ESXi 5.5 Update 1 ESXi 5.5 Update 1 2014-03-11 1623387 VMware ESXi 5.5 ESXi 5.5 GA 2013-09-22 1331820 VMware ESXi 5.1 Update 3 5.1.0 U3 2014-09-09 2323236 VMware ESXi 5.1 Update 2 5.1.0 U2 2014-01-16 1483097 ESXi510-201305001 5.1.0 Express Patch 3 2013-05-22 1117900