vmware虚拟机常用命令
开启虚拟机:vmrun -T ws start /vms/vmware/BL_WIN_XP.vmx
停止虚拟机:vmrun -T ws stop /vms/vmware/BL_WIN_XP.vmx
创建快照:snapnamevmrun -T ws snapshot /vms/vmware/BL_WIN_XP.vmx snapname
查看已创建快照:vmrun -T ws listSnapshots /vms/vmware/BL_WIN_XP.vmx/BL_WIN_XP.vmx
恢复到快照:snapnamevmrun -T ws revertToSnapshot /vms/vmware/BL_WIN_XP.vmx snapname
删除快照:snapnamevmrun -T ws deleteSnapshot /vms/vmware/BL_WIN_XP.vmx snapname
删除虚拟机:vmrun -T ws deleteVM /vms/vmware/BL_WIN_XP.vmx
查看更多命令的详细介绍请在命令行输入vmrun
应用实例
可根据这些命令在后台写一个脚本,通过jenkins创建一个job来实现这些操作。