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

  • Clone a Virtual Machine via Export and Import
    Clone a VM via Export and Import: Copy Virtual Hard Disk on Hyper-V Virtualization
  • cisco asa 5510
    Copying TFTP Image to Flash Network | Monitoring
  • RSAT 678x381 1
    DNS manager console missing from RSAT tools on Windows 10 Windows
  • shut down 650x300 1
    How to prevent users from shutting down in a Virtual Machine Windows
  • GNS 3
    Graphical Network Simulator: How to uninstall GNS3 in Windows Windows
  • BitLocker Recovery Password Rotation in Active Directory
    Perform BitLocker Recovery Password Rotation in Active Directory Windows Server

More Related Articles

Clone a Virtual Machine via Export and Import Clone a VM via Export and Import: Copy Virtual Hard Disk on Hyper-V Virtualization
cisco asa 5510 Copying TFTP Image to Flash Network | Monitoring
RSAT 678x381 1 DNS manager console missing from RSAT tools on Windows 10 Windows
shut down 650x300 1 How to prevent users from shutting down in a Virtual Machine Windows
GNS 3 Graphical Network Simulator: How to uninstall GNS3 in Windows Windows
BitLocker Recovery Password Rotation in Active Directory Perform BitLocker Recovery Password Rotation in Active Directory Windows Server

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

sysadmin top30a

  • Add additional Windows drives
    How to Add Another Hard Drive to a Virtual Machine in HyperV  Virtualization
  • How to Fix MS SQL Error 832
    MSSQL Server Error 833: Synthesis of Real-World Case Studies Oracle/MSSQL/MySQL
  • shut down 650x300 1
    How to prevent users from shutting down in a Virtual Machine Windows
  • How To Put Multiple OS ISO Files In One Bootable USB Disk
    USB Drive: Create a Multiboot with Multiple OS ISOs Windows
  • drivelock header 002
    The push installation of the agent failed for the computer – Error message (67) The network cannot be found Security | Vulnerability Scans and Assessment
  • What Happens if You Turn Off Your Computer During windows update
    What Happens if You Turn Off Your Computer During an Update Windows
  • How to Fix Microsoft Outlook Not Syncing Issue
    How to Fix Microsoft Outlook Not Syncing Issue Network | Monitoring
  • ssh
    How to disable RC4 Cipher Algorithms support in SSH Server Linux

Subscribe to Blog via Email

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

Join 1,823 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

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.