Linux – VMware: any way to take snapshot from client os

linuxvmware-esxivmware-tools

I am running ESXI 6 with a Linux VM. VMWare tools are installed on the client os. Is there any way to trigger a snapshot from within the client os? Without accessing the host directly?

Best Answer

On Windows, you could install PowerCLI and use New-Snapshot [-Name] <String> [-Description <String>] [-Memory] [-Quiesce] [-RunAsync] [-VM] <VirtualMachine[]> [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]. [1]

From Linux, you'll need to open an SSH client session to the host and use vim-cmd:

vim-cmd vmsvc/getallvms - note Vmid of desired VM

vim-cmd vmsvc/snapshot.create <Vmid> <snapshot name>

[2]