Create snapshot including memory on ESXi command line

Today I have been asked how to create a snapshot directly on the ESXi host using vim-cmd including virtual machine memory.

Quick example from my lab:

Get the VMID of the virtual machine

[root@esxi:~] vim-cmd vmsvc/getallvms

Sample output:

VMIDNAMEFileGuest OSVersionRemark
121vcsa[Local2] vcsa/vcsa.vmxother3xLinux64Guestvmx-10VMware vCenter Server Appliance
124vRLi[Local2] vRLi/vRLi.vmxsles11_64Guestvmx-09VMware vRealize Log Insight
125vROPs[Local2] vROPs/vROPs.vmxsles11_64Guestvmx-11vRealize Operations Manager Appliance

Create snapshot including memory

[root@esxi:~] vim-cmd vmsvc/snapshot.create 124 "SnapshotName" "Snapshot Description" true true
Create Snapshot:


[root@esxi:~] vim-cmd vmsvc/snapshot.get 124
Get Snapshot:
--Snapshot Name        : SnapshotName
--Snapshot Id        : 1
--Snapshot Desciption  : Snapshot Description
--Snapshot Created On  : 3/7/2019 14:33:24
--Snapshot State       : powered on

Free ebook – Accelerating Digital Transformation with Containers and Kubernetes

From the book:

Container technology can help transform a company into a digital enterprise focused on delivering innovations at the speed of business.
Containers package applications and their dependencies into a distributable image that can run almost anywhere, streamlining the development
and deployment of software. By adopting containers, organizations can take a vital step toward remaking themselves into flexible, agile digital enterprises capable of accelerating the delivery of innovative products, services, and customer experiences. Enterprises can become the disrupters instead of the disrupted.

But containers create technology management problems of their own, especially when containerized applications need to be deployed and managed at scale, and that’s when Kubernetes comes into play. Kubernetes automates the deployment and management of containerized applications. More specifically, Kubernetes orchestrates containerized applications to manage and automate resource utilization, failure handling, availability, configuration, desired state, and scalability.

This book introduces you to containers and Kubernetes, explains their business value, explores their use cases, and illuminates how they can accelerate your organization’s digital transformation.

Get the free ebook

Free ebook – Cloud Management For Dummies

Content of the ebook:

Companies in all industries are responding to new opportunities to leverage big data and mobility to improve service and increase productivity. For IT teams, the switch to digitally driven business has big implications. Download this book to learn how to meet these cloud-driven challenges, including:

Lifecycle management from deployment to maintenance
Hybrid landscape manage local and remote services
Quality of service improve uptime and performance
Cost containment capture and communicate usage

Get the free ebook

VMware vRealize Operations: Self-Driving Operations for Your Data Center

VMware Self-Driving Operations delivered by vRealize. VMware vRealize Operations 6.7 introduces several new and enhanced performance and capacity optimization capabilities to help customers adopt a ‘self-driving’ approach to operations management. VMware vRealize Operations delivers continuous performance optimization based on operational and business intent, efficient capacity management, proactive planning and intelligent remediation. It provides a unified IT operations management platform to optimize, plan and scale SDDC and multi-cloud deployments, from apps to infrastructure. Discover how vRealize enables IT teams across industries to innovate and accelerate time to value.