Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 EncryptedVhdBoot - VeraCrypt-encrypted Windows VHD boot support for Ventoy (UEFI)
#1
I'd like to share my open-source project, EncryptedVhdBoot, which adds support for booting VeraCrypt system-encrypted Windows VHDs through Ventoy.
The project provides a modified ventoy_vhdboot.img with a custom UEFI bridge that handles VeraCrypt authentication and early decryption before Windows takes over. It works with Ventoy's existing VHD boot mechanism without modifying the VHD itself or the Windows boot files.
I've been using it personally for about two months, and it has been working reliably in my setup.

Use cases and advantages
The main use case is maintaining multiple independently encrypted Windows installations on a single SSD/HDD, with the ability to select any of them from the Ventoy boot menu.
Since each installation is stored as a separate VHD file, systems can be added or removed without repartitioning the physical drive or allocating dedicated partitions for each installation.
Windows installations can also be prepared and encrypted in VirtualBox while the host system is running. This makes it possible to manage the boot drive without repeatedly rebooting into different environments.

Installation
  1. Create a UEFI virtual machine in VirtualBox using a VHD disk and install Windows 10/11 x64.
  2. Install VeraCrypt inside the VM and encrypt the Windows system partition. Complete the encryption process and verify that the encrypted system boots successfully inside VirtualBox.
  3. Shut down the VM, install Ventoy on an SSD/HDD, and copy the encrypted VHD to the Ventoy data partition.
  4. Download the modified boot image and place it on the same drive as /ventoy/ventoy_vhdboot.img, creating the /ventoy/ directory if necessary.
Prebuilt image (v1.0.1):
https://github.com/reordo/EncryptedVhdBoot/releases/download/v1.0.1/ventoy_vhdboot_encrypted.img

After that, boot the drive in UEFI mode, select the VHD from Ventoy's menu, and enter the VeraCrypt password and PIM when prompted.

Boot screen
   

Optional silent mode
The project also supports silent password entry.
To enable it, create an empty file at:
/ventoy/ventoy_vhdboot.silent
With this file present, the bridge displays a completely blank screen during VeraCrypt authentication, without prompts, visible input feedback, or error messages.
The password and PIM are still entered normally, followed by Enter. For the default PIM, the second input can be left empty.

Compatibility and limitations
  • Windows 10/11 x64.
  • VeraCrypt 1.26.29 tested.
  • Fixed and dynamic VHD (VHD1) disks.
  • Dynamic VHDs may grow close to their maximum allocated size after encryption.
  • x64 UEFI boot only; Secure Boot must be disabled.
  • Based on Ventoy's Win10Based v3.0 VHD boot image.
  • VHDX has not been tested; the current implementation targets VHD1.
  • Unencrypted VHDs remain bootable through the modified image.
The project is experimental and has not undergone an independent security audit. Backups are recommended, particularly when testing on new hardware or Windows configurations.

Source code and documentation
GitHub: https://github.com/reordo/EncryptedVhdBoot

The repository includes the source code, build instructions, technical documentation, and a prebuilt boot image.
This is an independent project and is not officially associated with Ventoy.
Feedback, compatibility reports, and technical discussion are welcome.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)