如何透過VBoxManage加密VM box?

如何透過VBoxManage加密VM box?

我已經透過以下方式建立了VM框Vagrantfile,但是當我嘗試加密儲存時,出現以下錯誤:

$ VBoxManage encryptmedium aaa-bbb-ccc-ddd-eee --newpassword - --newpasswordid my_username --cipher "AES-XTS256-PLAIN64"
Enter new password:
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Encrypt hard disk operation for this cipher is not implemented yet!

不指定任何密碼時也會發生同樣的情況。

為什麼這不起作用?如何以正確的方式加密虛擬機器?


附加資訊:

$ VBoxManage --version
5.0.14r105127

$ VBoxManage showvminfo secure | grep 'SATA.*UUID'
SATAController (0, 0): ~/VirtualBox VMs/secure/box-disk1.vmdk (UUID: aaa-bbb-ccc-ddd-eee)

我使用的是 OS X (El Capitan)。

答案1

支援磁碟加密虛擬機,你必須安裝Oracle VM VirtualBox 擴充包。請從以下位置安裝擴充包VirtualBox 下載站點

預設不包含它,因為它可能包含可能對您的系統有害的系統級軟體。

請注意,版本擴充包需要與您現有的相匹配虛擬盒子版本,因此如果出現安裝問題,您需要升級您的虛擬盒子平台包(需要關閉所有VM機器)。

安裝後,可以使用命令列介面執行加密操作,語法如下:

VBoxManage encryptmedium "uuid|filename" --newpassword "file|-" --cipher "cipher id" --newpasswordid "id"

看:VirtualBox 5.0 增強功能與功能:磁碟映像加密

注意:「磁碟映像加密」是作為 VirtualBox 擴充包提供,必須單獨安裝。

答案2

也許是 VirtualBox 的錯誤...有沒有辦法列出所有支援的密碼?

或者也許選項的順序很重要,一些甲骨文博客視頻盒手冊顯示這個順序:

VBoxManage encryptmedium "uuid|filename" --newpassword "file|-" --cipher "cipher id" --newpasswordid "id"

或嘗試使用 GUI,應該在這裡:

在此輸入影像描述

相關內容