using VM Ping question

Jan 21, 2009 at 10:01 PM

PS C:\Hyper-V PowerShell> Ping-VM MINARDIL

VMName                   : MINARDIL
FullyQualifiedDomainName : minardil
NetworkAddress           :
ResponseTime             :
ResponseTimeToLive       :
StatusCode               :
Status                   : Address not resolved

Where can I add the FQDN information for the VM to the above?  I am unable to find it in Hyper-V.

Thanks much,

Jan 26, 2009 at 4:21 PM

The way Ping VM works is

1. Use Key Value Pair exchange to get the FQDN of the VM. This will only work if the VM is running, and integration components are installed. This seems to be OK here-

2. Use WMI to ping that name. It's just a normal ping. If the FQDN is only a host name (as seems to be the case here) the best thing you can do is add it to your local hosts file. (My guess is if you try doing Ping MinardiL you'll get an error).

Jan 26, 2009 at 4:41 PM
Edited Jan 26, 2009 at 4:41 PM

Gotcha - the VM has to be running for the function to get the FQDN - when I run it on a VM that is running I get this

PS C:\PSHyperv> ping-vm eldacar

VMName                   : ELDACAR
FullyQualifiedDomainName :
NetworkAddress           :
ResponseTime             :
ResponseTimeToLive       :
StatusCode               : 11010
Status                   : Request Timed Out

(local firewall is dropping my ICMP)

PS C:\PSHyperv> ping-vm tarondor

VMName                   : TARONDOR
FullyQualifiedDomainName :
NetworkAddress           :
ResponseTime             : 0
ResponseTimeToLive       : 127
StatusCode               : 0
Status                   : Success


Thanks, James