当前位置:首页 > 操作系统 > Windows

Windows下命令行控制VirtualBox中虚拟机

Windows下VirtualBox的默认安装路径是

C:Program filesOracleVirtualBox

假设虚拟机的名称是 MyHost,那么:

C:Program filesOracleVirtualBoxVBoxManage.exe startvm MyHost --type headless % 开机,且无界面
C:Program filesOracleVirtualBoxVBoxManage.exe startvm MyHost --type gui % 开机,带界面
C:Program filesOracleVirtualBoxVBoxManage.exe controlvm MyHost pause % 暂停
C:Program filesOracleVirtualBoxVBoxManage.exe controlvm MyHost savestate % 休眠
C:Program filesOracleVirtualBoxVBoxManage.exe controlvm MyHost poweroff % 强制关机
C:Program filesOracleVirtualBoxVBoxManage.exe controlvm MyHost resume % 从暂停状态恢复
C:Program filesOracleVirtualBoxVBoxManage.exe controlvm MyHost acpipowerbutton % 按下电源键
C:Program filesOracleVirtualBoxVBoxManage.exe controlvm MyHost acpisleepbutton % 按下睡眠键

原文:https://www.cnblogs.com/jyginger/p/12304386.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐