Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to backup my virtual machines while they are running, is it possible to do this without buying more VM-Ware products?

They are running on CentOS 5.2.

share|improve this question
    
VMWare is a company not a product, which of their products are you using? –  Chopper3 Jul 27 '10 at 6:16

7 Answers 7

It's been a long time since I have messed with vmware server (ESXi is free! :D), but I think you should be able to do it like this:

  1. snapshot the VM. This creates a delta disk that allows the machine to continue writing to disk.
  2. # vmkfstools -e /myVM2/target.vmdk -d vmfs /myVM1/source.vmdk
  3. copy the vmx and the nvram files over as well.

If you decide to run ESXi in the future, there is the fabulous ghettoVCB: http://communities.vmware.com/docs/DOC-8760

share|improve this answer

With vmware server ... no. With ESX yep using either the (now depreciated) VCB product, or any one of the commercial products that use the vSphere API, or you could write something against the API yourself.

I'm assuming you are using vmware server due to:

They are running on CentOS 5.2

share|improve this answer
    
:'( thanks .. it is VMware server –  Thankfulprofesser Jul 22 '10 at 1:57

Don't forget that you could also use any normal OS backup software like bacula or amanda to perform the backups from within the OS.

share|improve this answer

If you have an ESX(i) machine, you could use the vmware converter product to back them up.

Essentially, you point vmware converter at the guest VM's IP address, give it root login credentials, and tell it which ESX(i) server you want it to appear on. Then hit "go" and wait a while.

I've been very impressed with how reliably it's converted my machines. The only limitations appear to be on older machines that aren't supported (for example, a Win2k machine that hasn't been updated since the dawn of time didn't work, but would have if I could have updated it. Long story)

share|improve this answer
    
Use an older version of VMware converter on the Windows 2000 machines. –  Vick Vega Mar 27 '11 at 15:11

In ESX, it's possible to make snapshots, then manually copy certain disk files that aren't locked, in order to create a new machine. I'm not sure if you can do this in VMWare Server but it may be worth looking into.

ESX process: http://smkelly.livejournal.com/66017.html

share|improve this answer

Since you don't list any requirements for backup, I'll suggest dd over ssh.

share|improve this answer

I use Trilead Vm Explorer: it's free, easy and works.

http://www.trilead.com/Download/

Another silly trick I use is to boot the virtual machine with a clonzilla cd and... Clone it like I would do with a physical pc but this would need a reboot so I think you are not interested :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.