Hugo博客公告弹窗

VirtualBox启动和关闭虚拟机命令

   
文章摘要
摘要小助理今天溜号啦……😜

查看virtualbox正在运行的虚拟机

VBoxManage list runningvms

后台开启虚拟机

VBoxManage startvm 虚拟机名字 --type headless

后台关闭虚拟机

VBoxManage controlvm 虚拟机名字 acpipowerbutton

Windows开机自动启动

制作bat脚本

@ECHO OFF
start VBoxManage startvm 虚拟机名字 --type headless
start VBoxManage startvm 虚拟机名字2 --type headless
...
EXIT

将bat拖进下面的目录

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
CC BY-NC-SA 4.0 转载请注明
最后更新于 2024-09-22 08:01
clarity统计