LoginSignup
149

More than 3 years have passed since last update.

posted at

updated at

VirtualBox の VM をコマンドラインから管理する

よく使うコマンドをピックアップ。

VM の一覧

$ VBoxManage list vms

動作中の VM 一覧

$ VBoxManage list runningvms

VM を起動する

  • Video コンソール有り: $ VBoxManage startvm "Windows8Pro"
  • Video コンソール無し: $ VBoxManage startvm "Windows8Pro" --type headless

VM を停止する

  • 電源off: $ VBoxManage controlvm poweroff
  • ACPI シャットダウン: $ VBoxManage controlvm acpipowerbutton

スナップショット

  • 作成: $ VBoxManage snapshot "Windows8Pro" take "win-tmp"
  • 削除: $ VBoxManage snapshot "Windows8Pro" delete "win-tmp"
  • 一覧: $ VBoxManage snapshot "Windows8Pro" list
  • リストア: $ VBoxManage snapshot "Windows8Pro" restore "win-tmp"

その他のコマンド

$ VBoxManage help

長大なリストが表示される。GUI で操作できることは、ほぼ網羅されているっぽい。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
149