Unable to connect to host drive from Hyper-V VM when using external switch


Hong Dajing

I have a Windows 10 Pro computer (Creators Edition, build 1703) with Hyper-V installed, and a Win 10 Pro VM (same build). At first everything seemed to work fine when the virtual machine was using the internal virtual switch. I changed it to an external switch connected to Wifi because I need an internet connection. But now I can't access the shared folder on the host.

I have network discovery and file/printer sharing enabled for all network types (private, domain, public) on the host and VM:

enter image description here

In the VM's explorer, I can see the host displayed under the "Network" tree. But trying to access anything there results in an error.

enter image description here

I do have a shared folder on the host drive D, which I've managed to access before.

More information: I'm working from home on a domain-joined PC. The IP addresses for the host and VM are 192.168.0.3 and 192.168.0.2 respectively. The subnet mask is 255.255.255.0 for both.

The admin policy won't let me disable the firewall on the host, however I can access a shared folder on the VM from the host (it's the other way around that's causing the problem). Ping works both ways. A screenshot of firewall rules that seem relevant:

enter image description here

Hong Ooie

I managed to solve the problem (or maybe it's more of a workaround) by adding an internal switch to the VM, to go with the external one. After doing that, I could access my folder.

The caveat is that I had to use the IP address (169.254.xxx.yyy) to refer to the host instead of the computer name, but that was enough.

Related


Unable to connect to VirtualBox VM from Kubuntu host using NAT

Gilberts I am using Kubuntu 13 as host and Xubuntu 12 as guest. In the VM network options, I selected NAT, and like 127.0.0.1:23 => 10.0.2.15:22. I can access the internet from the guest, but when I try to SSH to the guest, I get connection refused. Recently I

Lost connection to Hyper V host after creating external switch

Rob Methven Background: Our SAS disk failure was part of a RAID 10 array. Unfortunately, when it fails, it also takes its mirrored pair offline in the SPAN, meaning the entire array is unrecoverable. We have backups so no big issues there. We bought a couple o

Lost connection to Hyper V host after creating external switch

Rob Methven Background: Our SAS disk failure was part of a RAID 10 array. Unfortunately, when it fails, it also takes its mirrored pair offline in the SPAN, meaning the entire array is unrecoverable. We have backups so no big issues there. We bought a couple o

Unable to connect to MySQL VM from host

oshirowanen I have a Ubuntu 18.04 Desktop 64 bithost. On this host, I created one using VirtualBox Ubuntu 18.04 Server 64 bit VM, installed MySQL on it, and created a MySQL user, a database, and a table. I have set the network adapter in this virtual machine t

Remotely connect to a Hyper-V machine from a VM

Helena Raya I'm new to Hyper-V concepts and how they work, so I'm not sure if this is a good question. I have a server with Hyper-V and I connect to a VM (VM1) from Hyper-V. VM1 contains Orchestrator, which will be used to automate some of the jobs associated

Hyper-V on Windows 8.1: Unable to share VHDX between VM and host

Matthias Güntert I want to share a VHDX file attached to my VM (and Win8.1) with the host system. For this, I have enabled advanced features in the VM under the SCSI controller "Activate Virtual Hard Disk Sharing" (translated from German to English). Unfortuna

Hyper-V on Windows 8.1: Unable to share VHDX between VM and host

Matthias Güntert I want to share a VHDX file attached to my VM (and Win8.1) with the host system. For this, I have enabled advanced features in the VM under the SCSI controller "Activate virtual hard disk sharing" (translated from german to english). Unfortuna

Unable to connect external hard drive to PC

Mubashir A. Salam I've been trying to connect an external HDD to a PC for a while now (this HDD is for media content only). I don't want to install this hard drive to a PC, I just want to see what's already stored on the hard drive. I've been seeing other ques

Unable to connect external hard drive to PC

Mubashir A. Salam I've been trying to connect an external HDD to a PC for a while now (this HDD is for media content only). I don't want to install this hard drive to a PC, I just want to see what's already stored on the hard drive. I've been seeing other ques

Hyper-V virtual switch issue: same IP on guest and host

albert I installed Hyper-V on a Windows 10 laptop and configured an Ubuntu VM on it. The Ubuntu network adapter is connected with the external virtual switch I created. With this configuration, I would expect that the host and guest should get different IP add

Hyper-V virtual switch issue: same IP on guest and host

albert I installed Hyper-V on a Windows 10 laptop and configured an Ubuntu VM on it. The Ubuntu network adapter is connected with the external virtual switch I created. With this configuration, I would expect that the host and guest should get different IP add

Hyper-V virtual switch issue: same IP on guest and host

albert I installed Hyper-V on a Windows 10 laptop and configured an Ubuntu VM on it. The Ubuntu network adapter is connected with the external virtual switch I created. With this configuration, I would expect that the host and guest should get different IP add

Unable to connect MemoryStore from VM

Dekuji I have created VM instance and MemoryStore instance in the same project but can't connect from VM. # telnet 192.168.1.4 6379 Trying 192.168.1.4... telnet: connect to address 192.168.1.4: Connection timed out The VPC that the VM belongs to is designated

Unable to connect MemoryStore from VM

Dekuji I have created VM instance and MemoryStore instance in the same project but can't connect from VM. # telnet 192.168.1.4 6379 Trying 192.168.1.4... telnet: connect to address 192.168.1.4: Connection timed out The VPC that the VM belongs to is designated

Unable to connect to mysql database from VM using Java

Florina On my host I have Wamp installed and I can connect using PHP or a browser. My client is a virtual machine using Linux and I'm trying to connect to a database on the host to add some entries to it. Here is my code: Connection conn = null; try { Stri

Unable to connect to mysql database from VM using Java

Florina On my host I have Wamp installed and I can connect using PHP or a browser. My client is a virtual machine using Linux and I'm trying to connect to a database on the host to add some entries to it. Here is my code: Connection conn = null; try { Stri

Unable to connect to mysql database from VM using Java

Florina On my host I have Wamp installed and I can connect using PHP or a browser. My client is a virtual machine using Linux and I'm trying to connect to a database on the host to add some entries to it. Here is my code: Connection conn = null; try { Stri

Run a VM from an external SSD drive

Jonathan Wood I'm using VMware Workstation 14 Pro and I'm trying to run a virtual machine downloaded from Microsoft and saved to an external USB solid state drive. However, when I try to open that VM (by selecting File | Open and navigating to the path on that

Converting VM to Hyper-V, unable to activate dialog via Windows

Registry edit Note: This is not a standard "Windows activation hell" problem where users get stuck in a loop. Background: I keep an old VM with XP and Office 2003 to support an elderly couple who learned computers later in life and are unlikely to upgrade now.

Powershell: Unable to create new Hyper-v VM remotely

home network Honey, To simplify our current setup. We have SRV01, SRV02 and SRV03. All Windows Server 2016 with Hyper-v installed and joined to our domain. SRV01 hosts all servers on the same network subnet with the shared folder "\\SRV01\VM-ONLINE-STORAGE\Tes