How to Fix a Missing Virtual Machine in Hyper-V Manager


virtual machine missing from hyper v manager
Image credit: Microsoft

If your virtual machine is missing from Hyper-V Manager, the issue may involve an incorrect host connection, a stopped Hyper-V service, or a missing VM configuration file. You can often restore the VM without losing its virtual hard disk or data.

What Can I Do If Virtual Machine Is Missing From Hyper-V Manager?

1. Refresh Hyper-V Manager and check the host connection

Hyper-V Manager may not display your virtual machine if you’re connected to the wrong host or the console hasn’t refreshed.

  1. Open Hyper-V Manager.
  2. Select the correct computer under Hyper-V Manager in the left pane.
  3. Click Refresh in the Actions panel.
  4. If the VM remains missing, click Connect to Server and reconnect to the correct host.
  5. Close and reopen Hyper-V Manager.

If you use multiple Hyper-V hosts, check whether the VM resides on another server.

2. Check whether PowerShell detects the missing VM

PowerShell can help determine whether Hyper-V still recognizes the virtual machine.

  1. Open PowerShell as administrator.
    Powershell - mpengine.dll
  2. Run the following command: Get-VM
  3. Check whether your missing virtual machine appears in the results.
  4. For a remote Hyper-V server, run: Get-VM -ComputerName "ServerName"
  5. Replace ServerName with the correct Hyper-V host name.

If PowerShell detects the VM but Hyper-V Manager doesn’t, reconnect the management console.

If neither tool detects it, check the VM configuration files.

3. Check the Hyper-V Virtual Machine Management service

The Hyper-V Virtual Machine Management service (VMMS) handles virtual machine management operations.

  1. Press Windows + R, type services.msc, and press Enter.
  2. Locate Hyper-V Virtual Machine Management.
  3. Check its status.
  4. If the service isn’t running, right-click it and select Start.
    re-run service to fix ERROR_EVENT_PENDING
  5. Reopen Hyper-V Manager and check the VM list.

Avoid restarting VMMS unnecessarily on production hosts because doing so can temporarily interrupt VM management operations.

4. Locate the missing virtual machine configuration files

Hyper-V stores virtual machine configuration information in .vmcx files.

  1. Open File Explorer.
  2. Navigate to the default configuration directory: C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines
  3. Check whether the directory contains .vmcx files.
  4. If you configured a custom VM location, check that folder instead.
  5. Also locate the virtual hard disk files, usually ending in .vhdx.

If the VM configuration exists but Hyper-V doesn’t recognize it, you may need to import the VM again.

5. Import the missing virtual machine back into Hyper-V

If your virtual machine files still exist, you can try registering the VM again.

  1. Open Hyper-V Manager.
  2. Select the correct host.
  3. Click Import Virtual Machine in the Actions panel.
    import virtual machine
  4. Click Next and browse to the folder containing the VM configuration.
  5. Select the missing virtual machine.
  6. Choose Register the virtual machine in-place (use the existing unique ID).
  7. Complete the wizard.

Alternatively, use PowerShell to register an existing .vmcx configuration:

Import-VM -Path "D:\Hyper-V\Virtual Machines\VM-ID.vmcx" -Register

Replace the example path with your actual configuration file location.

This method preserves the existing VM files. However, it requires a valid configuration file and access to the original storage paths.

6. Create a new VM using the existing virtual hard disk

If the configuration file is missing but the .vhdx file still exists, create a new VM and attach the existing disk.

  1. Open Hyper-V Manager.
  2. Click New > Virtual Machine.
  3. Enter a name for the VM.
  4. Select the same VM generation as the original machine.
  5. Configure memory and networking.
  6. Under Connect Virtual Hard Disk, select Use an existing virtual hard disk.
  7. Browse to the original .vhdx file.
  8. Finish the wizard and start the VM.

Make sure you select the correct VM generation and restore any necessary security, networking, and hardware settings.

Important: If the original VM used checkpoints and you find .avhdx files, do not attach the base .vhdx without first checking the checkpoint chain. Doing so may cause you to lose access to recent changes.

7. Check Event Viewer for Hyper-V errors

If the VM still doesn’t appear, examine the Hyper-V event logs.

  1. Press Windows + R, type eventvwr.msc, and press Enter.
  2. Navigate to Applications and Services Logs > Microsoft > Windows.
  3. Expand Hyper-V-VMMS.
  4. Open the Admin log.
  5. Look for errors involving missing configuration files, storage access, or permissions.
  6. Resolve the reported problem and refresh Hyper-V Manager.

For clustered virtual machines, also check Failover Cluster Manager and the shared storage connection.

When a virtual machine disappears from Hyper-V Manager, verify the host connection, check the management service, and locate the original VM files. You can often recover the machine by importing its configuration or attaching its existing virtual hard disk to a new VM.

If you encounter permission issues during recovery, check how to fix the Hyper-V not authorized to connect error. After restoring your VM, you may also need to add a network adapter in Hyper-V or resolve issues that prevent you from extending a volume in Hyper-V.

Frequently asked questions

Why did my virtual machine disappear from Hyper-V Manager?

A VM can disappear because of an incorrect host connection, missing configuration files, storage problems, or Hyper-V management service issues. The virtual hard disk may still exist even if Hyper-V no longer lists the VM.

How do I recover a missing virtual machine in Hyper-V?

Locate the VM’s configuration file and use Hyper-V Manager’s Import Virtual Machine wizard. If the configuration no longer exists, you can create a new VM and attach the original virtual hard disk, provided you account for any existing checkpoints.

Why does Hyper-V Manager show no virtual machines?

Hyper-V Manager may show an empty list when you’re connected to the wrong server, the management service isn’t running, or Hyper-V cannot access its VM configurations. Run Get-VM in PowerShell to check whether the host recognizes any virtual machines.

Can I restore a Hyper-V virtual machine without a backup?

Yes, if the original virtual hard disk still exists and remains usable. You can create a new VM and attach the existing VHDX file. However, if the disk is missing, damaged, or depends on unavailable checkpoint files, recovery may require additional tools or a backup.

More about the topics: Hyper-V issues, virtual machine, Windows 11 Fix

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

User forum

0 messages