I have a windows 7 client, and several windows 2008 R2 hosts running Hyper-v. I used to be able to remote manage those hosts from the windows 7 Client, however, some servers suddenly lost the connection. At the beginning, I saw the RPC server unavailable error on one host, after a few days, there's another one. Now, I have 5 servers having the same error. I use the same configuration for all those servers, there's nothing changed recently. I am not sure why this happens.
I had tried disable firewall on both client and hosts, restarted winmgmt and vmms
I tried to use hvremote.swf script to check the connectives between client and hosts, I got the following error when I test from client to host:
*7: - Async notification query to root\virtualization WMI namespace
FAIL - Notification query failed The RPC server is unavailable.*
Windows 7 Client IP: 192.168.10.244
One Windows 2008 r2 host IP : 192.168.10.4
From windows 7 client to windows 2008 r2 host
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\hyperv>cscript hvremote.wsf /show /target:windows2008r2host
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Hyper-V Remote Management Configuration & Checkup Utility
John Howard, Hyper-V Team, Microsoft Corporation.
http://blogs.technet.com/jhoward
Version 0.7 7th August 2009
INFO: Computername is windows7client
INFO: Computer is in workgroup WORKGROUP
INFO: Current user is windows7client\clientuser
INFO: Assuming /mode:client as the Hyper-V role is not installed
INFO: Build 7600.17017.amd64fre.win7_gdr.120503-2030
INFO: Detected Windows 7/Windows Server 2008 R2 OS
INFO: This appears to be a server SKU
-------------------------------------------------------------------------------
DACL for COM Security Access Permissions
-------------------------------------------------------------------------------
\Everyone (S-1-1-0)
Allow: LocalLaunch RemoteLaunch (7)
BUILTIN\Performance Log Users (S-1-5-32-559)
Allow: LocalLaunch RemoteLaunch (7)
BUILTIN\Distributed COM Users (S-1-5-32-562)
Allow: LocalLaunch RemoteLaunch (7)
NT AUTHORITY\ANONYMOUS LOGON (S-1-5-7)
Allow: LocalLaunch RemoteLaunch (7)
-------------------------------------------------------------------------------
ANONYMOUS LOGON Machine DCOM Access
-------------------------------------------------------------------------------
ANONYMOUS LOGON has remote access
-------------------------------------------------------------------------------
Firewall Settings for Hyper-V Management Clients
-------------------------------------------------------------------------------
Private Firewall Profile is active
Public Firewall Profile is active
Enabled: Hyper-V Management Clients - WMI (Async-In)
Enabled: Hyper-V Management Clients - WMI (TCP-Out)
Enabled: Hyper-V Management Clients - WMI (TCP-In)
Enabled: Hyper-V Management Clients - WMI (DCOM-In)
-------------------------------------------------------------------------------
Windows Firewall exception rule(s) for mmc.exe
-------------------------------------------------------------------------------
Private Firewall Profile is active
Public Firewall Profile is active
Enabled: Microsoft Management Console (UDP)
Enabled: Microsoft Management Console (TCP)
Enabled: Microsoft Management Console (UDP)
Enabled: Microsoft Management Console (TCP)
-------------------------------------------------------------------------------
IP Configuration
-------------------------------------------------------------------------------
Windows IP Configuration
Host Name . . . . . . . . . . . . : windows7client
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Virtual Machine Bus Network Ada
pter
Physical Address. . . . . . . . . : 00-15-5D-63-DD-51
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6153:af24:5d7d:2670%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.10.244(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.10.254
DHCPv6 IAID . . . . . . . . . . . : 234886493
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-D0-0B-1E-00-15-5D-63-DD-51
DNS Servers . . . . . . . . . . . : 8.8.8.8
8.8.4.4
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{CF85E17D-436D-498C-823D-1BE7CEE8ED2D}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{794716C4-28E0-452F-ABEE-CF9798810420}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
-------------------------------------------------------------------------------
Stored Credentials
-------------------------------------------------------------------------------
Currently stored credentials:
Target: Domain:target=TERMSRV/192.168.10.4
Type: Domain Password
User: administrator
Local machine persistence
-------------------------------------------------------------------------------
Testing connectivity to server:windows2008r2host
-------------------------------------------------------------------------------
1: - nslookup for DNS verification.
Note that failure is OK if you don't have a DNS infrastructure
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Server: google-public-dns-a.google.com
Address: 8.8.8.8
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
2: - ping attempt (ping -4 -n -1 windows2008r2host)
Note the ping may timeout - that is OK. However, if you get an
error that windows2008r2host could not be found, you need to fix DNS
or add an entry to the hosts file. Test 3 will fail and provide more
guidance.
This may take a second or two...
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Pinging windows2008r2host 192.168.10.4 with 32 bytes of data:
Reply from 192.168.10.4: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.10.4:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
3: - Connect to root\cimv2 WMI namespace
PASS - Connection established
4: - Connect to root\virtualization WMI namespace
PASS - Connection established
5: - Simple query to root\cimv2 WMI namespace
PASS - Simple query succeeded
6: - Simple query to root\virtualization WMI namespace
PASS - Simple query succeeded
- 9 computer system(s) located
7: - Async notification query to root\virtualization WMI namespace
FAIL - Notification query failed The RPC server is unavailable.
The most likely cause of this failure is that you have not restarted the
server after having added a user account for the first time. Either restart
the server, or restart the Windows Management Instrumentation service
and all dependent services on the server before retrying.
Alternately, there is a DNS issue and the server cannot locate this
machine. You should check this by performing a ping test from the
server to this machine verifying that the IP address the server
is trying to reach matches the IPv4 address shown in the output above.
Note that it does not matter if the ping succeeds or fails, just that
the IP address is correct.
Run on windows2008r2host: ping -4 windows7client
Note that if you do not have DNS in your infrastructure, you can edit
the \windows\system32\drivers\etc\hosts file on the server to add an
entry for windows7client
If you do have DNS in your infrastructure, you may want to try flushing
the DNS cache on the server, and re-registering against DNS on the client
Run on windows2008r2host: ipconfig /flushdns
Run on windows7client: ipconfig /registerdns
If you are connected over a VPN, see http://tinyurl.com/o4lsbw for
information about another likely cause.
INFO: Are running the latest version
-------------------------------------------------------------------------------
1 warning(s) or error(s) were found in the configuration. Review the
detailed output above to determine whether you need to take further action.
Summary is below.
1: Cannot perform async query against root\virtualization
Please see resolution steps above.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
From windows 2008 r2 host to windows 7 client
C:\hyperv>cscript hvremote.wsf /show /target:windows7client
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Hyper-V Remote Management Configuration & Checkup U
I had tried disable firewall on both client and hosts, restarted winmgmt and vmms
I tried to use hvremote.swf script to check the connectives between client and hosts, I got the following error when I test from client to host:
*7: - Async notification query to root\virtualization WMI namespace
FAIL - Notification query failed The RPC server is unavailable.*
Windows 7 Client IP: 192.168.10.244
One Windows 2008 r2 host IP : 192.168.10.4
From windows 7 client to windows 2008 r2 host
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\hyperv>cscript hvremote.wsf /show /target:windows2008r2host
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Hyper-V Remote Management Configuration & Checkup Utility
John Howard, Hyper-V Team, Microsoft Corporation.
http://blogs.technet.com/jhoward
Version 0.7 7th August 2009
INFO: Computername is windows7client
INFO: Computer is in workgroup WORKGROUP
INFO: Current user is windows7client\clientuser
INFO: Assuming /mode:client as the Hyper-V role is not installed
INFO: Build 7600.17017.amd64fre.win7_gdr.120503-2030
INFO: Detected Windows 7/Windows Server 2008 R2 OS
INFO: This appears to be a server SKU
-------------------------------------------------------------------------------
DACL for COM Security Access Permissions
-------------------------------------------------------------------------------
\Everyone (S-1-1-0)
Allow: LocalLaunch RemoteLaunch (7)
BUILTIN\Performance Log Users (S-1-5-32-559)
Allow: LocalLaunch RemoteLaunch (7)
BUILTIN\Distributed COM Users (S-1-5-32-562)
Allow: LocalLaunch RemoteLaunch (7)
NT AUTHORITY\ANONYMOUS LOGON (S-1-5-7)
Allow: LocalLaunch RemoteLaunch (7)
-------------------------------------------------------------------------------
ANONYMOUS LOGON Machine DCOM Access
-------------------------------------------------------------------------------
ANONYMOUS LOGON has remote access
-------------------------------------------------------------------------------
Firewall Settings for Hyper-V Management Clients
-------------------------------------------------------------------------------
Private Firewall Profile is active
Public Firewall Profile is active
Enabled: Hyper-V Management Clients - WMI (Async-In)
Enabled: Hyper-V Management Clients - WMI (TCP-Out)
Enabled: Hyper-V Management Clients - WMI (TCP-In)
Enabled: Hyper-V Management Clients - WMI (DCOM-In)
-------------------------------------------------------------------------------
Windows Firewall exception rule(s) for mmc.exe
-------------------------------------------------------------------------------
Private Firewall Profile is active
Public Firewall Profile is active
Enabled: Microsoft Management Console (UDP)
Enabled: Microsoft Management Console (TCP)
Enabled: Microsoft Management Console (UDP)
Enabled: Microsoft Management Console (TCP)
-------------------------------------------------------------------------------
IP Configuration
-------------------------------------------------------------------------------
Windows IP Configuration
Host Name . . . . . . . . . . . . : windows7client
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Virtual Machine Bus Network Ada
pter
Physical Address. . . . . . . . . : 00-15-5D-63-DD-51
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6153:af24:5d7d:2670%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.10.244(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.10.254
DHCPv6 IAID . . . . . . . . . . . : 234886493
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-D0-0B-1E-00-15-5D-63-DD-51
DNS Servers . . . . . . . . . . . : 8.8.8.8
8.8.4.4
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{CF85E17D-436D-498C-823D-1BE7CEE8ED2D}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{794716C4-28E0-452F-ABEE-CF9798810420}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
-------------------------------------------------------------------------------
Stored Credentials
-------------------------------------------------------------------------------
Currently stored credentials:
Target: Domain:target=TERMSRV/192.168.10.4
Type: Domain Password
User: administrator
Local machine persistence
-------------------------------------------------------------------------------
Testing connectivity to server:windows2008r2host
-------------------------------------------------------------------------------
1: - nslookup for DNS verification.
Note that failure is OK if you don't have a DNS infrastructure
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Server: google-public-dns-a.google.com
Address: 8.8.8.8
- google-public-dns-a.google.com can't find windows2008r2host: Non-existent domain
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
2: - ping attempt (ping -4 -n -1 windows2008r2host)
Note the ping may timeout - that is OK. However, if you get an
error that windows2008r2host could not be found, you need to fix DNS
or add an entry to the hosts file. Test 3 will fail and provide more
guidance.
This may take a second or two...
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Pinging windows2008r2host 192.168.10.4 with 32 bytes of data:
Reply from 192.168.10.4: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.10.4:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
3: - Connect to root\cimv2 WMI namespace
PASS - Connection established
4: - Connect to root\virtualization WMI namespace
PASS - Connection established
5: - Simple query to root\cimv2 WMI namespace
PASS - Simple query succeeded
6: - Simple query to root\virtualization WMI namespace
PASS - Simple query succeeded
- 9 computer system(s) located
7: - Async notification query to root\virtualization WMI namespace
FAIL - Notification query failed The RPC server is unavailable.
The most likely cause of this failure is that you have not restarted the
server after having added a user account for the first time. Either restart
the server, or restart the Windows Management Instrumentation service
and all dependent services on the server before retrying.
Alternately, there is a DNS issue and the server cannot locate this
machine. You should check this by performing a ping test from the
server to this machine verifying that the IP address the server
is trying to reach matches the IPv4 address shown in the output above.
Note that it does not matter if the ping succeeds or fails, just that
the IP address is correct.
Run on windows2008r2host: ping -4 windows7client
Note that if you do not have DNS in your infrastructure, you can edit
the \windows\system32\drivers\etc\hosts file on the server to add an
entry for windows7client
If you do have DNS in your infrastructure, you may want to try flushing
the DNS cache on the server, and re-registering against DNS on the client
Run on windows2008r2host: ipconfig /flushdns
Run on windows7client: ipconfig /registerdns
If you are connected over a VPN, see http://tinyurl.com/o4lsbw for
information about another likely cause.
INFO: Are running the latest version
-------------------------------------------------------------------------------
1 warning(s) or error(s) were found in the configuration. Review the
detailed output above to determine whether you need to take further action.
Summary is below.
1: Cannot perform async query against root\virtualization
Please see resolution steps above.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
From windows 2008 r2 host to windows 7 client
C:\hyperv>cscript hvremote.wsf /show /target:windows7client
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Hyper-V Remote Management Configuration & Checkup U