Error restoring virtual machine - "failed to set security info"

RossW 0 Reputation points
2024-01-29T15:56:38.9566667+00:00

Hi, I have Home Assistant OS set up on a Hyper V and it has been working fine for a long time--but suddenly I am having an error restoring it. I'm getting the following message:

[Window Title] Virtual Machine Connection [Main Instruction] The application encountered an error while attempting to change the state of 'Home Assistant OS'. [Content] 'Home Assistant OS' failed to restore. [Expanded Information] (Virtual machine ID 57D59752-03FE-444C-A346-7AE17E9C5B40) [V] See details [Close]

In the event viewer, it says:

Failed to set security info for 'C:..........\haos_ova-10.3.vhdx': 'Access is denied.'('0x80070005').

I have gone to the permissions for the virtual hard drive and everything seems fine. Any suggestions?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,706 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue 36,751 Reputation points Microsoft Vendor
    2024-03-21T08:00:48.97+00:00

    Hi Ross,

    Hope you're doing well.

    The error message you're encountering indicates that there was a failure when attempting to restore the state of your Home Assistant OS virtual machine in Hyper-V. This could be due to various reasons, such as corruption in the virtual machine configuration or disk files, resource constraints, or issues with the underlying Hyper-V infrastructure.

    Here are some steps you can take to troubleshoot and resolve the issue:

    1. Verify that the virtual machine configuration settings are correct and haven't been inadvertently changed. Pay attention to settings such as memory allocation, virtual CPU count, and disk configuration.
    2. Check the status of the virtual hard disk (VHDX) associated with the Home Assistant OS virtual machine. Ensure that the disk file isn't corrupted and has sufficient free space on the host system.
    3. Sometimes, restarting the Hyper-V VMMS service can resolve temporary issues.
    4. Make sure that the host system has enough available resources (CPU, memory, disk space) to restore and run the virtual machine. If resource constraints are an issue, consider adjusting resource allocations or offloading other tasks from the host system.
    5. As a last resort, you may need to recreate the Home Assistant OS virtual machine from scratch. Before doing so, ensure that you have backups of any important data or configurations stored within the virtual machine.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.