Hyper-V and Whonix?


Hello all?

Does anyone have any experience importing whonix into a hyper v virtual machine? Just finished a class on virtual machines and was gonna try to install whonix on a hyper v virtual machine, then edit the boot info to boot to the image.

I was wondering if anyone has any advice to doing this task.

Thanks, I graduate this may with an associates in computer science and still have a lot to learn!



No one ever shared any experiences in public to my knowledge.

Also see this answer:

It is theoretically possible, but practically it needs someone to do the original research. That someone could be you. Interested?


This is pretty old, but figured I could post this to help anyone else.
It’s actually pretty easy to do and doesn’t take too long.

Step 1) Download, extract, and install everything you need: Whonix images, dsfok tools, 7zip, Notepad++, Microsoft Virtual Machine Converter 3.0

Step 2) Open Whonix images using 7zip and extract .vmdk files somewhere like c:\temp
Step 3) Extract dsfok tools to some location like c:\temp
Step 4) using powershell or CMD prompt, enter a command like: c:\temp\dfso.exe "c:\temp\Whonix-Gateway-" 512 1024 descriptor.txt
to extract the descriptor files from VMDK file
Step 5) use notepad++ or similar to edit descriptor.txt, and comment out (Put # in front of) all lines starting with “ddb.uuid” and “ddb.comment” and save file.
Step 6) use a command like: c:\temp\dfsi.exe "c:\temp\Whonix-Gateway-" 512 1024 descriptor.txt to inject the descriptor back into the vmdk
Step 7) repeat steps 4-6 using Whonix-Workstation-

Now You have two VMDK files with modified descriptors, and you have installed Microsoft VM Converter 3.0 or newer

Step 8) Open Powershell and enter commands like this if you used c:\temp
1) To import the converter module to powershell: Import-Module "C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1"
2) To convert the VMDK file to VHDX: ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath "c:\temp\Whonix-Gateway-" -DestinationLiteralPath "c:\temp\Whonix-Gateway-" -VhdType DynamicHardDisk -VhdFormat Vhdx

Step 9) Create a generation 1 (Not a GEN 2 EFI) Hyper-V virtual machine and use the option for selecting an existing hard drive, and select the newly created VHDX file.

Step 10) Enjoy Whonix on Hyper-V!

EDIT after testing-------
Everything seems to function perfectly once its all setup.

The Whonix gateway has two network adapters.
One connected to the Internet and one for the Whonix internal network.
So on the Hyper-V host connect the Whonix gateway’s Internet facing interface to an “External” Virtual Switch and connect the internal interface to a “Private” virtual switch.
The Whonix workstation only connects to the “Private” switch.

Hope it helps!


Why bother when there are plenty of opensource VMMs?


OpenSource doesn’t matter to me in this particular situation. Hyper-V is available for free.
Hyper-V is/should generally be faster than most other hypervisors.
Hyper-V is what is already in use at my company, and I wanted to run whonix on one of our servers out in another country… I’m unable to change the hypervisor…

If someone else had posted it, it would have helped me… but nobody did, so I posted it… so maybe it will help someone else…
Why not?


so could you please share you experiences about running Whonix on Hyper-V? Did you face any difficulties? Any other thoughts?


Have a look:


How is VirtualBox Paravirtualization mode related to Hyper-V?


It supports Hyper-V and there is a bit of experience report there.


I’m using Whonix with Hyper-V.

I have no issues so far. Lookout for using the lagacy network adapter - also Gen 1 VMs.


Is there a community Hyper-V build I can download so that I can run Whonix right out of the box with Hyper-V? If not, can someone please upload their Hyper-V functional VHDXs?

I’ve been using Whonix with Virtualbox for the longest time, and I’d love to try it with Hyper-V but the above descriptions seem a bit… Too much for me.