Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Network | Monitoring » How to Create Hyper-V Virtual Switch

How to Create Hyper-V Virtual Switch

Posted on 12/11/202307/08/2024 Imoh Etuk By Imoh Etuk No Comments on How to Create Hyper-V Virtual Switch
Hyper-V Virtual Switch

In this post, I show you how to create a virtual switch for your Hyper-V virtual machine. Hyper-V is Microsoft’s hardware virtualization tool that is included as a feature in Windows Server, Windows 10/11 Pro, and Enterprise editions. They run on a physical machine and access computing resources through software called a hypervisor. Most organizations use Hyper-V to deploy virtual machines on a computer for enterprise use. This makes the use of third-party tools such as VMWare or Oracle VirtualBox redundant in most cases.

Hyper-V provides users with the opportunity to create and run a software version of a computer known as a virtual machine. Virtual machines are virtualized instances of a computer that can perform almost all of the same functions as normal computers.

Creating Hyper-V Virtual Switch is required if your Hyper-V network adapter is not connected and you are seeing the “No internet access” prompt on your VM. This is caused by the misconfigurations of the virtual machine.

In this case, the network adapter in the virtual machine settings will report “No connected,” as shown below. It is also easy to increase Disk Size in Hyper-V. If you also Stuck in Stopping State, it also easy to fix it. Hyper-V makes it easy to clone a Virtual Machine via Export and Import.

1-1-Network-Adapter-not-connect
Virtual Machine Network Adapter Not connected

At this point, the Hyper-V virtual machine will report no internet access. This will impact the VM users, as they will not be able to use the internet on the virtual machine. The solution is to create a virtual switch from the Hyper-V virtual switch manager and attach it to the virtual machine.

1-VM-With-No-Internet
Not Internet Access

Create Hyper-V Virtual Switch

The only thing that can resolve the above issue is creating a virtual switch. To create a virtual switch, follow the below steps:

See also how to install and configure Hyper-V Cluster On Windows Server via PowerShell and Server Manager, and Hyper-V Server Core Mode: How to install free Hyper-V Server on a VMware Workstation.

Step 1: Open the Hyper-V Manager

2-0-select-hyper-v
Opening Hyper-V Manager

From the right-side menu, select Virtual Switch Manager.

3-select-virtual-switch-manager
Open Hyper-V Virtual Switch Manager

You may want to see how to fix “An error occurred while attempting to connect to the server: Check if the Virtual Machine Management service is running or you are not authorized to connect to this server“, and How does Key Rotation work in MBAM?

Step 2 – Create a Virtual Switch

On the right side, under the section Create virtual switch, select External, then click on Create Virtual Switch.

4-create-virtual-switch
Creating A virtual Switch

Here are a few things you should know about the Hyper-V virtual switch. It is divided into three categories, i.e. External, Internal and Private. See their explanations below:

External - creates a virtual switch that binds to the physical network adapter so that virtual machines can access a physical network

Internal - creates a virtual switch that can be used only the virtual machines that run on this physical computer, and between the virtual machines and the physical computer. An internal virtual switch doesn't provide connectivity to a physical nnetwork connection. 

Private - creates a virtual switch that can be used only by the virtual machines that run on this physical computer

Also, see “Enable HyperV on Windows: How to install Windows 11 on HyperV“, how to install and Configure Hyper-V on Windows Server on Windows Server 2019, and 2022 via the Server Manager, PowerShell or DISM.

Step 3 – Specify the name

In this step, you need to specify a unique for your Hyper-V Virtual Switch. The name specified here is External Switch. Make sure you check the External Network radio button and check the “Allow management operating system to share this network adapter.”

5-Specify-the-name-for-virtual-switch
Configuring Virtual Switch

From the above screen, select the newtork switch of your computer that you want to create the virtual switch from, and then click Apply and Ok to complete it.

6-click-on-Okay-to-finish
Finishing the Virtual Switch Creation

Please see Fast user switching: How to create a desktop shortcut in Windows 10 to switch User Accounts, how to install and Configure Hyper-V on Windows Server on Windows Server 2019, and 2022 via the Server Manager, PowerShell or DISM.

Step 4 – Assign the Virtual Switch to the Virtual Machine

To assign the virtual switch to the virtual machine, select the VM to which you wish to attach the virtual switch you just created. Then, from the left-menu of the VM, select Settings

7-Select-the-template-and-attach-the-virtual-switch

This will open a new window. In the new window, select the name of the virtual switch created above, click Apply, and then click Ok to attach it.

8-Select-the-external-switch-name-1
Attaching Virtual Switch to a VM

Now check the virtual machine to see that there is network access as shown below:

9-VM-now-Has-Network-Access
Network Access on the VM

In conclusion, Hyper-V is a virtualization platform that allows organizations to run multiple virtual machines (VMs) on a single physical server. Overall, Hyper-V is a powerful and flexible virtualization platform that can provide a number of benefits to organizations of all sizes.

In short: Hyper-V can help organizations to save money, improve efficiency, and enhance security.

I hope you found the post on Create Hyper-V Virtual Switch useful. Please feel free to leave a comment below.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Network | Monitoring, Virtualization, Windows, Windows Server Tags:Hyper-V

Post navigation

Previous Post: How does Key Rotation work in MBAM?
Next Post: Install BitLocker on Windows Server via the Server Manager

Related Posts

  • upgrade 2
    How to upgrade Windows Server Evaluation to Full Version Windows Server
  • Feautured image DualBoot
    How to create a dual-boot setup on Windows 11 Windows
  • image 41
    INACCESSIBLE BOOT DEVICE: Fix Your PC ran into a problem and needs to restart Windows
  • Featured image dataTransfer.
    How to transfer data from an old PC to a new PC Windows
  • Disk Cleanup
    Create Disk Cleanup Shortcut: Perform disk cleanup in Windows Windows
  • savds
    VM is not accessible: Fix Taking ownership of a VM failed Virtualization

More Related Articles

upgrade 2 How to upgrade Windows Server Evaluation to Full Version Windows Server
Feautured image DualBoot How to create a dual-boot setup on Windows 11 Windows
image 41 INACCESSIBLE BOOT DEVICE: Fix Your PC ran into a problem and needs to restart Windows
Featured image dataTransfer. How to transfer data from an old PC to a new PC Windows
Disk Cleanup Create Disk Cleanup Shortcut: Perform disk cleanup in Windows Windows
savds VM is not accessible: Fix Taking ownership of a VM failed Virtualization

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • Bluetooth
    Cannot open Bluetooth preference pane because it is not available Mac
  • AWS Budget
    How to manage costs with AWS Budgets AWS/Azure/OpenShift
  • dns
    How to setup a cache-only DNS server Linux
  • Download and apply Windows ADK Patch
    How to download and install the Windows ADK Patches Windows
  • Featured image 2
    How to delete Windows old folder in Windows 11 Windows
  • Create an S3 Bucket
    Backup Repository: How to Create Amazon S3 buckets AWS/Azure/OpenShift
  • banner2 1
    How to use GitHub as Source Provider for AWS CodePipeline AWS/Azure/OpenShift
  • disable camera in Windows
    How to disable Camera Access in Windows Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,808 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.