VBScript to Export XenServer VMs

by Stan Czerno January 24, 2013 13:28 CST

This Script runs from a Windows Machine with XenCenter installed. The script creates a list of all VMs in either a Pool or a stand-alone server, shuts down each VM, exports the VM, then starts the VM using XenCenter's XE command.

http://www.czerno.com/default.asp?inc=/html/Citrix/Scripts/XenServer/XenServerExportVMs.asp

Let me know what you think about the script and if you have a better way of doing this.

Running a script to export VMs from a Windows Machine is slower than running it directly from the XenServer itself but I am more familiar with scripting on Windows versus python or perl.

My VMs on XenServer are mostly Desktop VMs with only a few Servers and range from 10GB to 30GB each. On average, using this method, is takes about 20 minutes to export the VM.

Tags: , ,

Catergories: Citrix | XenServer | VBScript

Add comment