IT tutorials
 
Technology
 

Windows Server 2012 : Managing virtual machines (part 4) - Managing snapshots

4/23/2014 9:29:30 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

4. Managing snapshots

Performing snapshots on virtual machines is not recommended in production environments. Snapshots are commonly used in test and development environments, however, so it’s important to be able to manage them properly. Hyper-V allows you to perform the following kinds of actions concerning virtual machine snapshots:

  • Performing snapshots You can perform snapshots on a virtual machine to create point-in-time images of the virtual machine that you can return to later if needed. Snapshots can be performed on both running and stopped virtual machines and with any guest operating system installed. There is no interruption to running virtual machines when snapshots are performed on them.

  • Applying snapshots This action copies the virtual machine state from the selected snapshot to the virtual machine. As a result, any unsaved data in the virtual machine will be lost. If the snapshot was originally performed when the virtual machine was running, the virtual machine will be in a saved state after the snapshot has been applied. If the snapshot was originally performed when the virtual machine was stopped, the virtual machine will be in a stopped state after the snapshot has been applied.

  • Reverting virtual machines This action takes the virtual machine back to the last snapshot that was taken or applied, which is indicated in the Snapshots pane of Hyper-V Manager by a green arrow head with the word “Now” beside it as shown in Figure 4. The action will also delete any changes that have been made to the virtual machine since that snapshot was performed.

  • Deleting snapshots This action deletes the files associated with the snapshot. As a result, you will no longer be able to restore the virtual machine to the point in time represented by the deleted snapshot.

  • Deleting a snapshot tree This action deletes the selected snapshots and also any snapshots underneath it in the hierarchy of snapshots of the virtual machine.

  • Exporting snapshots This action exports the selected snapshot as a separate and independent virtual machine, which can then be imported onto another Hyper-V host if desired.

Applying a snapshot to a virtual machine.
Figure 4. Applying a snapshot to a virtual machine.

Note

Renaming snapshots

You can also rename snapshots, and this is generally a good idea. Give each snapshot you perform a name that describes either the purposes of the snapshot or state of the virtual machine just before the snapshot was performed.

Using Hyper-V Manager

You can use Hyper-V Manager to perform, apply, delete, revert, or export snapshots of virtual machines. To perform a snapshot or revert a virtual machine, right-click on the appropriate virtual machine in the Virtual Machines pane of Hyper-V Manager as shown in Figure 5. To apply, export, rename, or delete a snapshot or snapshot tree, right-click on the appropriate snapshot in the Snapshot pane as shown in Figure 4 earlier.

Performing a snapshot on a virtual machine.
Figure 5. Performing a snapshot on a virtual machine.

Using Windows PowerShell

You can also use Windows PowerShell to perform, apply, rename, export, or delete snapshots and to revert virtual machines. For example, you can use the Checkpoint-VM cmdlet to perform a snapshot on a virtual machine, the Get-VMSnapshot cmdlet to display a list of snapshots of a virtual machine, the RemoveVMSnapshot cmdlet to delete a snapshot or snapshot tree, and so on. For example, here is some output from running Get-VMSnapshot for a virtual machine on which a critical software update is being tested:

PS C:\> Get-VMSnapshot -VMName SRV-B -ComputerName HOST4

VMName Name SnapshotType CreationTime ParentSnapshotName
------ ---- ------------ ------------ ------------------
SRV-B Before installing update ... Standard 8/13/2012 8:48:15 PM
SRV-B After reconfiguring firew... Standard 8/13/2012 9:18:57 PM Before installi...
 
Others
 
- Windows Server 2012 : Managing virtual machines (part 3) - Optimizing virtual disks
- Windows Server 2012 : Managing virtual machines (part 2) - Optimizing network performance
- Windows Server 2012 : Managing virtual machines (part 1) - Optimizing workload consolidation
- Sharepoint 2013 : Configuring User Profile Synchronization (part 4) - Writing Back to Active Directory
- Sharepoint 2013 : Configuring User Profile Synchronization (part 3) - Importing User Profiles from Active Directory
- Sharepoint 2013 : Configuring User Profile Synchronization (part 2) - Creating the User Profile Service Application, Starting the Services
- Sharepoint 2013 : Configuring User Profile Synchronization (part 1) - Establishing Managed Accounts
- Sharepoint 2013 : A User’s Profile, The User Profile Infrastructure
- Microsoft Exchange Server 2013 : Email address policies (part 4) - Creating email address policies with custom filters
- Microsoft Exchange Server 2013 : Email address policies (part 3) - Focusing on certain recipients by using filters
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us