今天发现一个好玩的虚拟机管理软件,工作需要每天要使用到虚拟机,但是每天开机启动有点麻烦,想能开机自己启动,关机的时候能自动关闭虚拟机,突然就发现了这个VBoxVmService的项目。
VBoxVmService的github地址:https://github.com/onlyfang/VBoxVmService
windows的下载软件: https://github.com/onlyfang/VBoxVmService/releases
可以根据自己的版本下载exe,比如:6.1 ,6.0, 5.2
下载下来直接安装就好了,在安装的根目录有个设置文件,设置下就ok了


文件里面已经放了俩设置了,可以根据自己的需要修改,如有一个就把下面的删掉,有另外的需求的话就再添加就好了,要注意虚拟机的VmName要设置为何自己的虚拟机名称相同,比如我的是centos8 ,我就把VmName修改未centos8就可以了
ShutdownMethod=savestate 这个选项还有另外的一个选项就是acpipowerbutton,意思是正常的关机,savestate是挂起,下次启动的时候还是原来的状态。
