Solved

Best way to make Backup of Running Virtual Machines

Posted on 2008-09-30
5
1,008 Views
Last Modified: 2012-05-05
I'm looking for a way to backup 4 Virtual Machines over Night. I just want to copy complete Images to an external Backup-HDD. The whole process should be automatic and i don't want to shutdown the VMs. Setting them on "Standby" would be possible. If possible i don't want to use any or just free third party software.

The VMWare Server is running on Windows Server 2003 64Bit.
0
Comment
Question by:sam_berlin
  • 3
5 Comments
 
LVL 7

Expert Comment

by:BogdanSUA
ID: 22607293
Using Vmware Server 2 (latest version), you can take a snapshot of the VM right before you back up.  You can then copy your VMDK files off to the external HDs.  When the copy job is complete, use the "Remove Snapshot" option, and it will write any changes that have occured back to main VMDK.

Reference page 197 of http://www.vmware.com/pdf/vmserver2.pdf for more info
0
 
LVL 42

Expert Comment

by:paulsolov
ID: 22608679
You can use Symantec Backup Exec System Recovery Server to install on the virtual machines.  It will take images, either full, incremental and image them to a location that you choose.  You can then use the Symantec tool to convert to vmdk or use vmware converter to convert back to a virtual machine.  This does V2V V2P P2P and P2V.  You can download a trial version for a test
0
 

Author Comment

by:sam_berlin
ID: 22612876
Hello Paul and Bogdan,

thanks for your answers. I would prefer Bogdans Solution because it is simple and cost-effective. ;)

Is there a way to automate the process of taking and removing snapshots?

Best Regards,

David
0
 
LVL 7

Expert Comment

by:BogdanSUA
ID: 22619731
I think there, but I have to look into it later tonight.
0
 
LVL 7

Accepted Solution

by:
BogdanSUA earned 250 total points
ID: 22621196
Ok this solution took me a while to cook up, but its solid.

What you need:

You need Vmware Server 2 Windows Version
You need Vmware's VIX API 1.6 for Windows (free download from the VMware Server 2 download section)

What to do:
1. Install VIX, notate the installation directory

2. Add the install location to your system path. On Windows XP for example, choose:
Computer > Properties > Advanced > Environment Variables > System variables > Path > Edit 

First run this command to list your VMs:
3. vmrun.exe -T server -h https://yourVMwareServerNameorIP:8333/sdk -u yourusername -p yourpass list

Notate the output, you will need it in the commands below.

4. You can take a snapshot using a command like the one below.  Fill in your own appropriate variables:
vmrun.exe -T server -h https://yourVMwareServerNameorIP:8333/sdk -u yourusername -p yourpass snapshot "[standard] folder/your-vm-here.vmx"

Hint: Substitute "[standard] folder/your-vm-here.vmx" with your output from step 3.

5. You can delete a snapshot with this command:
vmrun.exe -T server -h https://yourVMwareServerNameorIP:8333/sdk -u yourusername -p yourpass deletesnapshot "[standard] folder/your-vm-here.vmx"

Hint: Substitute "[standard] folder/your-vm-here.vmx" with your output from step 3.

By deleting the snapshot you are committing the changes back to the main VMDK file.  Also you can only have 1 snapshot per VM using vmware server 2.

Also when you run the vmrun command it tends to disconnect any Internet Explorer sessions that are pointed to your VMware Server 2 instance using HTTPS on port 8333.  Workaround is to use http://yourserver:8222 in Internet Explorer.

So as you can see you use these commands in a .cmd file and schedule a task to kick off to snapshot, copy, and delete snapshot.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question