4

I'm unable to start a virtual machine on my newly installed instance of Hyper-V on Windows 8. Here is the error message I'm getting:

Could not find a usable certificate. Error: 'Element not found'

I've tried:

  • Re-installing Hyper-V
  • Restarting the Hyper-V service
  • The steps listed here.
  • Installing kb967902 (couldn't install it)

Any ideas?

Edit 1

The error occurs for a single VM that was created through Hyper-V. The VM currently has no OS on it (because it's newly created).

This is the only VM on Hyper-V. I'm simply trying to install XP on a VM so I can do some IE 8 testing.

Edit 2

I've tried all the steps in @MystereMan's answer & comments up to and including a reinstall of Hyper-V.

We've narrowed the problem down to a certificate not existing in vmms\Personal\Certificates.

Edit 3

Host name found: OMS144.WORKGROUP Creating a new certificate using makecert.exe Error: Can't create the key of the subject ('ac9fcedb-e695-4279-817d-fd1c98729dd6') Failed Unexpected Exception!

At C:\Users\OMS 144\Desktop\Untitled1.ps1:44 char:9+ throw “Certificate Not Found error. Check if makecert.exe is successful ...+ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At C:\Users\OMS 144\Desktop\Untitled1.ps1:11 char:20+ 0..100 | foreach { write-host -ForegroundColor White ((gv -ErrorAction Silen ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

System.Management.Automation.RuntimeException: Certificate Not Found error. Check if makecert.exe is successful or not

Edit 4

Certificate created successfully:

vmms\Trusted Root Certification Authorities\Certificates\OMS144.WORKGROUP

Error message persists.

James Hill
  • 1,089

1 Answers1

3

Hyper-V requires a CPU that supports Hardware Virtualization an it must be enabled in the BIOS. Verify that your CPU supports this (download CPU-z and check). Check the bios settings for virtualization support.

EDIT:

OK, this problem is probably because of an expired or corrupted certificate. Follow these steps:

  1. Open up a command prompt and type Services.msc. Go to Hyper-V Virtual Machine Management and stop the service.
  2. In the command prompt, type mmc and hit enter. In the File menu, choose Add/Remove Snap-in, select Certificates and then Add.
  3. In the next window select Service Account and Next. In the Select Computer select the default of Local Computer then Next.
  4. Now under the Service Account drill down to the Hyper-V Virtual Machine Management and select it then Finish and OK.
  5. Now in the left hand pane expand Certificates, vmms\Personal and highlight Certificates. In the right hand pane double click on the certificate, should show the Issued To as the host machine name.
  6. On the General tab of the certificate at the bottom it should show Valid from and a starting and ending date. The problem is that the certificate has expired.
  7. Now close the window for the certificate and then in the right hand pane right click and select delete.
  8. Go back to the Services.msc and restart the Hyper-V Virtual Machine Management service.
  9. Back to the MMC console and refresh the Personal\Certificates and you should see a new one there. Double click on it and verify the new valid dates.
  10. To be able to access the VM's now you will either have to restart the VM or simply use the save state then start the VM back up.