vmware虚拟机常用命令和应用实例
作者:互联网
vmware虚拟机常用命令
开启虚拟机:
vmrun -T ws start /vms/vmware/BL_WIN_XP.vmx
停止虚拟机:
vmrun -T ws stop /vms/vmware/BL_WIN_XP.vmx
创建快照:snapname
vmrun -T ws snapshot /vms/vmware/BL_WIN_XP.vmx snapname
查看已创建快照:
vmrun -T ws listSnapshots /vms/vmware/BL_WIN_XP.vmx/BL_WIN_XP.vmx
恢复到快照:snapname
vmrun -T ws revertToSnapshot /vms/vmware/BL_WIN_XP.vmx snapname
删除快照:snapname
vmrun -T ws deleteSnapshot /vms/vmware/BL_WIN_XP.vmx snapname
删除虚拟机:
vmrun -T ws deleteVM /vms/vmware/BL_WIN_XP.vmx
查看更多命令的详细介绍请在命令行输入vmrun
应用实例
可根据这些命令在后台写一个脚本,通过jenkins创建一个job来实现这些操作。
标签:BL,WIN,虚拟机,vmrun,vmx,常用命令,XP,vmware 来源: https://blog.csdn.net/ITerated/article/details/111684214