Hyper-V虚拟机管理服务(VMM)未在服务中列出

发布于 2025-01-26 10:07:49 字数 1655 浏览 3 评论 0原文

我最近在Windows 11家用机器上安装了Hyper-V。一切正常,直到有一天我从Hyper-V Manager中删除,我认为是我创建的虚拟机,但我认为我也删除了VMM?我不知道我是怎么做到的,问题是我不知道该怎么回来吗?
Hyper-V Manager现在看起来像这样:

服务窗口看起来像这样:

Windows功能窗口看起来像这样:

现在,我现在运行以下脚本

pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt
for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hv.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause

在我尝试创建新的虚拟机时,将Hyper-V进入了我的家庭版,我会收到以下错误:

我尝试了以下内容:

  1. 删除Hyper-V Windows功能,然后将其添加回;
  2. 重新运行PowerShell脚本;
  3. 从Hyper-V Manager中选择“连接到Servier ...”选项,然后选择本地计算机,但我会收到以下错误:

大多数在线建议都假定VMM位于服务窗口中,只需要启动,或者应该检查Hyper-V的Windows功能中的所有选项(它们是),或禁用任何其他选项 我确实

已经安装了虚拟盒和VMware工作站(它们都可以并排工作)。现在,我从控制板/程序和功能中删除了这些内容。但这没有影响。

我不知道如何重新安装VMM,因此任何建议都将不胜感激。谢谢

I recently installed Hyper-V on my Windows 11 home machine. All was working fine until one day I was deleting, from the Hyper-V Manager, what I thought were my created virtual machines but I think I also deleted the VMMS? I don't know how I did this and the issue is I don't know how to get it back?
The hyper-V manager now looks like this:
Hyper-V manager

The services window looks like this:
Windows service

The windows features window looks like this:
Windows Feature

I got hyper-V onto my home edition by running the following script

pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt
for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hv.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause

Now when I try to create a new virtual machine, I get the following error:
error message

I have tried the following:

  1. Removing the Hyper-V windows feature and then adding it back in;
  2. Re-running the powershell script;
  3. From Hyper-V Manager selecting the 'Connect to Servier...' option and then selecting local machine but I get the following error:
    manager error message

Most of the suggestions online assume the VMMS is in the services window and it just needs starting, or all options in the Windows Feature for hyper-v should be checked (which they are), or to disable any other hypervisors

I did have VirtualBox and VMWare workstation installed (and they all worked fine side-by-side). I have now removed these from the controlpanel/Program and Features. But this has had no effect.

I don't know how to re-install the VMMS so any advice would be really appreciated. Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文