Vizioncore's got VMware's back
esxRanger 2.0 offers a slick, simple way to back up VMsFollow @pvenezia
Technically, backing up virtual servers running on VMware ESX and Infrastructure server should be simple, given that they’re just disk images, not actual disks. In practice, however, it’s not quite so straightforward. VMware virtual machines are constantly writing changes to that disk image, and unless you have backup agent software running within the VM itself, backing up those disk images is like trying to hit a moving target. This is where Vizioncore’s esxRanger 2.0 comes into play.
An add-on for VMware ESX 2.x and Virtual Infrastructure Server 3, esxRanger streamlines the backup process, adding substantial disk image compression and file-level restore capabilities. It runs as a stand-alone application on a Windows workstation, requiring the .Net Framework, and it communicates directly with a VMware server, as well as with VMware’s VirtualCenter, if present.
The application comes as an MSI installer, making setup a snap. After esxRanger is in place, you have two options: a CLI or a GUI tool. The GUI’s CLI roots are evident, especially in the bottom frame, which displays the CLI command equivalent to the steps selected within the GUI -- handy when scripting the CLI.
The backup and restore process itself is the very model of simplicity. Armed with the root credentials to the VMware servers and administration rights to Virtual Center, esxRanger’s backup method is straightforward: It creates a snapshot of the target server and then leverages tar and gzip to collect and compress the snapshots and the VMDK (VM Disk Format) hardware configuration file for the target VM into an SSH connection between the ESX or VI3 server and the workstation. From there, the resulting tarball is placed onto the destination medium, whether it is a local disk, a SAN, or a simple Windows share. Alternatively, the backup may be directly placed on a file system mounted on the VMware server, be that a SAN LUN (logical unit number) or an NFS file system.
Given the nature of the VMware disk image files and the compression utilities in use, the compression ratios are substantial. My testing showed that a 4GB Windows 2003 Server VM compressed to just less than 800MB and that an 8GB CentOS 4.2 VM compressed to about 500MB, both impressive numbers, even when accounting for the unused space on those disk images.
What’s more impressive is the speed of the backups. On my ESX 3 server running on a quad dual-core Opteron 875 server, each of the aforementioned backups took about three minutes to complete when the server was largely untasked. This time increased proportionally as the server’s load increased because all the compression is handled by the VMware server itself.
I began my testing with two VMware servers, one running ESX 2.5.2 and the other running Virtual Infrastructure Server 3. After configuring esxRanger to communicate with VirtualCenter, I was given a tree view of the VMware servers and was able to view the VMs running on each. To permit backups to occur on each VMware server, however, I also had to manually enter each server in the esxRanger configuration and add log-in credentials. It would be nice to be able to skip this step when running VirtualCenter.
After the authentication data is in place, backing up a running server is the very definition of simplicity: Select the target VM, select a destination directory (either local or on a network share), and select a few parameters for the backup, including compression ratio, archive name, where to mail the backup report, and so on. From there, running the backup immediately or scheduling the backup to run on a set schedule is possible.