Solved

Trigger VMWare snapshot from within Virtual Machine.

Posted on 2014-01-31
1
1,688 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 119

Accepted Solution

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to disable SSL Cipher 7 53
what about DCpro 2 26
Converting Physical Machine to Virtual Machine 2 74
VMware Workstation: VM doesn’t start 6 48
A safe way to clean winsxs folder from your windows server 2008 R2 editions
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

785 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