A virtual machine feels like a separate computer, but its disk is really one large file sitting on your PC. Anyone who can copy that file can read everything inside it, so a VM needs the same protection as any other drive.
This guide shows how to encrypt a drive in a virtual machine so both the guest data and the host file that holds it stay protected.
The isolation of a virtual machine is about running code, not about protecting files.
Encryption closes the gap between what the VM appears to be and what its files actually are.
A container on the host is often the simplest route, because it protects the whole VM file at once. For moving protected files between machines, see How to Mount an Encrypted Drive on Another Computer.
Qiling Safe Disk keeps the VM's files inside an encrypted container on the host. Download and install it first.
Step 1. Open Qiling Safe Disk and click Create to make a container large enough for the VM.

Step 2. Set a size, choose AES-256, and set a strong password.
Step 3. Mount the container and store the VM's disk files inside it.

Step 4. Before shutting the PC down, close the VM and unmount the container.
Guest encryption protects files while the VM runs. The host container covers the file when it does not. For the portable counterpart, see How to Encrypt a Portable SSD.
Most VM leaks come from a copy that was left unprotected, not from a broken cipher.
No. A VM isolates running software, but its disk file can still be copied and read unless it is encrypted.
Ideally both. The host protects the VM file at rest, and the guest protects files while it runs.
Only slightly. Modern CPUs accelerate AES, so the impact on a VM is small.
Yes. Keep the VM files inside a container, copy the container, and mount it on the new PC.
The same idea applies: keep the virtual disk encrypted so a copy of the image reveals nothing.
Before installing security software or changing storage, create a full Windows backup. Qiling Disk Master creates a system image you can restore from.
Step 1. Open Qiling Disk Master and select System Backup to include Windows and the boot partitions.
Step 2. Save the image to a drive other than the Windows disk and start the backup.
Step 3. If a change causes issues, restore from the image to return Windows to its working state.
Encrypting a drive in a virtual machine means protecting two things at once: the disks inside the guest and the single large file they live in on the host. Turn on the guest's own encryption so its files are scrambled while it runs, and keep the VM's files inside a container on the host so a copy of the disk file is useless when the machine is off. Use different passwords for each layer, encrypt your snapshots, and unmount the container before you shut down. Qiling Safe Disk makes the host side simple, and its AES-256 container follows the VM wherever you move it.
For more on protecting virtual and portable storage, see How to Create an Encrypted Virtual Drive, How to Move Files into an Encrypted Container, How to Back Up an Encrypted Drive, and How to Use Qiling Safe Disk.