Virtual network for Hyper-V - Part 4
Network Management - In this next article we will talk about the roles and restrictions associated with physical network adapters within the host server.
In the previous article of this series, we have introduced the role of virtual switches in a Hyper-V environment. Although virtual switches are the backbone of every virtual network, physical network adapters are also important components. For this reason, we want to shift the focus to the physical network adapters used by the Hyper-V server.
Some basic principles
Before you start, there are a few basic principles related to how Hyper-V interacts with physical network adapters that you need to know. The first offense is that physical network adapters cannot receive IP addresses assigned to it. In fact, there is only one component binding to the physical network adapter is the virtual network switch protocol - Virtual Network Switch protocol. Connecting other components to the physical network adapter or assigning IP addresses directly to the physical adapter will damage the network connection, connecting virtual machines to the same virtual switch as the physical adapter will disconnect network.
The second basic principle you need to know is that virtual machines will not be directly tied to a physical network adapter. When you open the virtual machine setup page, Windows will make you illusion that you are binding the virtual machine directly to the physical network adapter, as shown in Figure A.
Figure A: Hyper-V gives you the feeling that administrators are binding virtual machines directly to the physical network adapter
In fact, though, there is a switch that exists between the network adapter and the virtual machine. As explained in the previous section, it is a virtual switch that allows the physical adapter to be shared with other virtual machines.
A third rule is that a physical network adapter can only be bound to a virtual switch. There are many situations in which administrators try to connect multiple virtual networks to a physical network adapter. While there are still some ways to make this type of configuration work, it ultimately has a negative impact on performance and you cannot bind virtual networks directly to the adapter because of the virtual switch limit.
Finally, Microsoft does not support wireless network adapters used with Hyper-V. Therefore, you will not be able to give your virtual machines wireless access.
Use multiple physical network adapters
Although it is possible to create a Hyper-V server, Microsoft recommends that your Hyper-V server should have at least two network adapters. In this type of configuration, a network adapter will be used exclusively for the management network (for managing host servers) and the other adapter will be used for virtual machines.
This configuration type improves both performance and security issues for Hyper-V servers. Improved performance is due to the fact that only the traffic associated with the parent partition is offloaded to the dedicated network segment, thereby freeing the bandwidth on the adapter serving the virtual machines.
This design also improves security. You may notice the difference in how your host server and virtual machines use network connectivity. Most, if not all host server traffic, is related to management tasks. This is because you may sometimes need to use patches for the parent operating system.
While still managing a certain amount of traffic associated with virtual machines, these servers can also run applications. Thus, at least some of these virtual machines also require Internet access. On the other hand, there's no reason why the parent partition is connected to the Internet while isolating the parent partition with an Internet connection.
A person is not sure how to use a single NIC for the parent partition. In case you want to make sure the network adapter is never used inside a virtual machine, you must do so during the initial Hyper-V deployment. Hyper-V's installation wizard includes a screen that allows you to select which network adapter you want to provide to virtual machines. Your task now is to simply select the network adapter from the list, or define the adapter to access the parent partition.
Obviously this won't bring much benefit if you've already deployed Hyper-V and haven't followed up with maintaining the physical network adapter for the parent partition. In this situation, there are a couple of differences you can make.
One is to temporarily transfer all virtual machines to another host. Due to the nature of the situation, you must definitely use Hyper-V's export / import function to transfer individual virtual machines. However, the process of exporting and importing virtual machines seems to work quite well, although it can be time consuming.
Once the virtual machines have been exported, you can remove Hyper-V from the server, then reinstall it with the appropriate network adapter settings. You can now import the virtual machines back to the host.
If you use this method, you must record the virtual network configuration of the server, which is very important because the import / export process is known as a problem or causes network configuration errors. virtual. Ideally, you should turn off your virtual machines (rather, put them in a safe state) before exporting.
Another option is to configure your virtual machines to not use certain adapters. This can be done by entering the parent partition and destroying the virtual network switching protocol and allowing the parent partition to communicate directly with the adapter. This method has a couple of complications. Your best option here is to configure the Hyper-V server to maintain a network adapter for the host operating system during the initial installation.
Conclude
As you can see, there are some limitations when configuring Hyper-V to interact with physical network adapters. Although Hyper-V requires compliance with these rules, you should not use them because Hyper-V itself is also limited in its ability to provide connectivity to virtual machines. In fact, Hyper-V allows you to create an unlimited number of virtual networks and each virtual network you recreate can communicate up to 512 virtual machines.
There is a very flexible way to handle virtual machines themselves. Each VM can be configured up to 12 different virtual network connections. Among these connections, there are 8 connections that can use virtual network adapters, four can be bound to legacy network adapters.
In Part 5 of this series, I will show you some multi-adapter configurations, especially the physical adapter designation for virtual machines or with storage centers. The last part of this series will introduce VLANs associated with Hyper-V.
You should read it
- Virtual network for Hyper-V - Part 2
- Virtual network for Hyper-V - Part 1
- Virtual network for Hyper-V - Part 3
- Install Hyper-V Virtualization on Windows Server 2008 R2
- How to fix the error of not seeing network adapter on Windows 10
- How to view Network Adapter details in Windows 10
- How to check the speed of the network card on Windows 10
- Deploy QoS on Windows Server 2012 (Part 1)
May be interested
- How to export Hyper-V virtual machines in Windows 10you can use hyper-v export and import functions to quickly copy virtual machines. virtual machines that are accessed can be used for backup or as a way to migrate a virtual machine between hyper-v servers.
- Instructions for using Hyper-V on Windows 8 (Part 1)one of the new features on windows that is most noticeable is the hyper-v virtualization program to meet users' need to create windows virtual machines. the article will guide readers to activate and use the program on windows 8.
- How to check if your computer is running Windows 10 Hyper-V?on windows 10, windows 8.1 and windows 8 have added client hyper-v so you can run the guest operating system on the virtual machine. hyper-v is microsoft's hypervisor on windows. it was originally developed for windows server 2008 and then supported by the windows client operating system.
- Monitor Hyper-V with the command line (Part 2): Basic monitoring commandsin this article, we will learn how to access the virtual machine list and see general information about virtual machines with simple powershell statements. we will also look at stop commands and start virtual machines from the command window.
- Create private cloud with Hyper-V (Part 3)in the previous lesson, we created the hyper-v task sequence. now is the time to make this task sequence change so that we can use them to create hyper-v servers that manage virtual machines in the private cloud.
- Create virtual machines in Hyper-V on Windows Server 2008after hyper-v is installed, the first thing to do here is to create a virtual machine - virtual machine. in the following article, we will introduce you to some basic steps to do this, with the general implementation process almost just clicking next> next> finish.
- Monitor Hyper-V with the command line (Part 1): Install the monitoring libraryone of the obvious shortcomings of hyper-v is the ability to monitor virtual machines from windows powershell. although microsoft intends to provide this capability on windows server 8, users can fully monitor virtual machines from the command line interface at this time. the article will guide you to do this
- Instructions for installing Hyper-Vto install hyper-v, open the server manager tool and click the add roles link. next, in the select server roles dialog box, click on the hyper-v role. at this point, follow the step-by-step instructions to install hyper-v on the server.
- Configure Hyper-V security using Authorization Manager - Part 2in this article, i will show you how to secure virtual machines when running on hyper-v.
- Create virtual cloud with Hyper-V (Part 6)in the previous articles, we have created some image files for the virtual machine and also successfully installed scvmm but still have a missing piece. at this time, users do not have an interface to build the virtual machine so we will need to set up self service portal to allow valid users to create virtual machines configured.