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
Actionson the right, clickVirtual Switch Manager... - Under
Virtual Switcheson the left, make sureNew virtual network switchis selected. - On the right, select
Externaland clickCreate Virtual Switch. - Enter a name for the switch. I will use
External Virtual Switchas 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!