?
Solved

Trigger VMWare snapshot from within Virtual Machine.

Posted on 2014-01-31
1
Medium Priority
?
2,183 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 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

864 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