LoginSignup
145
149

More than 3 years have passed since last update.

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

Last updated at Posted at 2013-04-10

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

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 で操作できることは、ほぼ網羅されているっぽい。

145
149
0

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
  3. You can use dark theme
What you can do with signing up
145
149