Virtual Switch
We need a virtual switch so the VM can connect to the internet.
We will use External Switch
so the VM is connected directly to the local network.
This page is partially adopted from https://wiki.archlinux.org/title/Hyper-V#External_switch
- Open Hyper-V Manager
- Under
Actions
on the right, clickVirtual Switch Manager...
- Under
Virtual Switches
on the left, make sureNew virtual network switch
is selected. - On the right, select
External
and clickCreate Virtual Switch
. - Enter a name for the switch. I will use
External Virtual Switch
as example. - Select the network adapter your Host OS uses.
TIP
If you are not sure which one to select. Select any one for now. If you can't connect to the internet in the VM later, try another one.
- Check
Allow management operating system to share this network adapter
. ClickOK
.
Conguratulations! You have created a virtual switch!