如何通过 VBoxManage 加密 VM 盒?

如何通过 VBoxManage 加密 VM 盒?

我已经通过以下方式创建了 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 下载网站

默认情况下它不包含在内,因为它可能包含可能对您的系统造成危害的系统级软件。

请注意扩展包需要与您现有的虚拟盒版本,因此如果出现安装问题,您需要升级您的虚拟盒平台包(需要关闭所有虚拟机)。

安装后,可以使用命令行界面执行加密操作,使用以下语法:

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

看:VirtualBox 5.0 增强功能和特性:磁盘映像加密

注意:“磁盘映像加密”作为 VirtualBox 扩展包提供,必须单独安装。

答案2

也许是 VirtualBox 的一个错误...有没有办法列出所有支持的密码?

或者也许选项的顺序很重要,一些 Oracle 博客VBox 手册显示此订单:

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

或者尝试使用 GUI,应该在这里:

在此处输入图片描述

相关内容