ほたてメモ

日々学んだことをメモメモ

VirtualBoxのよく使うコマンドまとめ

いつも忘れるのでまとめておく。

helpを表示

VBoxManage --help

特定のコマンドのヘルプを見たい場合

VBoxManage [コマンド] --help

例)VBoxManage list --help

VMの一覧を表示する(アクティブでないものも含む)

VBoxManage list vms

アクティブなVMの一覧を表示する

VBoxManage list runningvms

VMの情報を表示する

VBoxManage showvminfo [VM名]

利用可能なOS一覧を表示する

VBoxManage list ostypes

VMを起動する

VBoxManage startvm [VM名] [--type gui|headless|separate]

オプション

  • --type
    • gui : guiあり(default)
    • headless : guiなし
    • separate : デタッチ可能な UI を利用して VM を起動する機能(現時点で実験的な機能)

VMを停止する

VBoxManage controlvm [VM名] poweroff

VMを削除する

VBoxManage unregistervm [VM名]