Solved

Trigger VMWare snapshot from within Virtual Machine.

Posted on 2014-01-31
1
1,573 Views
Last Modified: 2014-02-04
I have an automated process that runs in a VMWare virtualised environment - this basically takes a vanilla windows os and installs a number of features / software (which takes a long time).

What I was wondering is if there is a way I can trigger a VM snapshot from within the virtual machine operating system I am upgrading so I can capture key states. Currently I do this manually but this involves me watching the installations which is time consuming. If there was some command I could run that could trigger this it would save me a lot of time!
0
Comment
Question by:Blowfelt82
1 Comment
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39823761
Yes, this is possible, you can use the PowerCLI, and PowerShell to create a snapshot from within the VM.

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

http://powergui.org/index.jspa

Get-VM | New-Snapshot -Name ”Target-Snapshot”

Open in new window


different command

New-Snapshot –Name “Target-Snapshot” –VM myVM

Open in new window

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

743 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

12 Experts available now in Live!

Get 1:1 Help Now