Scheduling VMWare Converter

vmware-vcenter

I have a number of servers that I would like to be able to virtualize using VMWare vCenter Converter Standalone. I've manually added/converted my servers which seemed to work OK. Now I'd like to schedule this to happen automatically nightly.

I was hoping there was a simple way of taking the configuration from the wizard and creating some kind of script from it, but no such luck. The docs are, well, sparse on this. I see that I should be able to use converter-cli.exe with some parameters to point it to an XML file. Are there any tools to help create this XML beyond just using notepad?

Also, while the examples in the PDF manual are OK they definitely don't show you all of the available options. Is there a full list of the options for the XML file available anywhere?

Is there even a manual available for version 4 – all I've been able to find is version 3?

(Edit)

To be more specific: I have a few physical (real) servers. I am looking to use VMWare Converter on a daily basis to virtualize them. The idea is that these virtual images are my backup in case of a hardware failure on the physical server: just fire up the virtualized copy until I can get the problem fixed. I don't have any real budget to purchase software and this looked like it could be a simple/free way of giving me an additional layer of protection.

Best Answer

You can use the VMware Consolidated Backup. If you are using ESXI you have to install a VM as VCB Proxy first to run the commands. If youre running an ESX host you can run the commands from its shell.


  1. get the moref id from the vm which should be backuped: vcbVmName -h $HOST -u $USER -p $PW -s name:$VM

  2. create a snapshot vcbSnapshot -h $HOST -u $USER -p $PW -c moref:$NR

  3. create a backup of the vdisks vcbExport -M 1 -s /vmfs/volumes/..../disk.vmdk -d /backupdir/disk.vmdk

  4. get the SSID of the snapshot and remove the snap SSID=vcbSnapshot -h $HOST -u $USER -p $PW -f moref:$NR Snapshot | grep "SsId" | cut -d: -f2 | tail -n 1

vcbSnapshot -h $HOST -u $USER -p $PW -d moref:$NR ssid:$SSID


Please pay attention this are just code snippets of a backup script which we use. Please edit the commands before using them.

The other vm files (vmx, vmxf...) arent backuped with this solution. If you want to save them you just have to copy them.

This works for our different remote offices where a single Vmware ESX Standard Host is running.