2

I have 2 Linux Host VmWare Virtual Machines: one in a desktop and the other in a laptop. They use vmware player. What is the best way to synchronize the Virtual Machines? They are never used in the same time.

Faser
  • 57
  • 1
  • 4

4 Answers4

3

At the VMWare Player and VMWare Workstation level, the only way to keep two virtual machines on seperate hardware in sync (from outside the VM) is to manually copy the VM from one host to the other each and every time it is used.

How you do this varies greatly on your underlying OS and your choice of copying software.

Mark Henderson
  • 68,823
  • 31
  • 180
  • 259
1

Are you concerned about the OS, the data, or both? If the only thing you change is data and data is in a separate data disk, say mounted on /home, then it would be the easiest.

If the vmdk file is fairly small say only a few GB, you can just overwrite the older one with the new.

For data, you can just power them up in the same subnet, and do an rsync with the update option.

The upshot is it would depend on your detailed requirements. Actually I would also recommend simply put the vm in a usb stick and play it wherever you go.

johnshen64
  • 5,865
  • 24
  • 17
1

This question may be a bit old, but I just ran across this as I’m currently setting up some similar thing (syncing one VM across multiple hosts via Dropbox) and discovered that my approach is not mentioned here:

  1. Create a VM with a single HDD, split into 2GB files
  2. Create a snapshot (now all new changes will be written to a second, differencing disk file)
  3. Move the whole VM without the original/parent disk file (but including the new differencing disk) to the Dropbox
  4. Manually copy the original/parent disk file to every host where you want to run the VM

This way the big part of the VM needs to be copied only once to every host and the differencing part will be synced via Dropbox. You just need to place the parent disk file(s) intelligently, as the differencing disk in the Dropbox links to the parent disk on the hose, so the parent disk has to have the (symlinked) same path on all hosts.

As I mentioned, I’m currently just setting this up and haven’t solved the problem that each differencing disk split file gets up to 2GB and thus the syncing would again perform really bad. I think vdiskmanager is able to adjust the size of the a split disk, but I can’t confirm this at the moment and also don’t know how the VM performs with small split disk parts. (I’ll update this, when I get to know more.)

max
  • 135
  • 5
0

Ok, this is an old post. but I want to share my experiences.

I created a DD (raw) image file of 30gb (I used total commander, I took a big file and separated into files of 50Mb, until I reach 30GB size) I used OSFMount to mount that files as a drive (DD multiple files mount) Created a partition, formated, etc) I Created a virtual machine inside that mounted disk. Pointed Owncloud (its exactly the same for dropbox) sync folder where the files are.First sync will take a while, but then, just eh files representing the secotr of the VM that writes will be synced (on blocks of 50MB) So its way better than sync 2GB files (its the less that VMWare will split the discs)

This between windows will work, and there is a tool to mount multiple files DD image on linux/mac but I couldn't make it work on OSx El Capitan :(

DefToneR
  • 527
  • 6
  • 14