Importing Hyper-V Virtual Machines Used With SCVMM into Hyper-V Manager
I recently ran into an issue importing some virtual machines that had been used with SCVMM into Hyper-V. I needed to export the virtual machines for use with a development environment while still leaving the originals where they were in SCVMM. The procedure I was using was:
- Shut down the virtual machines to be exported
- Export the virtual machines using Hyper-V on the virtual host
- Copy the exported virtual machines to another host not connected to SCVMM
- Attempt to import the virtual machines (copy, create a new ID)
This failed with the following error message:
This is because SCVMM adds a security section into the virtual machine xml file which stops the Hyper-V import process. An example from one of the virtual machines I was attempting to import is:
O:S-1-0-0D:(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-16695)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-16726)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-18157)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-18645)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;DA)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;SY)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-500)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-1703)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-1110)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-15767)(OA;;CC;5cf72d6e-61d5-4fbe-a05c-1e3c28d742fa;;S-1-5-21-583907252-842925246-1060284298-1694)
Manually removing the security section from the virtual machine xml file allowed Hyper-V Manager to successfully complete the import process.