询问者
虚拟交换机无法删除或修改

问题
全部回复
-
你好,
1. 请问在您删除该虚拟交换机之前,是否又VM连到这个虚拟交换机,如果有的话,先删除VM上的该虚拟交换机,确保没有VM使用了。
2. 如果没有VM在使用,但还是无法删除的话,请打开时间查看器,定位到Event Viewer>Applications and Services Logs>Microsoft>Windows>Hyper-V-VMMS>Admin & Operational, 查看该选项下有没有关于无法删除虚拟交换机的具体报错信息,如果有的话,请将报错信息提供给我们做进一步排查。
感谢您的时间!
Best Regards,
Anne
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com. -
您好
肯定是没有VM在使用这个虚拟交换机的;
我找了您说的日志admin中有很多报错但和虚拟交换机无关,是一个已删除虚拟找不到磁盘的报错
Operational中没有报错
倒是networking中有相关的报错
删除虚拟以太网交换机时失败。
<Provider Name="Microsoft-Windows-Hyper-V-VMMS" Guid="{6066F867-7CA1-4418-85FD-36E3F9C0600C}" /><EventID>26142</EventID><Version>0</Version><Level>2</Level><Task>0</Task><Opcode>0</Opcode><Keywords>0x4000000000000000</Keywords><TimeCreated SystemTime="2020-08-12T09:04:35.233249100Z" /><EventRecordID>147</EventRecordID><Correlation /><Execution ProcessID="19192" ThreadID="14172" /><Channel>Microsoft-Windows-Hyper-V-VMMS-Networking</Channel><Computer>SR.com</Computer><Security UserID="S-1-5-18" /></System><VmlEventLog xmlns:auto-ns2="http://schemas.microsoft.com/win/2004/08/events" xmlns="http://www.microsoft.com/Windows/Virtualization/Events" /></UserData></Event>
以上是报错信息
另外我尝试过PS删除,依然不成功
net winsock reset并重启宿主机依然无法删除。
- 已编辑 forsylvanas 2020年8月12日 9:12 补充
-
你好,
抱歉回复晚了。
那我们尝试一下从注册表直接删除这个虚拟交换机看看。
打开注册表,定位到:HKLM\SYSTEM\CurrentControlSet\Services\VMSMP\Parameters\SwitchList,点开switch的GUID,可以看到FriendlyName, 找到您想要删除的虚拟交换机,将该交换机的条目备份然后删除,备份是以防您误操作。删除后重启机器,看看是否成功删除:
感谢您的时间!如果该方法有效的话,请将回复标记为答案。
Best Regards,
Anne
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- 已建议为答案 Anne HeMicrosoft contingent staff, Moderator 2020年8月19日 7:16
-
你好,
请问您是否试了我上面提供的方法删除虚拟交换机,是否可以成功?欢迎反馈。
如果回复对您有帮助的话,请将有用的回复标记为答案,这样别人遇到相同的问题,可以更好的找到有用信息。感谢您的时间!
Best Regards,
Anne
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.