Virtualization

VMware create and restore group snapshots multiple VMs at once

Learn how with VMware to create and restore group snapshots multiple VMs at once

If you have a lab environment or other “application stack” specific multiple VMs, there can arise the need to create and restore snapshots in unison or in a “group” fashion. ย This is easily accomplished with PowerCLI. ย Also, in playing around recently with Virtual Volumes or VVOLs and the Dell Equallogic Storage Manager appliance, you can also create “group” virtual machine snapshots using the vCenter web interface and using the Dell VSM vCenter plugin.

Let’s take a look at how we can create a particular named snapshot for multiple VMs using PowerCLI. ย First things first, we need to logically group the VMs into a folder which allows us to specify a location using PowerCLI as the snapshot creation source.

Creating the Multi VM snapshot

So after creating a folder calledย testclone and moving my VMs into this particular folder,ย I can use this as the location to create a multi-vm snapshot:

get-vm -location "testclone" | new-snapshot -Memory -quiesce -name "testmulticlone"

Restoring the Multi VM snapshot

get-vm -location "testclone" | set-vm -snapshot "Testmulticlone" -confirm:$false

Using the Dell Virtual Storage Manager

If you are using the Dell VSM plugin integrated into vCenter, you have the multiVM snapshot available using the builtin functionality of the VSM plugin. ย Steps to create the multiVM snapshot:

vvol_snap

  1. Select the newly created folder;ย testclone
  2. Select theย Manageย tab
  3. Select theย Dell VSMย button
  4. Selectย Snapshots
  5. Finally, click onย Create Snapshotย icon.

From this view there are also options for creatingย Snapshot Schedules, and any existing snapshot of the selected object whether initiated by VMware or VSM will be listed, and a restore can be initiated.

Alternative path to launching the Create Snapshot wizard:

  1. Select the newly created folder;ย testclone
  2. Click on theย Actionsย dropdown menu
  3. Click onย All Dell VSM Actions
  4. Click onย Create Snapshot

Also, the really great thing about the VSM if you are using VVOLs for storage, the snapshot overhead is totally offloaded to the SAN itself. ย So you no longer have to wait minutes or longer for the snapshot to complete. ย This process can now take seconds. ย Also, with VVOLs, there is no longer a performance overhead for having snapshots allocated to a virtual machine.

Final Thoughts

Creating multi VM snapshots can be a very handy tool to use especially in lab environments, where you want to keep rollbacks of multiple machines in sync. ย It can also be useful in production if a set of VMs are application stack specific and rely on each other. ย Using PowerCLI this functionality is available to us. ย Also, keep in mind that with VVOLs and using 3rd party integration such as the Dell Virtual Storage Manager, you also have access to this functionality as well.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.