VBoxManage.exeコマンドによる、VMのバッチ操作コマンドです。
VMの一覧を出力
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" list vms |
↓
"linux_ubuntu14.04" {5acb5178-6bf4-4dc5-bc08-4d00ff5dd4ec} "linux_centos7.0" {33eb52b2-ecf4-4e05-b39c-e5a8a5456377} |
VMを起動させる (2行になっていますが、実際は1行で入力します)
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "linux_ubuntu14.04" --type headless |
↓
Waiting for VM "Win2kPro_Trac" to power on... VM "linux_ubuntu14.04" has been successfully started. |
起動中のVM一覧を取得
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" list runningvms |
↓
"linux_ubuntu14.04" {5acb5178-6bf4-4dc5-bc08-4d00ff5dd4ec} |
VMを停止(サスペンド)させる(2行になっていますが、実際は1行で入力します)
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" controlvm "linux_ubuntu14.04" savestate |
↓
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% |
関連記事
コメントを残す