Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT Хостинг
Содержание
  1. Hyper-V Server or Windows Server in Core Mode?
  2. Licensing
  3. Security
  4. GUI Availability
  5. Local Disk Deduplication
  6. Support
  7. Making the Choice between Hyper-V Server and Windows Server Core
  8. Настройка сетевых интерфейсов
  9. Настройка протоколов сети
  10. Настройка межсетевого экрана (Advanced Firewall) через PowerShell
  11. Добавление автозагрузки сеанса PowerShell (опционально)
  12. Внедряем HVRemote (его функции будут нужны позднее)
  13. What Is Hyper-V 2012 R2?
  14. How to Install Hyper-V Server or Windows Server 2012 R2 in Core Mode with Hyper-V
  15. Download the software
  16. Set your hardware options to support Hyper-V
  17. If necessary, convert the software to a bootable image
  18. Boot to the installation media and install the management operating system
  19. Perform initial configuration
  20. Initial networking configuration
  21. Join the domain and rename the computer
  22. Install Windows Updates
  23. Activation (Windows Server only)
  24. Install Hardware Drivers
  25. Enable Hyper-V Components
  26. What to do if Hyper-V Manager is Not Installed
  27. Windows 8 and Windows 8
  28. Server 2008 R2
  29. Server 2012 and Higher
  30. A Closing Tip
  31. НАСТРАИВАЕМ ПАРАМЕТРЫ ГИПЕРВИЗОРА
  32. Connecting to Hyper-V Hosts with Hyper-V Manager
  33. НАСТРОЙКА СЕТЕВЫХ АДАПТЕРОВ
  34. Windows 7 and Server 2008 R2 from the GUI
  35. Windows 7 and Server 2008 R2 from the Run Window
  36. Hyper-V 2012 R2 Improvements
  37. Resource metering
  38. Live Storage Migration
  39. Virtual Fibre Channel
  40. Single-root I/O virtualization (SR-IOV)
  41. Storage on SMB2 file shares
  42. NUMA Spanning
  43. Hyper-V Replica
  44. Boot from USB Disk
  45. Dynamic Virtual Machine Queue
  46. New Virtual Hard Disk Format (VHDX)
  47. Устанавливаем Hyper-V Server 2012 R2
  48. СОЗДАДИМ ВИРТУАЛЬНЫЙ КОММУТАТОР
  49. ОТКЛЮЧАЕМ IPV6 НА СЕТЕВОМ ИНТЕРФЕЙСЕ
  50. АВТОМАТИЧЕСКИЙ ЗАПУСК POWERSHELL ПРИ ВХОДЕ В СЕАНС
  51. Windows 8, Windows 8. 1, Server 2012 or Server 2012 R2 from the GUI
  52. ВЗАИМОДЕЙСТВИЕ С SERVER MANAGER
  53. Настройка хоста управления гипервизором Hyper-V на Windows 8
  54. Устанавливаем Windows 8
  55. Настраиваем новый гипервизор из консоли sconfig (TUI-интерфейс)
  56. Windows 7 and Server 2008 R2 from the Command Line
  57. Why Choose Hyper-V Server or Hyper-V in Windows Server Core Mode?
  58. Reduced Attack Surface
  59. Discourages Tinkering and Bad Behavior
  60. Установка и настройка системы хоста управления для Hyper-V
  61. Развертывание виртуальной машины

Hyper-V Server or Windows Server in Core Mode?

Once you’ve made the decision to forgo the GUI, you can turn your attention to the more impacting choice between the free Hyper-V Server and the licensed Windows Server installation methods. Assessing the needs of your environment will allow you to make an informed decision.

Licensing

The license for Hyper-V Server is free and the product does not need to be activated. This makes it ideal for isolated hosts that can’t reach the Internet and saves you from the hassle of activation by telephone. Despite some persistent myths, there are no licensing advantages to be gained from installing Windows Server.

However, Automatic Virtual Machine Activation (AVMA), a feature introduced in Windows Server 2012 R2, introduces a substantial technological difference. With AVMA, guest installations of Windows Server 2012 R2 using a particular key will be automatically activated by the management operating system if, and only if, that management operating system is Windows Server 2012 R2 Datacenter Edition. However, despite another persistent myth, you do not need to install that management operating system to have access to its virtualization rights. You only need to install it for access to this technology.

One very nice aspect of Hyper-V Server is that you’re always allowed to upgrade it to the current version without needing to secure new licenses. Windows Server does not grant this flexibility.

If you’ll be using your Hyper-V environment to host exclusively Linux guests or a virtual desktop infrastructure (VDI), choosing Hyper-V Server can save you a little bit on licensing. The guest virtualization rights granted by licensing a Windows Server management operating system would be wasted without any Windows Server guests, as they cannot be assigned to Linux or Windows desktop guests. Linux guest operating systems must be licensed in accordance with the distribution’s requirements. There are multiple methods for licensing Windows desktop guests; consult your licensing reseller for details.

If you’d like to delve deeper into the world of licensing for Microsoft virtualization, you can also download this Altaro eBook and consult these articles on the blog:

Security

Windows Server has many more components available than Hyper-V Server. This makes it marginally more vulnerable than Hyper-V Server, although the best defense is simply not activating those features in the first place.

GUI Availability

While the earlier discussion covered the benefits of going GUI-free, you may later discover a compelling reason to enable a graphical environment. Windows Server in Core mode allows you to make this change very easily. With Hyper-V Server, you’ll be permanently locked into the command-line mode.

If you prefer going down the GUI-route in the first place, have a look at another article in this series: How to Install Hyper-V 2012 R2 in Windows Server

Local Disk Deduplication

If you will be storing your virtual machines on local storage and want to take advantage of built-in deduplication, you’ll need Windows Server as Hyper-V Server does not include this feature. If your virtual machines are on remote storage, this feature is not relevant. Be aware that Microsoft only supports using this feature to store virtual machines running desktop operating systems, not server operating systems.

Support

Obviously, Microsoft supports Hyper-V Server and Windows Server equally. The vendors of the applications you’ll be running might not. They likely won’t consider there to be any difference from a hypervisor perspective. But, you may need to install something directly into the management operating system, such as a backup agent. These might not support Hyper-V Server.

Making the Choice between Hyper-V Server and Windows Server Core

Unfortunately, there isn’t any single right answer. The choice between Hyper-V Server and Windows Server isn’t intended to leave you at an impasse; it’s meant to give you options. Take some time to go through the information above and make the decision that best suits your organization. If you later decide that you made the wrong decision, virtual machines will migrate freely between Hyper-V Server and Windows Server that are the same version. Virtual machines on hosts that are 2012 version can be migrated while online to a host that is running a later version of Hyper-V Server or a Windows Server (but they cannot migrate back).

Настройка сетевых интерфейсов

Ввиду того, что наш сервер не имеет привычного для семейства Windows рабочего стола, где можно бодро двигать мышкой и ставить нужные «галочки», приличная часть дальнейшего текста будет посвящена настройке с использованием командной строки, а в частности ее более современного и мощного средства — PowerShell. Если и после этого вы готовы продолжать, тогда продолжим — впереди нас ждет удача!

Открываем окно CMD и запускаем сеанс PowerShell:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Смотрим какие у нас есть данные по сетевому адаптеру:

Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
—- ——————— ——- —— ———- ———
Ethernet 2 Broadcom NetXtreme Gigabit Ethernet 13 Up 11-22-33-44-55-AB 1 Gbps

Добавляем новый виртуальный «коммутатор» (сеть) используя значение Name из вывода команды выше:

New-VMSwitch -Name «local1» -NetAdapterName «Ethernet 2»

где: local1 – имя нашего нового «коммутатора»

Устанавливаем «коммутатору» флаг для будущего управляющего хоста, разрешающий ему использование физического сетевого адаптера:

Set-VMSwitch -Name «local1» -AllowManagementOS 1

Проверяем наличие нового созданного устройства:

Name SwitchType NetAdapterInterfaceDescription
—- ———- ——————————
local1 External Broadcom NetXtreme Gigabit Ethernet

Настройка протоколов сети

Если сервер работает в локальной корпоративной сети, и использовать адресацию IPv6 не планируется (а чаще всего так и бывает), то выключаем 6-ю версию. Активная и не сконфигурированная версия протокола может давать лишнюю уязвимость в соответствующем диапазоне адресов, которым не уделено внимание при развертывании системы.

Проверяем текущую настройку IPv6 на интерфейсе. Имя интерфейса берем из вывода командлетов

Смотрим, включена ли она:

Если видите что IPv6 активен (наличие полей IPv6 в выводе), то выключаем:

Disable-NetAdapterBinding -InterfaceDescription «Microsoft Hyper-V Network Adapter» -ComponentID ms_tcpip6

где: «Microsoft Hyper-V Network Adapter» — ваше значение из описания (InterfaceDescription) сетевого адаптера.

Теперь посмотрим, какие сетевые установки у нас имеются:

(тут смотрим InterfaceIndex)

InterfaceAlias : vEthernet (local1)
InterfaceIndex : 27
InterfaceDescription : Hyper-V Virtual Ethernet Adapter #2
IPv4Address : 192.168.10.2
IPv4DefaultGateway : 192.168.10.1
DNSServer : 192.168.10.1

InterfaceAlias : Ethernet 3
InterfaceIndex : 14
InterfaceDescription : Broadcom NetXtreme Gigabit Ethernet #2
NetAdapter.Status : Disconnected

New-NetIPAddress -InterfaceIndex 27 -IPAddress 192.168.55.101 -DefaultGateway 192.168.55.254 -PrefixLength 24

В этом месте очевидно, потребуется пересоединиться к серверу по RDP — перезапустить сессию с новым IP.

И новые DNS:

Set-DnsClientServerAddress -InterfaceIndex 27 -ServerAddress 192.168.55.254,192.168.10.1

После чего они должны принять вид похожий на таблицу ниже:

InterfaceAlias : vEthernet (local1)
InterfaceIndex : 27
InterfaceDescription : Hyper-V Virtual Ethernet Adapter #2
IPv4Address : 192.168.55.101
IPv4DefaultGateway : 192.168.55.254
DNSServer : 192.168.55.254
192.168.10.1

InterfaceAlias : Ethernet 3
InterfaceIndex : 14
InterfaceDescription : Broadcom NetXtreme Gigabit Ethernet #2
NetAdapter.Status : Disconnected

Настройка межсетевого экрана (Advanced Firewall) через PowerShell

После появления PowerShell в стандартной поставке Hyper-V в системе имеется удобный способ настройки встроенного брандмауэра. Для просмотра соответствующих доступных командлетов выполните:

Get-Command -Noun *Firewall* -Module NetSecurity

Проверим правило разрешающее удаленное управление рабочим столом (RDP).

Если видим в графе Enabled: значение False, разрешаем это правило:

Переключимся на окно CMD и активируем брандмауэр:

netsh advfirewall set allprofiles state on

Если все было сделано правильно, то соединение через RDP не должно прерваться.

Теперь задействуем правило разрешающее удаленный доступ к управлению встроенным фаерволом.

Проверим, включено ли оно:

Если в строке Enable видим False, то выполним следующее:

После этого должна стать доступна оснастка «Брандмауэр Windows» MMC на хосте управления (Windows 8.1, Windows 2012 Server), которая нужна чтобы получить доступ к фаерволу сервера Hyper-V:

Точно также, при желании можно изменить статус для других правил, например для удаленного управления службой Virtual Disk (vds):

Смотрим, включено или нет

Включаем нужные модули, если они выключены:

Name : FPS-SMB-In-TCP
DisplayName : File and Printer Sharing (SMB-In)
Enabled : False

Name : FPS-SMB-Out-TCP
DisplayName : File and Printer Sharing (SMB-Out)
Enabled : False

Name : FPSSMBD-iWARP-In-TCP
DisplayName : File and Printer Sharing over SMBDirect (iWARP-In)
Enabled : False

Если видите аналогичную «фальш», меняем ситуацию:

Enable-NetFirewallRule FPS-SMB-In-TCP

Добавление автозагрузки сеанса PowerShell (опционально)

Если вам нужно, чтобы окно с сеансом PowerShell запускалось при каждом старте системы (входе в сеанс администратором) — выполним следующее:

Читайте также:  Где хранится база данных хостинга и где MySQL хранит файлы базы данных в Windows и каковы имена файлов?

New-ItemProperty -path HKLM:SOFTWAREMicrosoftWindowsCurrentVersion
un -Name PowerShell -Value «cmd /c start /max C:Windowssystem32WindowsPowerShell1.0powershell.exe -noExit» -Type string

Внедряем HVRemote (его функции будут нужны позднее)

Копируем файл скрипта hvremote.wsf в удобный для вас каталог, переходим в него.

В каталоге с hvremote.wsf в консольном окне CMD на хосте Hyper-V и выполняем:

cscript hvremote.wsf /add:hvoper

где: hvoper – имя администратора для Hyper-V

What Is Hyper-V 2012 R2?

Hyper-V Server 2012 R2 is a free standalone product which provides hypervisor-based virtualization services. Hyper-V virtualizes hardware resources, which allows you to build an environment where multiple operating systems can be managed and configured at the same time. Each guest OS runs on an isolated VM, with an assigned amount of hardware resources which it can use. Even though Hyper-V 2012 R2 can be downloaded for free, you are still required to purchase a license for each guest OS.

Hyper-V 2012 R2 can be considered lightweight, because it takes up less RAM and disk space than Windows Server 2012, and the hypervisor doesn’t update as often as Windows OS. Moreover, Hyper-V Server includes only the Windows hypervisor, a Windows Server driver model, and supporting components. However, despite its limited functionality, Hyper-V 2012 R2 is compatible with the same hardware as Windows Server 2012. Thus, Hyper-V 2012 R2 has a small footprint and minimal overhead in addition to ensuring efficient resource utilization.

How to Install Hyper-V Server or Windows Server 2012 R2 in Core Mode with Hyper-V

The installation of Hyper-V Server is nearly identical to that of Windows Server in Core mode. These steps will intertwine both, noting any steps that are unique to either product.

Download the software

Hyper-V Server 2012 R2 is freely downloadable from TechNet at this URL: http://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2012-r2
Windows Server 2012 R2 is a purchased product, but it is available as a 180-day evaluation:
http://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2012-r2

Set your hardware options to support Hyper-V

As explained in the introductory article on Hyper-V, there are a few items you need to configure in your system’s BIOS or UEFI settings in order for Hyper-V to operate. These items are:

  • Data execution prevention
  • Hardware-assisted virtualization
  • Disable C-States

There are a couple of optional hardware settings that you may choose to set.

  • NUMA
  • Hyperthreading.

If necessary, convert the software to a bootable image

If you downloaded your copy of Hyper-V Server or Windows Server, you’ll need to make it bootable. Your options will vary based on your hardware’s capabilities. Some can directly mount ISO images by the usage of so-called “virtual media”. For others, you may need to “burn” the image to writable DVD media. One free tool that allows this is ImgBurn.

Boot to the installation media and install the management operating system

: This operation will replace any existing operating system.

Each physical system has its own process for booting to removable media. Most will prompt if they discover a bootable DVD drive or other image type. Consult with your hardware manufacturer’s documentation or support team if you need assistance.

Because the installation routines for Hyper-V Server and Windows Server are so similar, both systems are shown in the same steps below, with any differences noted along the way.

The very first screen that you’ll see will ask you to choose your operating system country and language. After that, you’ll be taken to a basic splash screen with the product name:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Clicking Install Now will take you to one of two screens. If your installation disk is for a fully licensed copy of Windows Server, then you’ll be prompted to enter your license key:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

For the purposes of this article, the top version will be chosen. That choice is the Standard Edition of Windows Server in Core mode. You could also opt for the Datacenter Edition. The only difference would be that it would grant access to the Automatic Virtual Machine Activation feature. If you’re using Hyper-V Server, this screen will not have appeared as there are no operating environment choices to make.

Whichever product you are installing, the next screen is the license agreement:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

After that, you’ll have to pick whether or not you want to upgrade or install new. An upgrade installation isn’t covered here, but you can upgrade from the version immediately prior (2012 in this case) as long as it is the same product and edition. You can’t upgrade from 2008 R2 to 2012 R2 and you can’t upgrade Hyper-V Server 2012 to Windows Server 2012 R2. These steps choose “Custom” to install a fresh copy:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

As the dialog indicates, you can load a driver from most any type of media. If you got here by accident, you can click on Cancel on that dialog, then the white arrow in the blue circle at the top left of the main window to return to the previous screen.

The system used in this demonstration has a very small disk area set up just to run Hyper-V. If you have a larger storage area that you’d like to break into pieces, use the New text button to create at least the installation location. The management operating system’s partition must be at least 32 GB in size to meet Microsoft’s minimum recommendations, but this is usually much too small in practice due to patching and other activities. A safer minimum size would be 60 GB.

After that, the only remaining screen is the file copy, expansion, and installation meters:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Once all these processes complete, your system will reboot. Congratulations! You’ve successfully installed Windows or Hyper-V Server!

Perform initial configuration

Once the system gets started, the best thing to do is perform basic housekeeping tasks to bring it up-to-speed as a full-fledged operating system.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

It will enforce a minimum complexity rule set.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

The best next step is to configure networking.

Initial networking configuration

Network configuration can be a challenge for Hyper-V systems, as they tend to have multiple physical network cards. The easiest thing to do at this time is to connect only the primary adapter to the physical switch. This will cause the others to be invisible inside Server Configurator, which will make initial configuration much easier. At this time, your primary goal is to get the management operating system onto the network, not necessarily to fully configure it. If you’re planning to combine this adapter into a teamed adapter later, the settings will transfer so there’s no harm using them now..

For now, use option 8 in the Server Configuration tool to begin setting up networking. You’ll be presented with a list of all adapters that are plugged in and enabled:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

In the screenshot above, all the adapters have already been configured. In a new system, the only distinguishing feature will be the Description field, which is usually not very helpful. This is why it’s easiest to physically disconnect the adapters that you don’t want to configure.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

That’s it for networking (at least, for the management adapter). Press 4 to return to the Server Configuration screen.

Join the domain and rename the computer

If you need to pre-stage the computer account in Active Directory, access your AD management system and do that before proceeding.

After you’ve provided the credentials to join the domain, you’ll be given the opportunity to rename the computer. If you make use of that, you’ll have to go through the same process of providing domain-level credentials.

After all that is complete, you’ll get a pop-up window asking if it’s OK to restart the system:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

It’s recommended that you do so before proceeding.

Install Windows Updates

Hyper-V Server and Windows Server in Core mode are intended to run “headless”, which means that it’s expected that you’ll only use their consoles for a minimum amount of work – such as this initial configuration. For that to work easily, you’ll need to enable a few options.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Activation (Windows Server only)

The last action to take in Server Configuration is to activate Windows using option 11. This choice does not appear in Hyper-V Server; that menu only has 14 items.

Server Configuration’s activation menu is a front-end for slmgr.vbs, which is a built-in script to manage licensing on Windows Server. As a side note, it’s also present on Hyper-V Server. Please do not attempt to use it on Hyper-V Server; it is not possible to activate that product, but some people have found ways to convince its licensing module that activation is required. This will permanently break your Hyper-V Server installation and necessitate a complete reload of the management operating system.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Install Hardware Drivers

pnputil –i –a DRIVERPACK.inf

You’ll receive a confirmation if driver installation was successful.

Enable Hyper-V Components

Add-WindowsFeature –Name Hyper-V -IncludeAllSubFeature -IncludeManagementTools

  • Hyper-V
  • RSAT-Hyper-V-Tools
  • Hyper-V-Tools
  • Hyper-V-PowerShell

What to do if Hyper-V Manager is Not Installed

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Windows 8 and Windows 8

For Windows 8 and Windows 8.1 the process will be similar to Windows 7, however the feature to install will be located in a different folder hierarchy in the windows features window. Instead, you will expand Hyper-V and check the box for Hyper-V GUI Management Tools:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Server 2008 R2

For a Server 2008 R2 SP1 installation, open up Server Manager, right click on Features and select Add Features:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Server 2012 and Higher

For Server 2012 and higher, open up Server Manager and click the option to Add a Feature, browse to the Hyper-V GUI Management Tool and check the box. Click Next and then Install to install the snap-in:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

After the feature successfully installs, you will now be able to open the Hyper-V Manager tool.

A Closing Tip

The lack of a Start menu or screen of any kind can be confusing for a time. Often, newcomers to this interface will, from force of habit, attempt to finish their session by closing the command window(s). Of course, this leaves the entire session active with nothing but a blank screen.

Читайте также:  How To Install PHP 7, 7.2 & 7.3 On CentOS 7

To shut down the system:

The “0” tells the system how many seconds to wait before shutting down.

There are also the Stop-Computer and Restart-Computer PowerShell cmdlets. The Server Configuration menu has matching options.

НАСТРАИВАЕМ ПАРАМЕТРЫ ГИПЕРВИЗОРА

Приступим к настройке параметров гипервизора. Основные параметры Hyper-V можно получить с помощью командлета Get-VMHost.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Как мы видим из вывода командлета, пути ВМ и виртуальных дисков сейчас размещаются на одном разделе с ОС, что нас не устраивает ни с точки зрения скорости работы, ни с точки зрения надежности. Пропишем пути к созданным в прошлом разделе папкам с помощью командлета Set-VMHost.

Set-VMHost -VirtualMachinePath D:Hyper-V -VirtualHardDiskPath ‘D:Hyper-VVirtual Hard Disks’

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Как я упоминал выше, в Hyper-V Server 2012 R2 возможно использование EnhancedSessionMode для ВМ, что позволит пробросить в ВМ локальные диски, принтеры, звук, использовать буфер обмена и многомониторные конфигурации. Давайте включим его.

Connecting to Hyper-V Hosts with Hyper-V Manager

Once Hyper-V Manager has loaded, if not already connected, you will need to connect to a host. In this example we will connect to our Hyper-V host TGLAB-HV01. To do this, simply click on the Action menu and click Connect to Server:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

The Select Computer window will appear, there are two options. The first option, Local Computer, would be selected if Hyper-V Manager was opened up on the Hyper-V host itself and you wanted to connect to it. The second option, Another Computer, allows you to connect remotely to a host on the network. In our example, the host is on the network, so we will click Browse:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

We type in the name TGLAB-HV01 and click the Check Names button to ensure the object exists. Then click OK:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Click Ok again and Hyper-V Manager will connect to the host and the hosted VMs will be displayed:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

If the client that you are using with Hyper-V Manager is not joined to the same domain as the Hyper-V host, there will be issues connecting. There is a very useful PowerShell script, which can be downloaded here, that allows you to enable Hyper-V Manager access between any domain or workgroup-joined systems.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

НАСТРОЙКА СЕТЕВЫХ АДАПТЕРОВ

Если сетевые адаптеры до этого не были настроены с помощью sconfig.cmd, сделаем это с помощью командлетов PowerShell.

Смотрим текущую конфигурацию IP на сетевых интерфейсах. В моем случае адресация назначена службой APIPA, так как в сети нет DHCP сервера.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Назначаем статическую адресацию, маску сети, шлюз по умолчанию и адреса DNS серверов. InterfaceIndex сетевого адаптера берем из вывода предыдущего командлета.

New-NetIPAddress -InterfaceIndex 13 -IPAddress 192.168.1.5 -DefaultGateway 192.168.1.1 -PrefixLength 24

Set-DnsClientServerAddress -InterfaceIndex 13 -ServerAddresses 192.168.1.2,192.168.1.3

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Windows 7 and Server 2008 R2 from the GUI

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

С внедрением PowerShell в Hyper-V Server появился удобный способ управления правилами межсетевого экрана, взамен устаревающего netsh. Просмотреть список комадлетов можно с помощью Get-Command.

В качестве примера включим возможность традиционного управления межсетевым экраном через оснастку MMCс хоста управления. Для начала получим список правил, относящихся к удаленному управлению межсетевым экраном.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Включаем оба правила.

Теперь можно попробовать подключиться к оснастке MMC управления межсетевым экраном с хоста управления.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Windows 7 and Server 2008 R2 from the Run Window

In Windows 7 and Windows Server 2008 R2, you will need to specify the path of the .msc file:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Hyper-V 2012 R2 Improvements

Microsoft’s team has worked hard to improve the functionality of Hyper-V Server 2008 and introduced a new and updated set of features and configuration maximums with Hyper-V 2012 R2. The main purpose of those features is to ensure better performance and scalability of large virtual environments. Let’s discuss the most essential Hyper-V 2012 R2 features and how they have improved the virtualization capabilities of Hyper-V Server.

Resource metering

This feature is used to track data about the usage of the physical processor, RAM, storage, and network by selected VMs. Resource metering is not enabled by default and can only be configured by running PowerShell scripts.

As a result, your PowerShell window should look like this:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Live Storage Migration

Move-VMStorage DemoVM -DestinationStoragePath D:NewDemoVM

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Virtual Fibre Channel

This feature allows you to access Fibre Channel-based storage area network (FC SAN) directly from within VMs and improves support for virtualized workloads by using a standard World Wide Name (WWN) associated with a selected VM. Data transfer and connectivity between VMs in the same FC SAN is made possible through Fibre Channel host bus adapters (HBAs). Below, we will demonstrate how you can create and configure Fibre Channel HBAs.

First of all, make sure that the VM is opted out of virtualization-based security so as to ensure that storage devices and servers can connect over the SAN without disruption. The VM must be turned off, when running this cmdlet.

Set-VMSecurity -VMName DemoVM -VirtualizationBasedSecurityOptOut $true

To add a Fibre Channel HBA, use the next script. Note that the VM must be in a powered-off state.

Add-VMFibreChannelHba -VMName DemoVM -SanName ‘New Fibre Channel SAN’

To verify that the Fibre Channel HBA has been successfully created, type the cmdlet below.

Get-VMFibreChannelHba -VMName DemoVM

On the screen, you should see a full list of the Fibre Channel HBAs associated with a particular VM. Note that WWNs assigned to each HBA are unique, which is crucial for ensuring connectivity between the VMs.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Single-root I/O virtualization (SR-IOV)

This feature permits a VM and a physical adapter to exchange data directly, without using the Hyper-V virtual switch. SR-IOV improves networking performance within a virtual environment and significantly reduces latency and CPU overhead. Note that in order to enable SR-IOV, specific hardware is required. In case required hardware resources are not provided, network connectivity is conducted through the virtual switch.

Enable-NetAdapterSriov -Name vEthernet

Get-NetAdapter -Name ‘* ‘ -IncludeHidden

Storage on SMB2 file shares

Set-SmbServerConfiguration –EnableSMB2Protocol $true

After that, you will be asked to choose one of the options to complete this operation.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

NUMA Spanning

Non-uniform memory architecture (NUMA) helps in managing multiple CPUs and processes within the same NUMA node and can be used to optimize the use of memory by the VMs. If required, you can provide a specific VM with more computing resources by spanning NUMA nodes.

To check if this feature is available on your Hyper-V host, type the command below. The output will either be True (if enabled) or False (if not enabled).

Set-VMHost -NumaSpanningEnabled $true
Restart-Service vmms

To get the VM host’s NUMA topology, which includes node’s ID and the total amount of memory available, run this cmdlet:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Hyper-V Replica

This feature allows you to create VM replicas and send them to a remote server. Those replicas are regularly updated with the changes occurring on the source VM and can be used for planned or emergency failover. Thus, the primary purpose of this feature is to ensure business continuity and minimum business downtime. Hyper-V replication is asynchronous, meaning that the new data is first written to a primary storage and then the changes are copied to the replica.

The configuration of this functionality is too complex to be explained in this blog post. Therefore, I will only describe how to enable replication of the selected VM to a specific replica server. For that purpose, use the PowerShell command which you can see below (where DemoVM is the name of the VM to be replicated, DESKTOP-HQ44314 is the name of the replica server, 250 is a port used for replication traffic, and Kerberos is the authentication type).

Enable-VMReplication DemoVM DESKTOP-HQ44314 250 Kerberos

Boot from USB Disk

Add-VMRemoteFx3dVideoAdapter -VMName DemoVM

Moreover, you can configure the maximum resolution and the VRAM size of the RemoteFX adapter attached to a particular VM. To do so, type the cmdlet below:

Set-VMRemoteFx3dVideoAdapter -VMName DemoVM -MaximumResolution 1920×1200 -VRAMSizeBytes 67108864

Type the Get-VMRemoteFXPhysicalVideoAdapter cmdlet to get a full list of the RemoteFX physical graphics adapters available on your Hyper-V servers. This command can be used to verify that the Remote FX adapter has been successfully created.

Dynamic Virtual Machine Queue

This feature ensures successful packet delivery from an external VM network to a virtualized host OS. This technology allows you to reduce network overload by evenly distributing the incoming traffic among multiple physical CPUs. In Hyper-V 2012 R2, this feature has been updated to improve virtualization of intensive workloads.

Enable-NetAdapterVmq -Name ‘Dynamic Adapter’

New Virtual Hard Disk Format (VHDX)

  • 64 virtual CPUs per VM
  • 1 TB per VM
  • 64 TB per virtual hard disk
  • 320 logical CPUs per Hyper-V host
  • 4 TB per Hyper-V host
  • 1024 active VMs per Hyper-V host
  • 2048 virtual CPUs supported per Hyper-V host
  • 64 nodes per cluster
  • 8000 VMs per cluster

Устанавливаем Hyper-V Server 2012 R2

Начнем со скучного, установим сам Hyper-V. Подключаем привод, образ или флешку и устанавливаем.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Картинки выше, конечно не отображают всю полную хронологию, скорее для демонстрации интуитивной понятности процесса и его малым отличием от типовой установки ОС этого поколения Windows. Потому тут — «галопом по европам».
Единственное, на что я тут отвлекся на несколько секунд — установил размер системного раздела сервера по своему усмотрению. Остаток места можно использовать например для хранилища виртуальных машин (ВМ), создав позже еще раздел рядом.

Пока двигаемся дальше.

СОЗДАДИМ ВИРТУАЛЬНЫЙ КОММУТАТОР

Виртуальный коммутатор Hyper-V (Hyper-V Extensible Switch) предназначен для организации сетевого взаимодействия между различными ВМ, между ВМ и хостом виртуализации, между ВМ и внешней средой. На самом деле у Hyper-V Extensible Switch обширное количество возможностей, много вкусного появилось в версии 2012 R2. Так что сейчас не будем углубляться в эту тему, и создадим простейший External Switch, который привязывается к сетевой карте Hyper-V Server, и организует взаимодействие ВМ с физической сетью.

Для начала проверим поддержку SR-IOV (Single-Root Input/Output (I/O) Virtualization).

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

В моем случае поддержки SR-IOV нет. Это связано с тем, что я немного схитрил, и в данной демонстрации у меня Hyper-V сервер запущен не на живом железе, а в виртуальной среде.

Читайте также:  Возьмите под контроль свои подписки с помощью нашего простого в использовании менеджера подписок.

Получим список подсоединенных сетевых адаптеров

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Привязываем виртуальный свитч к сетевому адаптеру и при наличии SR-IOV включим его поддержку.

Внимание: Включить или отключить поддержку SR-IOV после создания свитча будет невозможно, для изменения этого параметра необходимо будет пересоздавать свитч.

New-VMSwitch -Name «Extenal_network» -NetAdapterName «Ethernet 2» -EnableIov 1

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

В моем случае Hyper-V выдает ошибку, опять же связанную с тем, что гипервизор сам запущен в виртуальной среде. На живом железе командлет создаст External Switch с именем «External_network» и привяжет его к сетевому адаптеру Ethernet 2. Виртуальный свитч также появится в списке сетевых адаптеров и на него будет перепривязаны все сетевые параметры физического адаптера Ethernet 2

Проверить можно с помощью командлетов Get-VMSwitch и Get-NetIPConfiguration –Detailed.

На этом этапе первоначальная настройка Hyper-V Server 2012 R2 закончена, и все готово для создания нашей первой виртуальной машины. Но об этом мы поговорим в следующей статье, использовать будем, естественно, PowerShell.

До скорых встреч!

ОТКЛЮЧАЕМ IPV6 НА СЕТЕВОМ ИНТЕРФЕЙСЕ

Если использование IPv6 на сетевом интерфейсе пока не планируется, имеет смысл отключить его на интерфейсе для уменьшения «attacksurface».

Проверяем текущую настройку IPv6 на интерфейсе. Имя интерфейса берем из вывода командлетов Get-NetAdapter или Get-NetIPConfiguration.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Отключить поддержку IPv6 на сетевом адаптере можно командлетом Disable-NetAdapterBinding. Данное действие будет аналогично снятию галки «Internet Protocol Version 6 (TCP/IPv6)» в настройках адаптера в графическом интерфейсе Windows.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

АВТОМАТИЧЕСКИЙ ЗАПУСК POWERSHELL ПРИ ВХОДЕ В СЕАНС

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Зайдем в оболочку PowerShell и запустим командлет New-ItemProperty, который создаст новый ключ в реестре HKLM:SOFTWAREMicrosoftWindowsCurrentVersion
un.

Теперь при следующем входе в систему будет запускаться окно с оболочкой PowerShell, в которой мы продолжим настройку нашего сервера.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Windows 8, Windows 8. 1, Server 2012 or Server 2012 R2 from the GUI

In versions of Windows higher than 7 and Server 2008R2, the Metro interface comes into play. For Windows 8 and Server 2012, start by hovering the mouse over the lower left corner until the Windows Charm bar appears, left click on the charm to open up the Windows Metro Interface. In Server 2012 R2, there is a little less coordination involved. Just simply left click on the Windows icon in the lower left corner:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Once in the Metro interface, start typing “Hyper-V Manager”. A search will immediately start for the letters typed and the tool will appear in the search box to the right, left click to open:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Also, if you Right Click on the search item you have the option of pining Hyper-V Manager to the Start Screen or Taskbar for easier access:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

ВЗАИМОДЕЙСТВИЕ С SERVER MANAGER

Если гипервизор и хост управления не являются частью домена, а находятся в рабочей группе, как в нашем случае, то при попытке добавить сервер Hyper-V в Server Manager на удаленном хосте возникнет ошибка согласования WinRM.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Решается проблема довольно просто – достаточно добавить на Hyper-V Server в доверенные узлы WinRM на хосте управления и обновить текущее состояние в ServerManager.

Set-Item wsman:localhostClientTrustedHosts HYPER-V01 -Concatenate –Force

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Настройка хоста управления гипервизором Hyper-V на Windows 8

Все манипуляции выполняются на системе «клиента», т. е. хоста управления, если не сказано иное.

Устанавливаем Windows 8

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

После установки гостевой ОС настроим ее сетевой интерфейс, указав нужные адреса. Т.к. в нашем примере, ВМ будет размещаться в самом Hyper-V, у которого я напомню, в конфигурации сети адрес из «скрытого» сегмента, то и указать надо будет обе сети, чтобы доступ был как у ВМ к гипервизору, так и к ВМ «извне» (основной, «нескрытый» пул адресов рабочей сети).

Например 192.168.55.0/24 и 192.168.10.0/24 как в данной статье.

Активируем удаленный доступ к ВМ и правило на входящие подключения в брандмауэре.
Правим файл hosts (необходимо для корректной работы оснасток в Windows 8 по имени хоста сервера):

Устанавливаем компонент «Диспетчер управления Hyper-V»:
Панель управления — Программы и компоненты — Включение и отключения компонентов Windows;

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

В загрузившемся окне диалога, отмечаем галкой пункт «Hyper-V» – применяем изменения кнопкой ОК.

Загружаем Средства удаленного администрирования сервера для Windows 8.1 (RSAT) и устанавливаем.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Запускаем командную строку Windows от имени администратора и окне CMD выполняем:

C:WindowsSystem32cscript C:WindowsSystem32hvremote.wsf /AnonDCOM:grant

Если пользователь в вашей ОС один и он администратор, то при действующих переменных можно сделать тоже самое короткой формой команды:

сscript hvremote.wsf /AnonDCOM:grant

Обращаем внимание на регистр символов в командах — в моем случае система выполняла данные команды только при правильном написании.

Запускаем команду для тестирования настроек связки клиент-сервер Hyper-V:

Вариант с CMD «от имени администратора»:

C:WindowsSystem32cscript C:WindowsSystem32hvremote.wsf /show /target:hyperv01

Или от пользователя-администратора

cscript hvremote.wsf /show /target:hyperv01

Смотрим в самом конце экрана вывода, если есть ошибки устраняем, вдумчиво изучая текст ошибок.

Запускаем mmc
Добавляем необходимые оснастки (во всех случаях для сервера HYPERV01):

Диспетчер Hyper-V
Брандмауэр Windows
Управление компьютером

Для последнего пункта. если он востребован, необходимо в правила брандмауэра на сервере Hyper-V добавить несколько дополнительных, для обеспечения требуемых типов соединений в зависимости от нужного раздела данной оснастки — их нетрудно найти в оснастке «Брандмауэр Windows» для HYPERV01, в перечне имеющихся по-умолчанию правил.
Кроме этого, на хосте управления также надо добавить некоторые отдельные правила, например одно важное для оснастки «Управление дисками» сервера. Для доступа к службе VirtualDisk на Hyper-V, в брандмауэре хоста управления надо включить разрешающее правило:

«Удаленное управление томами — загрузчик службы виртуальных дисков».

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

После того, как консоль MMC настроена, сохраняем ее конфигурацию в файл в удобном месте — например на рабочем столе.

По завершении перечисленных этапов настройки, у нас в руках удобное рабочее место по администрированию сервера Hyper-V с привычным интерфейсом.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Теперь, вы можете заняться изучением возможностей бесплатного Hyper-V в удобном интерфейсе. Главное не выключайте ВМ управляющего хоста! 😉

Настраиваем новый гипервизор из консоли sconfig (TUI-интерфейс)

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Ниже по пунктам перечислены действия, которые нужно выполнить из интерфейса Sconfig.

5. Включаем автоматическое обновление. (опционально)
6. Скачиваем и инсталлируем обновления. (опционально)

7. Разрешаем подключаться по rdp всем клиентам, с любой версией протокола.

8. Задаем сетевые настройки.

9. Устанавливаем время и дату.

Если вы меняли имя хоста и/или делали обновление, то вероятно вас попросят перезагрузиться. Когда первые установочные «ре-старты» завершены, пойдем далее.

Кстати говоря, можно уже соединиться с сервером по RPD, если такой вариант вам покажется удобнее.

Для первичной настройки и удобства оной временно выключаем встроенный брандмауэр сервера (также будет настроен чуть позже):

netsh advfirewall set allprofiles state off

Для удобства дальнейшей работы с ФС копируем на Hyper-V некоторые полезные инструменты:
— Total Commander (Far)
— HVRemote
— Дистрибутив ОС ввиде образа ISO будущей виртуальной машины.

Total Commander можно сразу же и установить.

По-моему так рабочее место администратора в Hyper-V выглядит более оптимистично:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Windows 7 and Server 2008 R2 from the Command Line

With Windows 7 or Server 2008 R2, opening Hyper-V Manager from the command line requires you to be in the directory in order to open virtmgmt.msc:

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Why Choose Hyper-V Server or Hyper-V in Windows Server Core Mode?

The more components that are enabled on a system, the more patches will be required. The more patches that are required, the higher the odds of downtime-inducing host reboots. While clustering can alleviate the downtime concern, even the act of patching consumes system resources. This can be problematic for organizations that run operations around the clock on densely packed hosts.

Reduced Attack Surface

With fewer active components, there are fewer entry points for an attack. The most common operating system component for assault is the Explorer graphical engine, which is not present in Hyper-V Server and not enabled in Windows Server’s Core mode. Working without a GUI does provide a meaningful improvement in system security.

Discourages Tinkering and Bad Behavior

All of Hyper-V can be managed by a remote system. It might be more convenient to build a management server or desktop and control all of your Hyper-V systems from that one console rather than connect to each of them individually. If you’re not going to be working on the local server, the lack of a GUI is likely to be a non-issue.

Установка и настройка системы хоста управления для Hyper-V

Настал момент задействовать хост управления гипервизором. Тут могут рассматриваться два различных варианта в зависимости от ваших возможностей, желания и наличия нужного свободного оборудования:

1. Вы используете реальный (отдельный физический) компьютер / сервер.
2. Устанавливаете виртуальную машину

Какой бы вариант не выбрали, в любом случае далее нужно будет установить одну из версий ОС на «выбор»: Windows 8.1 Professional или Windows Server 2012. Такое требование связано с наличием в этих версиях ОС необходимых инструментов администрирования для Hyper-V 2012 R2 начиная с указанных версий (тот же Windows 7 или Windows Server 2008 использовать можно только для управления Hyper-V 2008).

Ввиду того обстоятельства, что у меня не очень много доступных физических серверов, я буду описывать далее способ, когда виртуальная машина будет разворачиваться на том Hyper-V, которым в дальнейшем она и будет управлять. Такая вот интересная рекурсия.

Вообще говоря, существует возможность добавить виртуальные машины и с помощью того же PowerShell, но полагаю, что более удобным для данной конкретной задачи можно считать способ с утилитами имеющими графический интерфейс. Одна такая будет описана далее.

Развертывание виртуальной машины

Если вы ставите управляющий хост на физической машине, можете пропустить этот раздел и перейти сразу к следующему, где описывается настройка управляющей системы (Настройка хоста управления гипервизором Hyper-V на Windows 8.1).

Загружаем с сетевого ресурса локальной сети образ ISO нужного дистрибутива будущей виртуальной машины (Windows 8.1 Pro или Windows 2012 Server) в локальный каталог Hyper-V.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Качаем и ставим на клиента (например с Windows 7) программу 5nine Manager for Hyper-V.

Для корректной обработки запроса соединения с консолью виртуальной машины в программе 5nine Manager, на своей рабочей станции в файл hosts добавьте строку такого вида:

Добавляем в конфигурацию 5nine Manager наш сервер Hyper-V .

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Создаем в 5nine Manager новую виртуальную машину.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Не забудьте включить в свойствах новой виртуальной машины (ВМ) сетевой адаптер, указав его в диалоге настройки сети (в нашем случае это local1).

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Подключаемся к консоли виртуальной машины и «включаем» ее.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Выполним инсталляцию ВМ из ISO.

Microsoft Windows Hyper-V Server 2016 Technical Preview 3 (10.0.10514) (x64) (2015) [Eng] WZT

Оцените статью
Хостинги