How to unmount a VHD via command line in Windows 10

I need to unmount a VHD with a batch script in Windows 10. The only solution I found online was directed at Windows 7 and involved Diskpart. Are there any other native Windows command line tools available that can do the job? Answer Since I haven’t found a way to solely rely on MS-installed command … Read more

Possible to dual boot *and* virtualize same physical drive containing Windows 10?

I use Linux as my daily driver, and have just installed Windows 10 to a new physical disk in my PC for dual booting. For a while, I’ve used Windows 7 through a VirtualBox image I have mounted over iSCSI1. Now I have two different Windows environments and that’s very frustrating. I would love to … Read more

Powershell Resize-VHD is not recognized as the name of a cmdlet

I’m trying to use Resize-VHD cmdlet, but this results in the following error: PS> Resize-VHD -Path “C:\Container.vhd” -SizeBytes 20GB Error: Resize-VHD : The term ‘Resize-VHD’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the … Read more

How do I convert an .img file to vhd?

I have an image file (linux based image) and want to convert it to VHD so that it can be used to create hyper-V VMs. I used “qemu-img convert” to convert raw to vpc format, but vpc doesnt work for hyper-V and vhd is not supported by “qemu-img convert”. What would be the right way … Read more