How to Hyper-V unable to connect WMI namespace root\cimv2 to localhost

This is a practical experience the admin will share with you to be the network administrator. A case of saving Hyper-V god attorney

Contents

Symptoms

One fine day, Hyper-v system on 2012R2 platform was running deliciously, suddenly there was a power outage that was not enough to provide horizontal server shutdown, booting up but the Hyper-V error failed.

Problem affects

Consequently, after the power is restored, all other related services cannot run, including the most important Hyper-V service: (. Open, the error cannot run the VM

Cause

Experience sharing when the error is related should read the windows event log and find the correct error code for the new root case to handle quickly.

Check eventlog


In the same way, the horizontal outage causes the server to corrupt the file with the entire error VMI repository. The WMI namespace ‘root \ virtualization \ v2’ is not registered in the CIM repository

So what is VMI, it’s important that the error is always hyper-v

Windows Management Instrumentation (WMI) ?

Windows Management Instrumentation (WMI) is a set of specifications from Microsoft for consolidating the management of devices and applications in a network from Windows computing systems. WMI provides users with information about the status of local or remote computer systems. It also supports such actions as the configuration of security settings, setting and changing system properties, setting and changing permissions for authorized users and user groups, assigning and changing drive labels, scheduling processes to run at specific times, backing up the object repository, and enabling or disabling error logging.

WMI was the Microsoft implementation of Web Based Enterprise Management (WBEM), which is built on the Common Information Model (CIM), a computer industry standard for defining device and application characteristics so that system administrators and management programs can control devices and applications from multiple manufacturers or sources in the same way.

So the error VMI means that all the events of the system setting information are also error, as you see the file corrupted.rec.

SOLUTION

So, have identified the root case, trying to rebuild the VMI Repository is ok.

Case 1: check resync and repair

winmgmt /verifyrepository
If the repository is not corrupted, a “WMI Repository is consistent” 

Check repair

winmgmt /salvagerepository

reset

winmgmt /resetrepository


Case 2: Not at all

  1. Disable and stop the winmgmt service
  2. Remove or rename C:\Windows\System32\wbem\repository
  3. Enable and start the winmgmt service
  4. Open Command Prompt as Administrator
  5. Run the following commands:
cd C:\Windows\System32\wbem\
for /f %s in ('dir /b *.mof') do mofcomp %s
NOTE: This will take a minute or so to complete.
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
  1. Reboot and re-cretae WMI repository


Result

I’m so glad that the Hyper-V bug has been resolved, and it’s gone 🙂

Good luck to you

Phương nguyễn

hyper-v errrorvmi rebuild
Comments (22)
Add Comment
  • Arleen

    Please let me know if you’re looking for a author for
    your site. You have some really great articles and I feel I would be a good asset.
    If you ever want to take some of the load off, I’d really like to write some articles for your blog in exchange for a link back to mine.
    Please blast me an e-mail if interested. Kudos!

  • Margareta

    Good day! This is my first comment here so I just wanted to give a quick shout out and tell you I truly
    enjoy reading your blog posts. Can you suggest any other blogs/websites/forums that cover the same subjects?
    Thank you so much!

  • Julissa

    You need to be a part of a contest for one of the highest quality blogs on the net.

    I’m going to highly recommend this blog!

  • Shelli

    Hello! This post couldn’t be written any better! Reading through this post reminds me of my old room mate!
    He always kept chatting about this. I will forward this post to
    him. Fairly certain he will have a good read. Thanks for sharing!

  • Adeline

    constantly i used to read smaller posts which also clear their motive, and that
    is also happening with this piece of writing which I am reading here.

  • Divine Dynamic Keto

    I’ve been absent for a while, but now I remember why I used to
    love this site. Thanks, I will try and check back
    more often. How frequently you update your website?

    My web page Divine Dynamic Keto

  • www.jujumaow.com

    What’s Happening i am new to this, I stumbled upon this I’ve discovered It absolutely helpful and
    it has helped me out loads. I hope to give a contribution & assist other users like its
    aided me. Great job.

    My webpage; http://www.jujumaow.com

  • VitaSilkLux Review

    Having read this I believed it was really informative.
    I appreciate you finding the time and energy to put this informative article together.

    I once again find myself spending a lot of time
    both reading and posting comments. But so what, it was still worth it!

    Here is my site VitaSilkLux Review

  • Xoth Keto BHB Review

    Right here is the perfect site for anybody who would like to
    understand this topic. You realize so much its almost hard to argue
    with you (not that I personally would want to…HaHa).

    You certainly put a brand new spin on a topic that has
    been discussed for many years. Great stuff, just excellent!

    Feel free to visit my page :: Xoth Keto BHB Review

  • Leaf Max CBD

    Lovely site! I am loving it!! Will come back again. I am bookmarking your feeds also

    Here is my webpage … Leaf Max CBD

  • Betsoft Slots

    Hello, I log on to your blogs regularly. Your humoristic style is awesome,
    keep doing what you’re doing!

  • I Wukong333

    I’m gone to inform my little brother, that he should also pay a quick visit this webpage on regular basis
    to obtain updated from hottest information.

    Feel free to visit my page I Wukong333

  • jo.Hngjhhgdfghdh.dfeyujhgjfjhfhg@Okongwu.Chisom@shop.gmynsh.com

    That is a very good tіp particularly to those new to the blogosphere.
    Short ƅut very precise info… Thanks for sharing this one.
    A must reaqd article!

    Here iis my web page; bwrnie sanders t shirt – jo.Hngjhhgdfghdh.dfeyujhgjfjhfhg@Okongwu.Chisom@shop.gmynsh.com,

  • Columbus

    What i don’t realize is in fact how you
    are no longer really a lot more neatly-liked than you might be right now.
    You’re so intelligent. You recognize therefore significantly relating to this subject, produced me for my part consider it from so many various
    angles. Its like women and men are not fascinated unless it’s something to
    accomplish with Lady gaga! Your personal stuffs excellent.
    All the time care for it up!

  • Jesenia

    First off I want to say terrific blog! I had a quick question which
    I’d like to ask if you do not mind. I was interested to know how you center yourself and
    clear your head before writing. I have had a hard time
    clearing my thoughts in getting my thoughts out.
    I truly do take pleasure in writing however it just seems like the
    first 10 to 15 minutes tend to be lost simply just trying to figure out how to begin. Any
    suggestions or hints? Kudos!

  • Jenny

    Hi there excellent website! Does running a blog like
    this take a massive amount work? I’ve no understanding of programming however I was
    hoping to start my own blog in the near future. Anyways, should you have
    any ideas or tips for new blog owners please share. I know this is off topic nevertheless I simply wanted to ask.

    Thank you!

  • Google

    Google

    One of our visitors lately recommended the following website.