Virtualize Disks with Disk2VHD

To do a physical to…

Login

Blog History

To do a physical to virtual

https://learn.microsoft.com/en-us/sysinternals/downloads/disk2vhd

You can choose either to create in VHDX or VHD

To convert VHDX to VHD

If you create the disk in VHDX format and want to run it in Virtual Box you will need to convert it to VHD

Install Hyper-V on Windows and run the Convert-VHD powershell command:

Convert-VHD -Path .\HP-8200-ELITE-HDD-IMAGE.VHDX -DestinationPath .\HP-8200-ELITE-HDD-IMAGE.VHD

To convert VHD/VHDX to VMDK

On Linux or WSL2 install qemu-utils

sudo apt-get install qemu-utils
# if using WSL copy the VHD/VHDX to your linux home e.g. /home/user... to improve performance
qemu-img info HP-8200-ELITE-HDD-IMAGE.VHDX
qemu-img convert HP-8200-ELITE-HDD-IMAGE.VHDX -O vmdk HP-8200-ELITE-HDD-IMAGE.vmdk -p

Check the qemu docs as you can convert between alot of different formats

Virtual Box

To run on Virtual Box (needed if you want to do serial pass through as Hyper-V doesn't directly support it)

https://www.virtualbox.org/

To run Windows 10 / 11 Pro host and AutoAdminLogon with encrypted passwords

https://learn.microsoft.com/en-us/sysinternals/downloads/autologon

Add C:\Program Files\Oracle\VirtualBox to the system PATH if you want to use VBoxManage from the command line

VBoxManage.exe list vms

Run a VM from shortcut using either VM Name (The output of VBoxManage.exe list vms) or UUID

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm 99b10ceb-ffc9-4fb6-9d80-a24196ff1636

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.