📜 ⬆️ ⬇️

10 Tips for Initially Setting Up a Hyper-V Environment

Typically, installing the Hyper-V environment is not fundamentally difficult and does not take much time. However, its adjustment can cause a lot of questions and will definitely require close attention. Therefore, today we would like to give some useful tips on how to properly configure Hyper-V. The order of their application can be arbitrary.





1. Install updates, and then decide how you will update Hyper-V in the future


Regardless of the installation method, the components on the Hyper-V server will need to be updated, and you need to decide how to do it. Updates that require a host restart suspend the virtual machines running on it and resume their operation as soon as the host is restarted. If this option is not acceptable, then you should consider the possibility of transferring a virtual machine, using SCVMM, allocating time for updates, etc.


')

2. Decide on a domain


There are different points of view on whether to add Hyper-V hosts in the same Active Directory domain, where everything else is, or not. Some users assign a separate domain for Hyper-V hosts, others do not even enter Hyper-V hosts into the domain. Assess the risks, consider the features of domain management and possible failure scenarios to make a decision, best of all based on your assessment of the virtual environment, that is, there is no universal answer, and you will have to decide it yourself.
In addition, at this stage you need to come up with a suitable name for the Hyper-V host. It is better to choose a name that will stand out in the list of your servers, because you cannot make mistakes when working with a Hyper-V host: they can be really disastrous. To confuse the names and restart the host with the virtual machines of the mail and file servers at the height of the working day is not the situation for which virtualization is being implemented.



3. Configure the storage system


If you need MPIO and HBA drivers or SAN software, install it all before adding the Hyper-V role (this is the installation scenario for Windows Server 2012). By the time you get into virtual machines, all of these components should already be operational.



4. Configure Administrator Accounts


Want to use the same pool of administrators as on all other Windows Servers? Then reread paragraph 2.



5. Choose friendly names for network interfaces


If you have configured the virtual environment correctly, there will be several network interfaces on your hosts. When they are all called “Local Area Connection” or “Local Area Connection 2”, this is not very convenient. Well, if you have different types of interfaces (for example, based on Broadcom and Intel devices): you can just remember what it is and where it is. But you should not count only on your memory. Give each interface a friendly name: “Host LAN”, “Control LAN”, etc. You can even specify the type of communication channel: “K” for cable, “C” for complex, etc.



6. Disable unnecessary protocols.


If Hyper-V hosts work in a data center, you most likely will not use most of the peer-to-peer networking technologies of Windows, and even more so, IPv6. Everything should be extremely simple: you should simplify the infrastructure and disable such components as the IPv6 protocol, the service of the data link layer topology and in general everything that you will not use.



10 Tips for Initially Setting Up a Hyper-V Environment Tip 6: Disable unnecessary protocols

7. Be sure to activate Windows


Regardless of which activation method you use: a key management server (KMS), a multiple activation key (MAK), an OEM version of Windows, or something else - make sure that the Windows startup is not interrupted due to the offer to activate the system using the console. This point is not so important when using Hyper-V Server 2012, Microsoft's free hypervisor.



8. Configure remote and local control.


This is one of Microsoft's recommendations, which is necessary, but often ignored. The new Server Manager, PowerShell and Hyper-V Manager allow you to perform many operations remotely without logging in directly to the server. However, it is necessary to choose a convenient tool for yourself. For example, some still prefer to log in to servers in remote desktop mode, even if you have to use a banal console with a single command line, like Windows Server Core with Hyper-V or Hyper-V Server 2012.



9. Set default paths to virtual machines and disks.


What can annoy more than accidentally stumble upon a virtual machine on a local disk? Oddly enough, sometimes this happens because of administrative errors. Be sure to specify the correct location in the settings of virtual hard disks and virtual machines. You can’t expect anything good if you fill up the C: \ drive and the host stops working normally, so even if the above option (drive E: \ in Figure 2) is not optimal, in a situation where the drive is full, it is still better.



10 Tips for Initially Setting Up a Hyper-V Environment Tip 9: Set the default paths to virtual machines and disks

10. Check for access via freelance channel


This tip is relevant for both Hyper-V and vSphere. Make sure you can connect to the system if something goes wrong. Tools like KVM, Dell DRAC or HP iLO will help.



These are tips of a very general nature, based on the experience of working with a virtual environment, but there are certainly plenty of other useful tricks. In fact, the best way to gain experience is to deploy the system and then fix what exactly had to be changed after installation.



In order for the tuned virtualization system to continue to function optimally in the future, you can use backup, monitoring and performance analysis tools specifically designed for the virtual environment. Additionally on this topic you can see the following links:



Source: https://habr.com/ru/post/175995/


All Articles