enabling kdnet in vm - how to enable kdnet in hyper-v vm when having multiple VNICs inside vm?

Sagar Jadhav 46 Reputation points
2021-01-30T15:02:16.633+00:00

I have one VM with two virtual NICs attached to it - one for mgmt and one private

Followed this document to enable Kdnet inside VM.
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/setting-up-network-debugging-of-a-virtual-machine-host

Using this method I can not provide which virtual NIC to use for KDNET debugging and its selecting the private network interface to enable kdnet which I dont want.

So how can I specify which virtual network interface to use for kdnet inside a VM when we have multiple virtual network adapter present in VM? Please let me know if there is any way.

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,763 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaowei He 9,911 Reputation points
    2021-02-01T07:13:51.843+00:00

    Hi,

    1. Do you create the external virtual switch on the VM, if yes, what is the subnet of the network?
    2. On the Hyper V host, please provide the ipconfig /all result of the external virtual switch NIC's IP address (please clear the last IP number to prevent your privacy).
    3. On the target VM, please also provide the ipconfig /all result of the two NICs (please clear the last IP number to prevent your privacy).
    4. On the target VM, please provide the result of "C:\KDNET>kdnet", exampled in the article.
    5. Besides, since private network can't communicate with Hyper V host, so, it's stange it use private IP address to communicate with Hyper V host external virtual switch IP address. So, I required the information above.

    Thanks for your time!
    Best Regards,
    Anne

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.