VM sees host but not the other way around

Welcome Forums General PowerShell Q&A VM sees host but not the other way around

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
4 years, 3 months ago.

  • Author
    Posts
  • #18576

    Participant
    Points: 0
    Rank: Member

    Hello,

    I'm working on a script in my home lab and I need to use Invoke-Command to execute commands on a VM in the workgroup.
    I've added the destination machine, which is a guest VM, to the trusted host list on the Hyper-V host. Both machines are 2012 R2. I connected the guest into an external VM switch.

    When I run Test-Connection on the guest, it returns true, but the host cannot talk to the guest. I've been trying to troubleshoot it, but I can't imagine how is that possible. If the guest can talk to the host, why not the other way around? (There's another guest VM, which it can talk to.) Anybody has any idea?

  • #18577

    Member
    Points: 0
    Rank: Member

    Check your Windows Firewall settings on the guest; you might be blocking ICMP traffic, among other things. (The ping rules tend to contain text such as "Echo Request – ICMPv4-In" and "Echo Request – ICMPv6-In".)

  • #18580

    Participant
    Points: 0
    Rank: Member

    Thanks for the idea, the problem is solved. I just had to enable network sharing and discovery: netsh firewall set service fileandprint enable
    I should have thought 🙂

The topic ‘VM sees host but not the other way around’ is closed to new replies.