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?
Asked
Active
Viewed 2,527 times
3
-
You mean trigger snapshot creating from Guest OS? – Alexander Tolkachev Sep 11 '17 at 06:04
-
1Yes, exactly, I want be able to SSH into the Guest OS and somehow tell ESXI to take a snapshot of it. – jgalak Sep 11 '17 at 12:24
1 Answers
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>
Zac67
- 8,639
- 2
- 10
- 28
-
1
-
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