VirtualBox 开机自动启动虚拟机


VirtualBox 开机自启动虚拟机

  1. 开启
@echo off
D:\VirtualBox\VBoxManage.exe -q startvm "UBUNTU" --type headless
rem pause
  1. 关闭
@echo off
D:\VirtualBox\VBoxManage.exe controlvm "UBUNTU" poweroff
rem pause