How do I clone a physical Windows disk to a virtual disk?

Open | Windows

Hi all,

I used to have a Windows 7 OS for some years, until very recently I installed something that I'm thinking is some sort of crypto-mining process. Unkillable as it will simply restart itself, and will hog most of my RAM and CPU so without booting Windows in safe mode, I couldn't really use it anymore until it wasn't even able to boot properly anymore without safe mode. Using safe mode I uninstalled most of the no-longer-needed software that I had installed on the boot SSD and the storage HDD, all of my documents were already stored in a cloud, until I was ready to completely stop using Windows.

Then I grabbed a spare SSD, installed Linux Mint on it, and that's been my new base OS, and the SSD with Windows 7 on it is turned off since. Now I'd like to figure out what's going on with my Windows machine, and specifically I'd like to do that with a virtual machine instead of booting directly from the physical drive. Perhaps restore it to factory settings and use it as a Windows VM.

So my question is: how do I clone the entire Windows-disk with all of its partitions to a virtual disk that I can use as a Virtual Machine? I don't have any preference for Virtual Machine software so long as it's free and have currently installed Gnome Boxes and VirtualBox.

Sidenote: I know that the Windows drive contains ~100 GB of data, and I don't want to put that on my Mint OS SSD - instead I have a separate 1TB HDD for storage.

EDIT

Per one suggestion I tried booting from the Windows SSD once more to reach safe mode, but it wouldn't even register in the BIOS anymore so I definitely can no longer boot from it. Creating a live virtual disk while running Windows is therefore, sadly, out of the question. I can either fix the boot issue with the physical disk or with the virtual disk. I currently still have it plugged in and running Linux, and I can still see all of the files currenlty on the Windows drive, I just can't boot from it. So we're looking at a solution where I'm running Linux, and then making a copy of the connected but not running Windows drive.

Posted May 3, 2021, 7:38 PM UTC · edited

13
AutoModeratorMOD•

Windows 7 lost full support in January 2020, therefore we do not support it in this subreddit. It is recommended you immediately install Win10 (or another supported OS) to keep your machine and network secure. Your post has been filtered and will be approved if this action was a mistake.

For more information, read this post: https://www.reddit.com/r/techsupport/comments/eof66d/windows_7_support_has_ended_heres_how_to_keep/

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1
ID001452•

Disk2VHD App is a good place to start: https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd

https://www.serverwatch.com/guides/how-to-convert-a-physical-computer-to-a-virtual-machine/

It can create a .VDI image of a Hard Disk including a live system disk.

Also checkout Disk2VHD with Virtual Box.

1
DiamundoOP•

Hi, I just tried booting from the Windows drive but that's not gonna happen - BIOS won't even register a bootable OS from that. It does see the drive and when I'm booted into Linux I can see the files no problem. So running Windows and then creating a live copy won't work... Do you happen to have any ideas for making a copy of the drive while running Linux from the other drive?

1