Solved

Best way to make Backup of Running Virtual Machines

Posted on 2008-09-30
5
985 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Join & Write a Comment

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now