VBox 7.0.x - Full VM Encryption

This is for discussing general topics about how to use VirtualBox.
Post Reply
Okim
Posts: 3
Joined: 19. Jan 2023, 12:13

VBox 7.0.x - Full VM Encryption

Post by Okim »

Hi there,

I'm using VBox 7.0.[46] and wanted to test the new vm encryption feature, I have the extension pack installed but I stumpled over this:

Code: Select all

C:\Users\admin>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" encryptvm myvm setencryption --cipher AES-256 --new-password-id mypassword --new-password -
Enter new password:
0%...VBOX_E_IPRT_ERROR
VBoxManage.exe: error: Failed to encrypt the VM
VBoxManage.exe: error: Couldn't resolve the library path of the crpytographic support module for extension pack 'Oracle VM VirtualBox Extension Pack'
VBoxManage.exe: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component VirtualBoxWrap, interface IVirtualBox
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleSetVMEncryption(struct HandlerArg *,const char *)" at line 1061 of file VBoxManageMisc.cpp
First I thought there was missing something on my side - after looking into the code (svn/vbox/trunk/src/VBox/Main/src-client/ConsoleImpl.cpp), I expected, that the library was found, but has an issue ...
But after looking into the extension pack content and the VBoxSVC.log I found this:

Code: Select all

00:00:46.729716 VM encryption ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={431685da-3618-4ebc-b038-833ba829b4b2} aComponent={ExtPackWrap} aText={Failed to locate the cryptographic module 'VBoxPuelCrypto' in extension pack 'Oracle VM VirtualBox Extension Pack'}, preserve=false aResultDetail=0
Is this intended or a packaging issue?

Best regards,
Michael

PS: In genereal it would be good, if the command would have exited with the real error message :/
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VBox 7.0.x - Full VM Encryption

Post by scottgus1 »

Doublecheck that the Extension Pack version matches the Virtualbox version: EP 7.0.4 on VB 7.0.4, EP 7.0.6 on VB 7.0.6, etc. (which is what I imagine 7.0.[46] is referring to).

Also, try making then encrypting a brand-new VM in each version.
Okim
Posts: 3
Joined: 19. Jan 2023, 12:13

Re: VBox 7.0.x - Full VM Encryption

Post by Okim »

Thanks for your reply. Yes, your assumption regarding the versions is correct. I started with 7.0.4 and hoped, that 7.0.6 would fix the issue.

The extension pack version matches the VBox Version, so as far as I can see the issue should be, that the library "VBoxPuelCrypto" is missing in the package:

ExtPack.xml:

Code: Select all

<?xml version="1.0"?>
<VirtualBoxExtensionPack xmlns="NOPERMISSIONSFORURLS" version="1.0">
    <Name>Oracle VM VirtualBox Extension Pack</Name>
    <Description>Oracle Cloud Infrastructure integration, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe, full VM encryption.</Description>
    <Version revision="155176">7.0.6</Version>
    <MainModule>VBoxPuelMain</MainModule>
    <MainVMModule>VBoxPuelMainVM</MainVMModule>
    <VRDEModule>VBoxVRDP</VRDEModule>
    <CryptoModule>[b]VBoxPuelCrypto[/b]</CryptoModule>
    <ShowLicense/>
</VirtualBoxExtensionPack>
win.amd64:

Code: Select all

19.01.2023  12:56    <DIR>          .
19.01.2023  12:56    <DIR>          ..
19.01.2023  12:56           532.640 VBoxHostWebcam.dll
19.01.2023  12:56            40.096 VBoxNvmeR0.r0
19.01.2023  12:56            76.960 VBoxNvmeR3.dll
19.01.2023  12:56         1.137.760 VBoxPuelMain.dll
19.01.2023  12:56            32.896 VBoxPuelMainVM.dll
19.01.2023  12:56            80.088 VBoxUsbCardReaderR3.dll
19.01.2023  12:56            84.248 VBoxUsbWebcamR3.dll
19.01.2023  12:56           812.568 VBoxVRDP.dll
19.01.2023  12:56            42.688 VDPluginCrypt.dll
               9 Datei(en),      2.839.944 Bytes
               2 Verzeichnis(se), 747.819.429.888 Bytes frei
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VBox 7.0.x - Full VM Encryption

Post by fth0 »

Okim wrote:Is this intended or a packaging issue?
You're right, it's probably a packaging issue. Stay tuned ...
klaus
Oracle Corporation
Posts: 1133
Joined: 10. May 2007, 14:57

Re: VBox 7.0.x - Full VM Encryption

Post by klaus »

Yes, it was a packaging issue (the library was built but not added to the extpack). Please download the extpack again from the usual download page. Note that the link now points to a different file, with 7.0.6a in its name.

If you install it with the GUI you get a little confusing message (it talks about downgrading), but it'll do the right thing.
Okim
Posts: 3
Joined: 19. Jan 2023, 12:13

Re: VBox 7.0.x - Full VM Encryption

Post by Okim »

Great, thanks for the fast reaction :)

Downloaded, installed and tested: It works (or at least seems so, the vm to encrypt is huge). Thanks again and have a nice weekend.
Post Reply