3

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?

jgalak
  • 231
  • 3
  • 7

1 Answers1

1

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]

Zac67
  • 8,639
  • 2
  • 10
  • 28
  • 1
    The goal here is to not provide access to the host. – jgalak Sep 19 '17 at 16:55
  • VMware Tools don't provide this function... If it's a security problem you could build a simple script server (with host access) that starts the snapshot when it's triggered by the guest. – Zac67 Sep 19 '17 at 16:57