Network bridging with Hyper-V virtual switches

Azuresonance 1 Reputation point
2021-03-30T00:48:53.617+00:00

I have two machines:

  1. A Hyper-V VM that runs Ubuntu 18.04, that runs on a Windows 10 host that has a Ethernet port and a WiFi card.
  2. An embedded development kit that only has a Ethernet port.

What I want to do is to connect the VM and the dev kit to the same LAN, and that LAN must have Internet access.

The solution I came up with is to connect the dev kit to my host's Ethernet port, then connect my host to the local WiFi, and then add a bridge between my WiFi card, Ethernet port and the Hyper-V virtual switch.

However, bridging with Hyper-V virtual switches does not seem to be possible.

Is there any other solutions?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
1,834 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Candy Luo 12,456 Reputation points
    2021-03-30T06:31:06.71+00:00

    Hi ,

    For Hyper-V network ,don't bridge the Virtual Switch adapter with any of the physical network adapters in the host. As Dave said, the correct way should be creating an external Virtual Switch.

    Best Regards,
    Candy

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

    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.

    No comments

  2. Dave Patrick 330.7K Reputation points Microsoft MVP
    2021-03-30T00:55:52.803+00:00

    Should be able to create an external vSwitch, then configure the guest to use this same vSwitch. Then plug both into the physical switch.
    https://blogs.technet.microsoft.com/jhoward/2008/06/17/hyper-v-what-are-the-uses-for-different-types-of-virtual-networks/

    --please don't forget to Accept as answer if the reply is helpful--

    No comments