VPN deals Advertisement

Creating a VM inside a VeraCrypt Hidden Volume

One of the most ingenious and unique features of VeraCrypt is the ability to create hidden volumes (as is was of TrueCrypt before it). This means that, in addition to creating a “regular” VeraCrypt encrypted volume, you can also create a second “hidden” volume inside it.

If you enter the password of the outer volume then you open the outer volume, but if you enter the password of the hidden volume then you open that one instead. The beauty of this system is that is impossible for an adversary to know (let alone prove) that a second volume actually exists. This allows you plausible deniability. Please be aware that there are also some potential dangers associated with this.

In addition to hiding data, a VeraCrypt hidden volume can hide an entire Operating System (OS) running on a Virtual Machine (VN). This is a great way to keep all your computer use very secure (as long as you limit your activity to the VM).

What you will need

This tutorial assumes that you are familiar with the content of my VeraCrypt & how-to basics and VeraCrypt hidden volumes guides. You will also need:

  • The latest version of VeraCrypt (FOSS)
  • The latest version of Oracle VM VirtualBox (FOSS)
  • An Operating System (I use Linux Mint for this tutorial, but feel free to use your favorite). Note that it is not possible to run Mac OSX under a VM.

Step A – Create a VeraCrypt hidden volume

To do this, simply follow the steps outlined in my VeraCrypt hidden volumes guide. Ensure that the volume size is large enough to contain both the hidden OS and any decoy files placed in the outer folder.

How to Create a VM inside a VeraCrypt Hidden Volume

Step B – Install your OS using VM VirtualBox and VeraCrypt

1. Ensure that all VeraCrypt volumes are unmounted, then mount the encrypted volume that you just created.

How to Create a VM inside a VeraCrypt Hidden Volume

Be sure to enter the password for your hidden volume

How to Create a VM inside a VeraCrypt Hidden Volume

Your hidden volume should now be mounted

2. Fire up VirtualBox and hit “New” to create a new VM.

VirtualBox 1

3. Name and select your OS.

VirtualBox 2

4. Choose how much RAM you want the VM OS to use. The more the better, but it takes away from the RAM available to your primary OS.

VirtualBox 3

My PC rocks 16 GB of RAM, so I can afford to be generous with my VM!

5. You now have the option to create a virtual hard disk.

VirtualBox 4

This step is not strictly necessary, but I will create one for demonstration purposes.

VirtualBox 5

Stick with the defaults unless you have a good reason not to

VirtualBox 7

A dynamically allocated virtual drive is fine. Remember that its maximum size will anyway be limited by the space that you allocated for your hidden folder

VirtualBox 8

You can leave maximum file size high for the same reason (although some people recommend setting it just slightly smaller than the space reserved for your hidden volume). Be sure to save the virtual drive file in your mounted hidden folder. Hit “Create”.

6. In the VirtualBox Manager screen, select your newly created Virtual Machine, then hit “Start”.

VirtualBox 9

7. Select your OS, then hit “Start”.

VirtualBox 10

In my case this is the Linux Mint .iso file that I have downloaded

8. Yay! Once it boots up, you are running your new OS inside a Virtual Machine! Close it down…

VirtualBox 11

… but be sure not to Save the machine state (as saving complicates the next step).

VirtualBox 12

9. Back at the Virtual Box Manager window, select your OS -> Settings -> Advanced. Change the Snapshot Folder to your mounted hidden folder.

VirtualBox 13

This should be the same folder that you saved your virtual disk to in Step B-5 above

10. Manually move the new VM’s .vbox file to your hidden folder. This file is usually located your home directory. For example, in Windows it is located by default in C:/Users/[name]/VirtualBox MS.

Step C – How to use you new hidden OS inside a VPM

1. Mount your hidden volume using VeraCrypt.

2. Double-click the .vbox file to launch VirtualBox. Select the VM, and hit “Start”.

3. When you are done using your hidden OS, be sure to right click -> Remove it in the VirtualBox Manager window. Make sure you select “Remove only” (i.e. do not “Delete all files”!).

VirtualBox 14


1. When using the VM be careful to not create a shared folder between the VM and the host PC, as this could compromise the privacy of your data.

2. Windows users have the option of downloading a portable version of VirtualBox from vbox.me. This can itself be installed inside the hidden VeraCrypt folder. This is a great way to hide the fact that you might use a VM at all!

Written by: Douglas Crawford

I am a freelance writer, technology enthusiast, and lover of life who enjoys spinning words and sharing knowledge for a living. You can now follow me on Twitter - @douglasjcrawf.


  1. Marc
    on January 10, 2018

    I was wondering if you could answer the following, or point me in a direction for an answer (no luck searching web): Can you run this hidden VM at the same time as one installed on your main OS? I.e. Can I run ubunut or something from a VM on my windows build, and simultaneously mount this hidden VM from another drive and have them run concurrently? I tried this before but had issues with the .vbox files migrating from the crypt drive to the C: install folder.

    1. Douglas Crawford replied to Marc
      on January 11, 2018

      Hi Marc, It is normally possible to run two or more VirtualBox VMs at the same time, so I can't really see why the setup you describe should cause problems. The hidden volume should act as just another regular drive for your main OS once mounted. But I haven't tried it, and you have (and encountered problems). I know what you can't do (because I have tried it) is run one VM inside another VM. This means you can't install VeraCrypt in the VM and then setup a hidden volume with a .vbox inside that (well, you can, but it won't load).

  2. helbert jodl
    on September 3, 2017

    We want a video explanation of this article

    1. Douglas Crawford replied to helbert jodl
      on September 4, 2017

      Hi helbert, That is a great idea, but I am no expert at making videos (and don't really have the time to learn). Is there anything in particular you find about about the web tutorial that is hard to understand?

  3. Eli
    on July 4, 2017

    Awesome article! Very informative. Would you mind going into a little more detail/clarification on how one could install vbox.me (portable) inside the veracrypt container? What would you be saving to the hidden partition?

    1. Douglas Crawford replied to Eli
      on July 4, 2017

      Hi Eli, To install vbox.me to the VM: 1. Run VeraCrypt and mount the hidden volume. 2. Follow these instructions, choosing the hidden folder as the destination to extract the files to. 3. (Optional) Delete the vbox.exe download file from your downloads folder and then empty your recycle bin. Or just also transfer the file to your hidden volume (this helps to hide the fact that might have a VM on your system). This means that all files relating to having a VM on your system are stored inside the hidden volume (vbox.exe is portable version of VM VirtualBox, so it is self-contained i.e. it does not install any other system files, registry entries, or other giveaways on your system.

  4. Cautama
    on June 24, 2016

    I used such a hidden volume in Veracrypt for about an year on a Windows laptop. One day I went away for 3 days but left my laptop behind. When I got back I opened the volume (80 GB) and it was all empty. That was the time when I decided to go back to TrueCrypt. Any idea why that happened?

    1. Douglas Crawford replied to Cautama
      on June 27, 2016

      Hi Cautama, Ouch! I'm afraid that I have no idea, but no software can be 100% guaranteed free of glitches...

Write Your Own Comment

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

  Your comment has been sent to the queue. It will appear shortly.