Virtualbox 文字介面啟動

看虛擬器
VBoxManage list vms

Running vms
VBoxManage list runningvms

look vms info
VBoxManage showinfo

匯入vms
VBoxManage import

匯出vms
VBoxManage export

VBoxManage controlvm reset(重開機)|acpipowerbutton(軟關機)|poweroff(關機)|pause|savestate|resume

以下沒試過
拷貝vms
VBoxManage clonehd | [--format VDI|VMDK|VHD|RAW|] [--variant Standard,Fixed,Split2G,Stream,ESX] [--existing]

/usr/bin/VBoxHeadless -s OS_1 -e "TCP/Ports=port_1″ &
因為更新4版本之後 必須用新指令 ,可是當有多個虛擬器的時候,會沒辦法開啟,我就在加個延遲指令
/bin/sleep 10
/usr/bin/VBoxHeadless -s OS_2 -e "TCP/Ports=port_2″ &

VBox 的討論區有提到這問題, 解決方式可以參考這裡..

http://www.virtualbox.org/manual/ch01.html#intro-installing

裡面提到要安裝 VM VirtualBox Extension Pack, 所以..

(載下)
$ wget http://download.virtualbox.org/virtualbox/4.0.0/Oracle_VM_VirtualBox_Extension_Pack-4.0.0-69151.vbox-extpack

(安裝)
$ VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.0-69151.vbox-extpack

然後重新啟動 VM 就可以了(一定要重新啟動 guest)

另外為了怕每次Virtualbox update,需要重新編譯,乾脆直接在電腦每次開機都重新編譯一次
/bin/nice -n -20 /etc/init.d/vboxdrv setup

本篇發表於 未分類 並標籤為 。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>