系统相关
首页 > 系统相关> > 批处理vm虚拟机服务器,一条批处理下令启动VmWare虚拟机

批处理vm虚拟机服务器,一条批处理下令启动VmWare虚拟机

作者:互联网

windows(win10)批处理脚本

打开vm虚拟机的服务,并且开启无界面虚拟机

@echo off

net start "vds"

net start "VMAuthdService"

net start "VMnetDHCP"

net start "VMware NAT Service"

net start "VMUSBArbService"

net start "VMwareHostd"

"D:\ApplicationFiles\System\VMware Workstation\vmrun.exe" start "F:\virtualMachine\ubuntu15.1X64\ubuntu15.1X64.vmx" nogui

保存为startvm.bat

关闭vm虚拟机的服务

@echo off

"D:\ApplicationFiles\System\VMware Workstation\vmrun.exe" stop "F:\virtualMachine\ubuntu15.1X64\ubuntu15.1X64.vmx" nogui

net stop "vds"

net stop "VMnetDHCP"

net stop "VMware NAT Service"

net stop "VMwareHostd"

net stop "VMUSBArbService"

net stop "VMAuthdService"

保存为shutdownvm.bat

说明:

打开还要等个一分钟左右启动好,具体看你的系统性能,接下来就可以正常ssh连接了。

参考文章:

批处理vm虚拟机服务器,一条批处理下令启动VmWare虚拟机

标签:批处理,虚拟机,stop,vm,X64,start,net,ubuntu15.1
来源: https://www.cnblogs.com/longronglang/p/16313220.html