Solved

Best way to make Backup of Running Virtual Machines

Posted on 2008-09-30
5
1,017 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to install ESXi 5.5 and configure the management network System Requirements: ESXi Installation:  Management Network Configuration: Management Network Testing:
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

685 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