How to Fix Hyper V Error: (0x80070539)
Microsoft Hyper-V is utilized for generating VMs, whether they are 32-bit or 64-bit, on the Windows operating system. In Windows 8 and above versions, Hyper-V took over the Windows Virtual PC functionality and became the primary hardware virtualization component for Windows devices.
Hyper-V facilitates the creation of virtual machines on Windows, whether they are client or server systems. The procedure for creating a VM in Hyper-V is fairly straightforward. In addition to other benefits offered by VMs, the ability to migrate or import VMs from one system to another is one of the notable features of this technology.
0x80070539 Hyper-V Error
When importing or migrating a VM, you will get the 0x80070539 Hyper-V Error. The issue might occur during import or when launching or initializing a VM.
The issue occurs due to differences between the environments (either on the same machine or on another PC) from where the VM is copied and where the VM is being imported. Due to this difference, the host machine cannot import or use the security certificates or details of the guest machine.
You may see any of the following errors when this happens:
The security ID structure is invalid (0x80070539) VM could not initialize 0x80070539 An error occurred while attempting to start the selected virtual machine(s). ‘vm-name’ could not initialize. An attempt to read or update virtual machine configuration failed. An attempt to read or update virtual machine configuration failed. ‘vm-name’ could not initialize. (Virtual machine ID) ‘vm-name’ could not read or update virtual machine configuration: The security ID structure is invalid. (0x80070539). (Virtual machine id: your-vm-ID)
How to Fix 0x80070539 Hyper-V Error
Usually, Hyper-V automatically assigns a security ID to a newly created VM but that is not the case with the imported machines. For imported VMs, manually adding the security ID into the VM configurations will do the trick.
Solution 1. Add a Valid User ID to the VM
On the host machine:
- Click Windows and search for PowerShell.
- Right-click on it and select as Run as Administrator.
- Execute the following but remember to replace the name of the VM and Domain and username with the actual details of your VM:
Grant-VMConnectAccess -VMName <Name of VM that is not starting> -UserName <Domain and username of the current user>
- Launch the VM and verify if the problem is solved.
For example, if you have a VM machine named appuals, run the following command:
Grant-VMConnectAccess -VMName " appuals" -UserName ".\Administrator"
Avoid the Error in the Future
Properly migrating a Hyper-V VM is the way to stop the recurrence of the error. You can
- Perform Hyper-V Live Migration
- Use the Hyper-V Manager
- Export and Import the Hyper-V VM
- Use the PowerShell
- Use a 3rd party App or service
1. Perform Hyper-V Live Migration
- Launch Server Manager and go to Tools > Hyper-V Manager.
- Right-click on the Hyper-V Manager and select Connect to Server.
- Enter the name of the server and click OK.
- Select the server and go to the Virtual Machines pane.
- Right-click on the desired VM and select Move.
- Follow the Move wizard to complete the process.
2. Use the PowerShell to Move the VM
- Launch the PowerShell as an administrator and execute the following:
Move-VM VMTest TestServer -IncludeStorage -DestinationStoragePath D:\VMTest
- Remember to replace VMTest with the required VM and TestServer with the destination server.
3. Export and Import VM
Export VM
- Launch the Hyper-V Manager and right-click on VM.
- Click on Export and select the destination of the exported VM.
- Click on Export and wait for the completion of the process.
Import VM
- Open the Hyper-V Manager and right-click on the destination host.
- Click on Import VM and follow the on-screen prompts to complete the process.
4. Use the Hyper-V Manager
Add the Destination Server
- Launch the Hyper-V Manager and right-click on it.
- Open Connect to Server and add the required source/destination servers.
Migrate Hyper-V VM:
- Right-click on the required VM and click on Move.
- Follow the on-screen prompts to complete the process.
5. Use Another App or Service
The Internet is your best friend to find the one that suits your needs to correctly migrate a Hyper-V VM.
If you have a query or suggestion, we are available in the comments section.