- Windows Computer (I'm using Win10)
- Linux Computer (I'm using Mint 20.1)
- External Drive
- The largest supported image size is 127GB, so if you have a bunch of personal files on your Windows computer, migrate it to a different drive..
- Download Disk2vhd.zip
- Plugin an external drive and format it to exFAT.
- Open Disk2vhd
- Select all of the drives, except for your USB drive and ceate a VHDX file. Set the save path to your external drive.
- Mine hung on the D: drive, so I cancelled it, this may be because the drive was failing, I'm not sure.
- Open Command Prompt as Administrator
- Get your product key with:
wmic path softwarelicensingservice get OA3xOriginalProductKey
- Otherwise, follow this guide: https://www.howtogeek.com/660517/how-to-find-your-windows-10-product-key-using-the-command-prompt/
- Install VirtualBox if you have not.
- Plug in your external drive.
- Open Terminal
mkdir -p mkdir -p "~/VirtualBox VMs/Win10Backup"
VBoxManage clonehd /path/to/<filename>.vhdx "~/VirtualBox VMs/Win10Backup/Win10HDD.vdi --format VDI"
- Wait awhile.
- Download Windows 10 ISO.
- Open Virtual Box
- Select Tools at the top, then the menu icon, then Media
- If you have stuff in there, remove it. Sometimes it adds everything and then doesn't work properly later.
- Click Add
- Select your Windows10HDD folder then Win10HDD.vdi
- Select Tools, menu, Welcome
- New
- Name: anything
- Machine Folder: default
- Type: Microsoft Windows
- Version: Windows 10
- NEXT
- Memory: minimum to have Win10 usable is 8GB
- NEXT
- Use an existing virutal hard disk file: select your Win10HDD.vdi
- OK
- Settings
- System
- Motherboard
- Boot Order: Uncheck Floppy
- Extended Features: Enable EFI (special OSes only)
- Processors: give it 4 cores minimum
- Display
- Screen
- Video Memory: 128MB
- Start the VM
- Wait until you get to the language selection screen
- SHIFT-F10 to open Command Prompt
diskpart
list vol
- You should see one with
RAW FS
sel vol #
assign letter=V:
exit
V:
format V: /FS:FAT32
bcdboot C:\windows /s V: /f UEFI
- Eject the Win10 ISO and reoot.
- This should boot into your Windows 10 disk image.
- Install Guest additions from the Devices menu.
Done.