Note: These instructions are for a specific use case and may not apply to your situation. If they help you, great! If not, support is available for $200/hr, minimum 5 hours.
- Decompress the .gz file with 7-Zip or similar. The result will be a single file, with no extension. (This is a raw partition image)
Convert the raw partition image to the appropriate format for your hypervisor. In Windows Powershell, you can convert to Hyper-V with a command like this:
& 'C:\Program Files\qemu\qemu-img.exe' convert .\lv_root-Mon -p -O vhdx lv_root-Mon.vhdx
- Important note: if you are doing this on an NTFS5 volume, qemu-img will automatically set the sparsefile attribute on the file. Hyper-V will not work with sparse or compressed virtual disk files. Use this PowerShell command to see if a file has the sparsefile attribute:
(Get-ItemProperty -Path .\lv_root-Mon.vhdx).attributes
- Once the file no longer has the sparsefile attribute, you can attach it to a VM like any other .vhdx file. The process for