Tag Archives: VHD

HOWTO compact vhd/vhdx Hyper-V files

It happened that the usual compact disk from Hyper-V Console doesn’t seem to be effective on one of my .vhdx file. Looking around on the web, I discovered that it is a quite common problem. The solution is to open a Powershell window with administrative access rights, and use the following command: optimize-vhd <offline Hyper-V disk file> -mode full For further details about this command, … Continue reading HOWTO compact vhd/vhdx Hyper-V files »

HOWTO add encrypted disks to your PC

Imagine being a contractor, and you want a secure black box to keep your customer data on your PC. This will come very useful, for example, in case of loss or theft of your notebook. A common approach is to encrypt the whole hard disk, but it has two main drawbacks: the whole system is slowed down by disk encryption. usually, it’s almost impossible to … Continue reading HOWTO add encrypted disks to your PC »

Virtualizing an old broken PC

Introduction A couple of weeks, a 12-15 year old desktop PC of mine died. After a quick investigation, it appeared to have some sort of electrical problem around the mainboard and the power supplier. I took a full week, to evaluate what to do. From the hardware point of view, it didn’t deserve any replacement. What is annoying me, is the 180€ for the Windows … Continue reading Virtualizing an old broken PC »

Mounting VHD files by command line

Today I needed to copy a DVD ISO image file outside a HyperV VM disk. I tried using Remote Desktop copy-and-paste feature but it failed. Looking over the web, I discovered that it is possible to mount .vhd file in order to access the contained files directly from the hosting machine.  This solution worked fine for me. According to this post, you have to: open … Continue reading Mounting VHD files by command line »