'Cannot deploy windows kernel driver to virtual machine
I'm trying to deploy a Kernel Mode Driver to a virtual machine.
The targe machine is a virtual machine on Hyper-V (Windows 10 x64 Enterprise), with boot debugging enabled :

I have setup a named pipe on COM1 serial port :

The host machine is also a Windows 10 x64 Enterprise, running Visual Studio 2019. I have followed this "hello world" guide to setup the project https://docs.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/writing-a-very-small-kmdf--driver :

The target device is configured as followed :

The name of the VM computer is "DESKTOP-IB38LAB". Both computers are on the same workgroup and can ping each other. The both appear in the Network tab. Firewall is disabled on both computers.

The status is "Unavailable", therefore the deploy fails with the message "Could not connect to the remote computer for deployment.".
If I choose "Provision device and choose debugger settings" instead :

Edit : I forgot to mention, the step 3 on this guide (https://docs.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/provision-a-target-computer-wdk-8-1) says :
"On the target computer, run the WDK Test Target Setup MSI that matches the platform of the target computer. You can find the MSI in the Windows Driver Kit (WDK) installation directory under Remote.
Example: C:\Program Files (x86)\Windows Kits\10\Remote\x64\WDK Test Target Setup x64-x64_en-us.msi"
But when I installed the WDK on the target computer, I only have these in this folder :

The name doesn't really match. I have ran both.
Note : I can bebug the target machine kernel with WinDbg using the named pipe.
Solution 1:[1]
I have mixed up "winsdksetup.exe" with "wdksetup.exe". The target machine needs the WDK (Windows Driver Kit) to be installed, not the Windows SDK (Software Developement Kit). Now I can find "WDK Test Target Setup x64-x64_en-us.exe" and everything works fine.
Solution 2:[2]
Unfortunately, at this moment it looks like Microsoft abandoned remote test machine kernel debugging and driver deployment from inside Visual Studio: there is a warning "Important! This feature is not available in Windows 10, version 1507 and later versions of the WDK." on the whole related chapter in MS developers docs https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/setting-up-kernel-mode-debugging-in-visual-studio
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | KVM |
| Solution 2 | Ornstein89 |

