Tag Archives: Hyper-V

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 mine .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 Setup Hyper-V 2019 Server Outside a Domain

Hyper-V 2019 Server might be a great and free opportunity to host Hyper-V VMs. The main problem is that it’s quite an unfriendly & raw environment not set to live outside a network domain. Setting up a domain server for small labs, or similar realities can be quite expensive and not advantageous. Surfing the web, I found several sources to use it into a private … Continue reading HOWTO Setup Hyper-V 2019 Server Outside a Domain »

Mounting VHD files by command line

Today I needed to copy a DVD ISO image file outside a HyperV VM disk. I tried by 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 to the contained files directly from the hosting machine.  This solution worked fine for me. According to this post, … Continue reading Mounting VHD files by command line »