VMware Serverで、snapshot取得を自動化
フリーのVMware Serverだとsnapshotが1世代しか取得できないのは悲しいところだが・・
http://www.petri.co.il/virtual_vmware_snapshot.htm
自動化のためのコマンド。バッチにしてタスクに仕込む。
snapshot取得
C:\Program Files\VMware\VMware VIX>vmrun snapshot "D:\VMware\Windows Server 2003 EE\Windows Server 2003 Enterprise Edition.vmx"
リストア
C:\Program Files\VMware\VMware VIX>vmrun revertToSnapshot "D:\VMware\Windows Server 2003 EE\Windows Server 2003 Enterprise Edition.vmx"
その他できること
C:\Program Files\VMware\VMware VIX>vmrun
vmrun version 1.0.2 build-39867Usage: vmrun [Authentication flags] COMMAND [PARAMETERS]
Authentication flags
- h
- P
- u
- p
COMMAND PARAMETERS DESCRIPTION
list List all running VMs
start Path to vmx file Start a VM
stop Path to vmx file Stop a VM
reset Path to vmx file Reset a VM
suspend Path to vmx file Suspend a VM
upgradevm Path to vmx file Upgrade VM file format, virtual hw
installtools Path to vmx file Install Tools in Guest OS
snapshot Path to vmx file Create a snapshot of a VM
deleteSnapshot Path to vmx file Remove a snapshot from a VM
revertToSnapshot Path to vmx file Set VM state to a snapshot
Examples:
vmrun list
vmrun upgradevm w2k.vmx