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

This image has an empty alt attribute; its file name is image.png

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

This image has an empty alt attribute; its file name is image-2-1024x815.png

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

CÓ THỂ BẠN QUAN TÂM
22 Comments
  1. Arleen nói

    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!

  2. Margareta nói

    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!

  3. Julissa nói

    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!

  4. Shelli nói

    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!

  5. Adeline nói

    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.

  6. Divine Dynamic Keto nói

    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

  7. bernie sanders T shirt funny nói

    Good ѕite you’ve got here.. It’s difficuⅼt to find exⅽеllent writing like yours nowadɑys.
    I honeswtly appreciate individuals like үou! Take care!!

    My web blog … bernie sanders T shirt funny

  8. Cryogen Air Conditioner nói

    Awesome things here. I am very happy to see your article.
    Thank you a lot and I am taking a look ahead to
    touch you. Will you kindly drop me a mail?

    my blog – Cryogen Air Conditioner

  9. www.jujumaow.com nói

    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

  10. VitaSilkLux Review nói

    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

  11. Xoth Keto BHB Review nói

    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

  12. Leaf Max CBD nói

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

    Here is my webpage … Leaf Max CBD

  13. Pure Optimum Keto Burn nói

    There is apparently a bunch to identify about this. I consider you made some nice points in features also.

    My web page … Pure Optimum Keto Burn

  14. Betsoft Slots nói

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

  15. I was wondering if you ever thought of changing the page layout of your website?
    Its very well written; I love what youve got to say. But maybe you could a little
    more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having one or two pictures.
    Maybe you could space it out better?

    Also visit my web site :: http://abishaimartialarts.com/index.php?action=profile;u=16460

  16. I Wukong333 nói

    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

  17. 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,

  18. Columbus nói

    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!

  19. Jesenia nói

    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!

  20. Jenny nói

    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!

  21. Google

    Google

    One of our visitors lately recommended the following website.

Được đóng lại, nhưng trackback và pingback được mở.