Contacts

Installation Hyper V control on Windows 7. Automatic start and turning off virtual machines on the Microsoft Hyper-V platform. Basic Setup and Remote Access

We will add components Hyper-V. In Windows 10, consider the option of creating a virtual machine using Hyper-V.and also consider its parameters.

Add Hyper-V components.

Run "Run"any of two ways:

  1. Click right-click on the menu "Start" and choose "Run". (Fig.1)
  2. Press the keyboard key "Win"+"R".
Fig.1 - Right-click "Start" -\u003e "Run".

We enter appwiz.cpl(Fig.2)


Fig.2 - Enter appwiz.cpl

Window opens "Programs and Components". Left pressed "Enable or Disable windows components" . (Fig.3)


Fig.3 - Programs and components.

Window opens "Windows components". Choose everything that is in the section Hyper-V.. (Fig.4)

Click "OK".

Fig.4 - Selecting Hyper-V components.

We are waiting for the installation of components - Application of changes, and click "Reload now". (Fig. 5)


Fig.5 - Application of components, rebooting system.

On this Adding components it's finished. Getting Started with Hyper-V

Launch Hyper-V.

On the menu "Start" -> "Windows Administration" Appeared shortcut "Hyper-V Manager". Run it. (Fig. 6)

Fig.6 - Run the Hyper-V dispatcher.

Before us starting window "Hyper-V dispatcher". (Fig. 7)


Fig.7 - the starting window of the Hyper-V dispatcher.

Choose our computer left, I have it - Desktop-9PlBr7Q.The menu will appear on the right. "Actions", Click on the item "Virtual Switch Dispatcher". (Fig. 8)


Fig.8 - Go to the Virtual Switcher Manager.

IN "Virtual Switcher Manager" click "Create a Virtual Switch". (Fig. 9)


Fig. 9 - Create a virtual switch.

Enter Name, I have it - Hypernet and note, I have it - Hyper-V network. (Fig.10)

Also choose Connection type. I chose a connection to External network through my network card - "REALTEK PCIE GBE FAMILY CONTROLLER". And also installed a checkbox in Chekbox "Allow the management operating system to provide general access To this network adapter ".

Click "Apply".


Fig.10 - Properties of the virtual switch.

Picks up a warning "Ways can disrupt the network connection". (Fig.11) I assume that this article will read newbies, which means they are unlikely to step by step to repeat me, using the server involved, its company 😀 . Therefore, nothing terrible is that we can lose network connection for a while. Click "Yes" And wait "Application of Change".


Fig.11 - Warning of a possible violation of the network connection.

Now enrolled in "Network connections"-\u003e" Setting the adapter parameters ". We can see our just created vETHERNET (HYPERNET), the same with him is not connected vETHERNET (Default Switch) - "The standard network "automatically provides virtual machines access to a computer network using network addresses conversion ( NAT.). NAT. At the moment, we are not interested. And we will not touch this switcher. (Fig.12)


Fig.12 - Network connections -\u003e Setting the adapter parameters.

On this network setting is completed. Go to the most important thing for what a virtualization system has been created for Hyper-V. - FROM loading virtual machine.

Creating a virtual machine.

Click right-click on our computer -\u003e "Create" -\u003e "Virtual Machine". (Fig.13)


Fig.13 - Creating a Hyper-V virtual machine.

The "Virtual Machine Creation Wizard" opens. (Fig.14)

  • Press the button "Done"To create a virtual machine with default settings.
  • Press the button "Further"To create a virtual machine with special configuration parameters.

Fig.14 - Wizard create a virtual machine.

Indicate the name of the virtual machine and its location. (Fig.15)

I decided to test with the help Ubuntu Server 18.04.

For that, I have this:

  • Name:ubuntUserver 18.04.
  • Location: E: \\ Hyper-V Ubuntu Server 18.04 \\.

Fig.15 - specify the name of the virtual machine and its location.

Select a generation of a virtual machine. (Fig.16)

In most cases, it is worth choosing the second generation, but if you install something 32-bit.it is worth choosing - Generation -1.

Personally, I have Ubuntu Server 18.04 64-bitwith the support UEFI, therefore I choose - Generation 2.


Fig.16 - Select a generation of a virtual machine.

Select the number of RAM. (Fig.17)

My operating system is enough 1GB RAM \u003d\u003e I leave the default inscribed 1024 MB.. Go "Further".


Fig.17 - Select the number of RAM.

Choose to which switch will be connected to our network interface. (Fig.18)

Choose our "Hypernet" We go "Further".


Fig.18 - Setting up the network.

Create a virtual hard disk. (Fig.19)

Indicate Name, Locationand the maximum The size Virtual file HDD.

I have so:

  • Name: Ubuntu Server 18.04.VHDX.
  • Location: E: \\ HYPER-V Ubuntu Server 1804 \\.
  • The size: 10 GB

Fig.19 - Create a virtual hard disk.

Choose ISO-thought From which we install the operating system. (Fig.20)

Select item "Install the operating system from the file boot image" -\u003e Press "Overview" -\u003e Choose iSO-thought. -\u003e Schem "Further".


Fig.20 - Selecting an OS image.

Completing the Wizard of the Virtual Machine Creation Wizard. (Fig.21)

Click "Done".


Fig.21 - shutdown wizard creating a virtual machine.

Now B. Hyper-V Manager We see, just created, virtual machine - ubuntu Server 1804.. (Fig.22)

Press it right mouse button -\u003e "To plug".


Fig.22 - Hyper-V Manager, new virtual machine.

A window will appear (Fig.23)

If you want to install the system Windows then when you click on the button "Start" You must start the installation, without any errors.

But in order to start Ubuntu Server 18.04I had to "File" - > "Parameters"-> "Safety" Disable "Safe loading". (Fig.24)


Fig.23 - Connect to a virtual machine.
Fig.24 - Disconnect secure loading.

Turn on the virtual machine. (Fig.25)


Fig.25 - turn on the virtual machine.

Everything is excellent virtual machine started. We are encountered by the installer Ubuntu Server 18.04.(Fig.26)


Fig.26 - running virtual machine. Ubuntu Server 18.04.

Change the parameters of the virtual machine.

We will make a small overview of the parameters of the virtual machine so that you can view the main functions before you decide to enjoy the virtualization system Hyper-V..

"File" - > "Parameters".(Fig.27) Fig.27 - go to "File" -\u003e "Parameters"

Equipment.

"Built-in software" - You can change the priority of loading devices in a virtual machine. (Fig.28)


Fig.28 - Selecting the priority of downloads.

"Safety" - can "Switch on switch off safe download", "Enable / disable encryption support ". (Fig.29)

Fig.29 - Security settings Virtually machines.

"Memory"- You can edit the number of allocated RAM, turn on / offfunction Dynamic memory.(Fig. 30)


Fig.30 - RAM parameters.

"CPU"- You can edit the number of virtual processors in accordance with the number of processors on the physical computer. (Fig.31)

You can also distribute the load in "Resource management".


"SCSI controller"can add HDD, DVD driveor Total disk. (Fig.32)


Fig.32 - SCSI controller parameters.

You can also change parameters of connected carriers, for example, here we can change inserted into the virtual DVD drive ISO image. (Fig.33)


Fig.33 - Parameters of media.

"Network Adapter" You can change the configuration network adapter: Choose Virtual switchRegister Vlan ID., customize Throughput. (Fig.34)


Fig.34 - network parameters.

Control.

"Name"- You can easily change the virtual machine to more convenient for your use. (Fig.35)


Fig.35 - Name change.

"Integration Services"- Selection of services that you want to make accessible to the virtual machine. . (Fig.36)


Fig.36 - Integration services.

"Control points" - here you can configure Control points (snapshot, recovery points), enable auto mode Create them and assign their place storage. (Fig.37)


Fig.37 - checkpoints.

"Location of the Smart Padding file"- You can specify the path to the paging file. (Fig.38)

Smart Padding.- A function that makes it possible when a memory lack to download a virtual machine to use the paging file on the host.


Fig.38 - Location of the Smart Padding file.

"Automatic actions at startup" - You can choose the operation you want to perform with this virtual machine when you start a physical computer. (Fig.39)

In the operating system Microsoft Windows. 8 The Hyper-V virtualization technology appeared, previously accessible only in Microsoft server operating systems.

System Requirements for Hyper-V in Windows 8

1. OS

Hyper-V is available only in 64-bit windows versions 8 / 8.1. The editions of Windows 8 / 8.1 operating systems are supported. Professional and corporate.

2. CPU

  • 64-bit Intel or AMD Processor
  • Virtualization technology support (Intel VT-X or AMD-V), as well as second-level addresses conversion technologies (Second Level Address Translation, SLAT). Intel This technology is called EXTENDED Page Tables (EPT), AMD - Rapid Virtualization Indexing (RVI).

Before turning on the HIPER-V component, you must check whether all these technologies are included in BIOS / UEFI. In some cases, the BIOS update may be required to enable them.

To check if the processor supports virtualization technology data on the manufacturer's website http://ark.intel.com/products/virtualizationTechnology or AMD http://products.amd.com/pages/desktopcpuresult.aspx

You can also use for intel processors Utility IntelProcessor.IdentificationUtility..

1. Download program from Intel DownloadCenter.intel.com


2. Install and run the program.

3. Go to the tab CPU technologyto check whether the processor of virtualization technology supports.


Enable Hyper V component in MS 8.1 OS

1. To install - you need to open Control Panel -\u003e Programs and components and choose item Enable or disable componentsWindows.


This window can be called by pressing Win + R (for opening the window Perform) and input Optionalfeatures..

2. In the window that opens, find the item Hyper-V


In addition to the platform itself Hyper-V. This includes funds for its management - graphic snap Hyper-V Manager and module. Hyper-V for PowerShell.

3. Install checkboxes in checkboxes of all necessary components and click OK., after which you need to restart the computer.

4. After rebooting in the Metro interface, labels will appear to start Hyper-V dispatcher and Connections to the Hyper-V virtual machine.


5. These labels are also available in C: \\ PROGRAMDATA \\ Microsoft \\ Windows \\ Start Menu \\ Programs \\ Hyper-V Management Tools


Installing a guest operating system in Hyper-V

1. Open the Hyper-V Manager


2. In the main menu, select Actions -\u003e Create -\u003e Virtual Machine ...Similar actions available on the right pane Actions.


3. In the wizard dialog box that opens, click the button. Further

The wizard is necessary to assist in the process of configuring the virtual machine. It collects information about the location of the virtual machine, its name, information about the virtual network for connecting the virtual machine, the parameters of the virtual0go hard disk etc.

4. In the next dialog box, specify the name of the virtual machine, and if you need to store a virtual machine in a place, which differs from the default when installing the HYPER-V, you need to specify a new location.


5. In the next step, you must specify a generation of a virtual machine


Second generation virtual machines appeared only in latest version Hyper-V and has a number of features, some of them are listed below:

  • only operating systems can be used as a guest operating system in a second-generation virtual machine:
    1. Windows Server 2012 and Windows Server 2012 R2;
    2. Windows 8 (64 Bit) or Windows 8.1 (64 BIT).
  • there are no outdated devices, such as Floppy and COM ports
  • there is no IDE controller, the SCSI controller remains instead with the possibility of loading
  • standard BIOS. Replaced by Firmware based on Unified Extensible Firmware Interface (UEFI).

6. In the next dialog box, you must specify the number of RAM for the guest system.


RAM configuration strongly affects HYPER-V performance. A variant of using dynamic memory is available. In the case of using dynamic memory with virtual machines that require more memory, the memory resources of virtual machines are allocated, the requirements of which to the amount of RAM below. For example, those that are in idle state.

7. In the next step, the Virtual Machine Creation Wizard will show the screen Network configuration.

You must specify the virtual switch to which the virtual machine will be connected. If there is no network adapter selection in this window, it is necessary to create a virtual switch at the end of configuring a virtual machine.


8. In the next step, when configuring a new virtual machine, you must install the radio button in the paragraph Create new virtual disk . You can specify the name of the virtual hard disk, its location and size. If the virtual machine has already been created, you can choose Use available virtual hDD or Connect a virtual disk later.


9. In the dialog box Installation Parameters You must choose where the operating system will be installed. You must install the radio button in the image file item (.iso) and specify the path to the ISO image of the operating system installed.



If the distribution system operating system is recorded on the disk, you must select PhysicalCD orDVD. If you need to register the path to ISO form operating system, then you can choose Install the operating system later.

10.Dalign window of the final configuration of the virtual machine. If you need to make changes to the configuration, you must click the button Back.After pressing the button Ready Recording about the new virtual machine will appear in the Hyper-V controller in the state Disabled.


Creating and configuring a virtual switchHyper-V.

11.The Menu Actions choose Virtual Switcher Dispatcher.


There are three types of virtual networks to which you can connect to Hyper-V: Private, Internal and External Virtual Network

The private virtual network allows the interaction of all virtual machines among themselves. The physical network adapter is not associated with private networks. In this network, virtual machines cannot interact with the receiving operating system, and the receiving OS cannot interact with virtual machines in a private virtual network.

The internal virtual network is similar to a private virtual network by the fact that it allows the interaction of all virtual machines among themselves, but unlike a private network, virtual machines can also interact with the HOST system.

The external network is used when you need to provide a virtual machine access to the physical network. In fact, the physical network adapter is associated with the virtual switch, and Hyper-V intercepts control when you try to access the virtual machine to the network through this switch.

12. Select the type of virtual network External -\u003e Create a Virtual Switch

13. In the window that opens, the Virtual Switch Property window needs to specify the switch name and connection type.


14. When creating an external network, you can enable joint access to the network adapter from the virtual switch and the Host system, for this you need to check the Checkbox checkbox. Allow the management operating system to provide shared access to this network adapter..

15 . If the network uses a division into logical subnets, then the virtual switch connected to the external network can be allowed to use the VLAN by checking the Checkbox check box Allow virtual identification local network for managing operating system And specify VLAN ID.

16. Support Apply-> OK.

17. On the panel Virtual machines Hyper-V dispatcher Select a configured virtual machine and call the context menu with the right mouse button.

18. In the context menu, select Parameters -\u003e Network adapter

19. Specify for the selected virtual machine Created Virtual Switch


20. Press Apply-\u003e OK.

21. Purchase installation of the guest operating system by clicking on the icon Start On the panel Actions(Also, the launch of the virtual machine can be carried out by selecting in the main menu Act-\u003e Startor through the context menu).

Today we will learn about how to install and configure Hyper-V Server hypervisor from microsoft., as well as about some underwater stones and ways to avoid them.

The reason for writing this article was the material of this post. This post is suitable as a crib if you have already worked with this hypervisor. The newcomer will have to face a bunch of nuances and step up a lot of forums, in search of answers to non-standard questions.

For beginners in the article, all the actions and their meaning will be set forth as much as possible, so that they had the opportunity to start experimenting and inventing their own. For more savvy - the article is divided into logical blocks and subblons so that you can quickly find the necessary information.

Description

MS HYPER-V Server is a trimmer version of MS Server 2008 R2 in core mode (i.e. in fact graphic interface absent) with the role of Hyper-V and nothing more. According to Wikipedia, the Hyper-V Server is distributed free of charge, which is associated with convenient control and integration with MS products, makes it a very attractive hypervisor. In addition, it has sufficiently high performance indicators, which means the resources of the host machine will be spent on the work of the services we need.

Installation

Before starting the installation, you must make sure that your processor supports Intel VT-X or AMD-V hardware virtualization technologies.

First you need to download the Hyper-V Server 2008 R2 distribution from the Microsoft website (you do not need to register). Next, record an image on a DVD or make the installation flash drive. Insert the disk / USB flash drive and boot from it.

Hyper-V Server - Selecting the Language Master Installation

The installation window invites us to choose the operating system language. Choose English, then in the article will be explained why it is it.

Hyper-V Server - Select OS language and keyboard layouts

We have chosen English, and the time format is better to choose Russian, then not to suffer with setting up on the command line.

Hyper-V Server - Setting Type Installation

Choose full installation (CUSTOM).

Hyper-V Server - Setup hard parameters disk

At this stage, the master proposes setting the parameters hard sections disk. It is best to create 2 logical disks. The first is to install the hypervisor itself, it will be enough 15 GB. Second for storing virtual machine containers (VM). Thus, it will be much more convenient to manage, import and migrate VM.

We click "Next" and we can relax for a while. During the installation process, the computer will reboot several times.

Setting

Basic setting and remote access

After rebooting the Hyper-V Server will offer us to install the administrator password. Since the default MS Windows 2008 Server R2 policy is the requirement for the password complexity, you will have to come up with a password long of 6 characters, which necessarily contains a capital letter and a special or digit (for example "Password1").

As you can notice below in the screenshots of the management console in Russian, although English has been chosen in the installation, most likely this is from the fact that the Russian distribution was downloaded from the official Microsoft website. This will not affect the work and configuration of the server. If you have a console in English - you can do by analogy, all settings will easily understand.

Hyper-V Server - Management Interface

After loading the work environment, the OS offers us 2 management consoles. Standard CMD and Console Console with Preset Options. First of all, we need to set a static IP address and configure remote server management. In the management console, select paragraph 8.

Hyper-V Server - Network Adapters

The list will list network adapters. Choose the desired and enter its index. Next, select "1 - set the IP address of the network adapter." Enter "S" - which means a static IP address. For example, set the parameters:

IP address - 192.168.1.100 Subnet mask - 255.255.255.0 Default gateway 192.168.1.1 After applying the parameters, we will return to the submenu where the previously entered settings will be. If everyone is right back to the main menu. Now configure remote access. Select item 7, then turn on the remote desktop, enclosing the English "E". On the question of restricting connections from RDP clients of old versions, choose "2" - connect from any clients.

In the main menu, select item 9, and set the current date and time on the server.

Network server name and working group

Now set up a working group. For the Hyper-V Server, we will not include it in the domain that somewhat complicates the setting, but for experiments it is the perfect option. During tests and verification of various configurations, it is better to isolate test machines from the target network.

We choose paragraph 1, then "join the Working Group" by entering "W". Next, set the name of the Working Group, for example "Test". It is very important that the name of the Working Group on the Hyper-V Server and PC, from which we plan to manage them coincide. After that, we return to the main menu.

It is advisable to set the network name of the server, select paragraph 2 and enter the name, for example, "Hyper-SRV". To apply the parameters, you must reboot, agree with the OS proposal.

Further all settings (such as computer name, working group, users, IP address, etc.) will be used as those described during the installation process. If you set your parameters, do not forget to use them.

After rebooting, we can connect to the server using the remote desktop client. Select Start -\u003e Run, fit: MSTSC In the first field, you specify the IP address (in my case 192.168.1.100), connect. The server will request authorization data, enter the name of the user "Hyper-SRV \\ Administrator" and password "Password1".

So, we connected, now you need to configure extra options Remote control. We go to clause 4. Now, in order, we choose subparagraphs 1, 2 and wait for the end of the setting. After completion, the OS again will ask to reboot. Upon completion of these settings, we will be able to connect to the server with the help of the MMC console and the Hyper-V server manager from the Remote Server Administration Tools (RSAT) package. This will be described in more detail on the text.

Install RSAT and Hyper-V Manager

For a comfortable remote server management (Create / Delete / Import / Setting up VM, add / delete hardware, managing users / group policies, etc.) We need to install RSAT to our PC. We will be installed on Windows 7. First of all, I download it from here. In this package, we need a component of the "Hyper-V" manager for the MMC console - this is the actual main tool for managing future VM.

Subsequent settings will need to be made both on the server (for brevity SRV) and on our control PC (CC).

Set up users

First of all, you need to create a user, on behalf of which we will manage. User names and passwords must coincide for the Criminal Code and SRV!

On SRV - in the management console, select paragraph 3 (adding a local administrator). We specify the name "Admin" and password for it "QWERTY1". Check, I was successfully added, in the CMD console, we enter: Net User admin This command will show us that it consists in the "Administrators" and "Users" groups.

On the Criminal CMD - run the CMD console on behalf of the administrator and enter the command: Net User Admin QWERTY1 / Add Add it to the Administrators group: NET LocalGroup Administrators Admin / Add For English Version We enter: NET LocalGroup Administrators Admin / Add will again check the results with: Net User Admin.

To configure users and security groups, there is a wonderful "HVRemote" utility, written by one of Microsoft employees.

Download the utility and copy the file "hvremote.wsf" to the server. Remember at the very beginning, mentioned that you need to choose English for OS? So, for the correct operation of the script "HVREMOTE.WSF", it is necessary that security groups and users are called in English.

A small retreat: as it was written before - in Hyper-V Server there is no graphical interface. This is not quite the case, Microsoft simply cut out the maximum all that is connected with Explorer, but it does not prevent us from running applications having graphic windows. For example, you can copy the Total Commander program to the server disk and run it from the console.

Hyper-V Server - Start Applications

We will continue, on SRV - open the CMD console, go to the folder with the HVRemote.wsf file (in the article file is saved to the root of the disk C :). We execute the command: CScript hvremote.wsf / Add: domain \\ account where domain is the name of your server (domain), Account is the name of the account for control. In our case, the command will look like this: CScript HVRemote.wsf / Add: Hyper-SRV \\ Admin

Hyper-V Server - execution of the script

As a result, you should work out on the screenshot. The script added the user to the necessary groups and appointed him right.

On the Criminal Side, you must execute the following commands CScript Hvremote.wsf / Anondcom: Grant CScript Hvremote.wsf / MMC: Enable

To operate the Remote Control Console, you must create an exception rules in the server firewall. First of all, create a rule that allows you to manage logical disks:

Netsh Advfirewall Firewall Set Rule Group \u003d "Remote Volume Management" new Enable \u003d YES If you have an error of the type "Group Cannot Be Specified with Other Identification Conditions" - try reprinting command manually, not copy / paste. Result successful implementation Commands: Updated 3 Rule (s). OK. Next, I allow the remote control of the Netsh Advfirewall Firewall SET Rule Group \u003d "Windows Firewall Remote Management" New Enable \u003d Yes The result of a successful execution of the command: Updated 2 Rule (s). OK. Allowed access for any MMC Netsh Advfirewall Firewall SET Rule Group \u003d "Remote Administration" New Enable \u003d Yes The result of a successful execution of the command: Updated 3 Rule (s). OK. Allowing to use " Windows Management. Instrumentation (WMI) »Next command Netsh Advfirewall Firewall Set Rule Group \u003d" Windows Management Instrumentation (WMI) "New Enable \u003d YES The result of a successful execution of the command: Updated 4 Rule (s). OK. ICMP protocol: Netsh Firewall Set ICMPSETTING 8 Allowed access to shared files and folders: Netsh Firewall Set Service Type \u003d FileandPrint Scope \u003d Subnet If you for some reason you cannot connect to the server, try to disable the firewall with the Netsh Firewall Set Opmode Disable command You may have to create additional rules Access.

Now we can use the MMC tooling to control the server (service management, users, politicians, etc.) and the most important Hyper-V dispatcher. Let's open it: Run the MMC console -\u003e File -\u003e Add or Remove Snap -\u003e Hyper-V Manager. Select the Menu Action -\u003e Connect to server -\u003e Another computer. In the Enter the Network Name of your Server (Hyper-SRV) and connect.

Hyper-V Server - VM Management Manager

That's actually all, we have successfully installed and configured our Hyper-V Server. Now you can safely deploy virtual machines and various services.

Wikipedia - Hyper-V Server Useful Console Commands

Good day. Thanks to my site, I am constantly picking in the operating system and, of course, with time I began to look for a way that I could write instructions, but at the same time make changes to the operating system of my working computer ... The solution came the elementary - virtual machine. This emulation is fully (or almost completely) a working operating system that runs on your operating system. I tried VirtualBox, VMware Workstation and Hyper-V ... VirtualBox - free and not as comfortable as the other two. VMware Workstation is excellent in all positions, but paid. Hyper-V is a completely balanced virtual machine that has moved from server operating systems in Windows 8 and requires simply inclusion for access. Therefore, the choice fell on the last: simple, free and tasteful. Windows 10 Professional I have, by the way, licensed, but got free thanks windows program Insider (six months of suffering with bugs and pocket license)).

I probably will immediately prevent that when you turn on Hyper-V components, you will not be able to use other virtual machines. So, let's begin:

We click on the right mouse button on the corner of the "Start" and choose "Programs and Components".

In the left panel, select "Enable and disable Windows Components"

Now open the "Start" → "All Programs" menu → We are looking for a "Administration Tools" directory and find the Hyper-V Manager in it.

Running it, we will see the console of control of virtual machines, I already have one created machine on which the musical bot for my TeamSpeak server is located. But now we create another car to show how it is done. But for starters, let's immediately create a "virtual network" so that our VM has the Internet. To do this, click on the name of the computer in the left column, and in the right choosing the "Virtual Switch Manager".

I add this paragraph in two months after writing the article. All because, below, I described a simpler way to connect a virtual machine to the Internet, but I myself use a little different. The difference in them is that in the method that is described here, the main access gets a VM, and the computer works after it and it is not correct, but it is easier to set up. If you use the computer not only for the work of virtual machines, select "Internal" → "Create a Virtual Switch" and put a tick to the "Allow identification" item. Internet access is configured by.

On the left, choose "Create Virtual network switch", On the right" external "and click" Create a Virtual Switch ".

We enter a name for the network, in the "External Network" section, select your network adapter and clamp approx.

Now create a virtual machine. Click "Create" - "Virtual Machine".

Opens " Virtual Machine Creation Wizard", On the first window just click" Next. "

Specify the name for the future virtual machine. If you wish, you can also change the storage location of the virtual machine, I changed the place in the settings so as not to clog SSD and all virtual machines are stored on one of hard disks. Click "Next".

Everything is simple, read what is written if you have motherboard Without the support of UEFI or you are going to put a 32-bit system, we select the first item if the conditions for using the second generation coincide with your capabilities, choose the second generation. I want to put 32bit Ubuntu, for one of the following articles, so I choose the first generation of Hyper-V. Click Next.

Volume virtual memory. In the case of Windows, it is desirable 2-3GB for 32bit systems and 3-4 GB for 64 bit systems. More for a virtual machine does not make sense, and less can affect the operation of the system. You can also use " Dynamic memory"In this case, the memory of as much as it is necessary for VM will be allocated.

Select the volume of the hard disk of the future machine and the location of its file. Under the need for Win 8-10 you need at least 25GB. I take under Ubuntu with a big margin.

I was given the opportunity to install and configure a free hypervisor from Microsoft - Hyper-V Server 2012 R2. I used to work with Hyper-V, but in a full-fledged server, I did not put a free version. In general, I like the Hyper-V, so I decided to look at his free version. What I saw a little did not coincide with my expectations, but about everything in order. This article is also suitable for installation and windows settings Server 2012 R2 Core.

Installing Hyper-V Server 2012 R2

First of all, you download the latest version of the hypervisor from Microsoft. You need to download the British version. First, in Russian there were some bugs, although they could have been fighters already, but it was not only in this. To automate and simplify the Hyper-V Server 2012 R2 setting, we will use scripts written for the English version, they will not work in Russian. I first put the Russian version, spent some time, then spit and reinstalled the system.

Installing enough banal and does not differ in principle from any other windows installations. The image is downloaded, the system is loaded from it and is installed. At the end of the installation we meet the console with hyper-V settings Server 2012 R2:

Immediately let the hint in case you close the Hyper-V Server Configuration Console. Run it again can be commanded scoonfig. I had to spend decent time to find how to do without rebooting the server.

Setting up Hyper-V Server 2012 R2

We set the necessary settings through the console:

1. Indicate the Working Group. I consider the option setting a separate server that is not included in the domain network. In the setting domain there will be others.
2. Indicate the server name.
3. Create an additional user. You can work from Administrator, which is created by default, but it is better to create a separate user to control the individual user. Later it will be clear why.
4. Turn on remote control.
5. Turn on automatic update.
6. Download and install updates.
7. Let me connect to RDP to all clients with any version of the protocol.
8. Specify network settings.
9. Install the time and date.

On this initial setting Finished. While everything is clear and logical.

Use the command line in Windows, in my opinion, very uncomfortable. Commands are long, non-obvious, configure a hypervisor and create virtual machines through the command line incredibly long and tediously. In addition, the cop-paste is often buggy, long commands have to be dialing manually. I had to google to at least understand how I download the image of the system to the server to at least somehow start installing the virtual machine.

Preparation for remote management HYPER-V Server 2012 R2

So to conveniently manage free hyper-V hypervisor Server 2012 R2 You must perform a number of steps.

First of all, take a flash drive and write to her Total Commander and Hvremote. We insert into the server and use the command line to create on the disk from: the folder and copy our programs there. Now via the command line launch Total Commander:

Now we have at least a convenient file manager. Customize on. In the command prompt, we turn off the firewall with the following command:

Netsh Advfirewall SET Allprofiles State Off

You can not disable it, but configure. To do this, you will have manually with console commands to include the relevant rules. I first went on this path, then spitched and just turned off the firewall. In most cases, on the local network there is no need. If you want to leave a firewall, configuring it, then what you need to open for a successful remote control Hyper-V Server 2012 R2:

Access for any MMC console snap:

Netsh Advfirewall Firewall Set Rule Group \u003d "Remote Administration" New Enable \u003d YES

Remote disk management:

Netsh Advfirewall Firewall Set Rule Group \u003d "Remote Volume Management" New Enable \u003d YES

Remote launch of firewall control equipment:

Netsh Advfirewall Firewall Set Rule Group \u003d "Windows Firewall Remote Management" New Enable \u003d YES

Access to shared files and folders:

Netsh Advfirewall Firewall Set Rule Group \u003d "File and Printer Sharing" New Enable \u003d YES

Using "Windows Management Instrumentation (WMI)":

Netsh Advfirewall Firewall Set Rule Group \u003d "Windows Management Instrumentation (WMI)" New Enable \u003d YES

CScript hvremote.wsf / Add: name_nistrator

On this, the configuration of the free Windows hypervisor for remote control is completed. It is ready for connecting and creating virtual machines. Now we need to prepare workplace To control Hyper-V Server 2012 R2.

Remote control HYPER-V Server 2012 R2

Here I ran into a very unpleasant moment. Remote control requires operational windows system 8 or Windows Server 2012. I have a basic workplace on Windows 7. I tried to configure everything that is necessary on it, but I did not succeed, so I will not describe my steps. Perhaps there is some kind of working decision, but I did not spend a lot of time on his search. I enrolled as follows.

there is free program . It allows you to manage Hyper-V Server 2012 R2 hypervisor. Unfortunately, free version strongly cut down the functionality and use only her for full-fledged control not very comfortable. But to create and install the virtual machine will come down. I used it to establish on Windows 8.1 hypervisor and adjust the workplace for remote control of the hypervisor.

So, I download the program and put it on your computer. Run and add our server. We indicate as a user of a local hypervisor admin administrator:

The first thing in the program needs to configure the network so that the virtual machine has access to LAN. To do this, go to the Virtual Network Manager tab and click Create. Indicate the settings:

Be sure to put a tick ALLOW MANAGEMENT OPERATION SYSTEM TO SHARE THIS NETWORK ADAPTER. I first created 2 virtual connections on both network adapters and did not put this checkbox. As a result, the hypervisor itself remained without a network. I had to picked up a very long time and understand how having only access to the console to return everything back. It turned out that this can be done using the team:

Set-vmswitch -name "Local1" -allowManagementOS 1

And one more important remark. After you create a virtual adapter, the network settings of the physical adapter entered earlier will reset and you lose access to the server at the old address. A virtual adapter after creating receives settings for DHCP. Have it in mind. If you have only one network adapter, then you will need to dHCP server To see what address received a hypervisor, and connect to it at this address. Then manually change the address through the control console.

Create a virtual machine. Everything is quite simple and understandable there, it is made by the mouse over the menu, I will not stop at this in detail. If you have a problem with the fact that 5Nine. It cannot connect to the console of the virtual machine and it writes that it is impossible to connect via RDP, then do the following. In file hosts. Systems register the correspondence of the IP address of the server name and connect to the hypervisor by name, not by IP. I once encountered such a problem.

At the output we have Windows 8.1 connected to the network. RDP open on it, connect and begin to prepare it for the remote control of Hyper-V Server 2012 R2 hypervisor.

First of all create there local user With the same name and password, as on the hypervisor. For convenience, it is better to work under the same user, otherwise all the snaps are constantly started, pointing out each time account Administrator hypervisor.

10.1.3.3 Hyperv

Now set the Hyper-V control manager. To do this, go to the control panel, open "Programs and Components", Press "Enabling and disable Windows Components". The list of components will be loaded, in which the checkbox mark Hyper-V and click OK:

And on the very client computer You need to open something on firewall so that the equipment earned, but I just turned off it. While I did not do this, I did not load "drives".

FROM remote control Discs are one nuance. Perhaps this is only I have such a mistake, but just in case I will tell you about it, maybe someone will help. I spent some time while I figured out what the case is here. When making some changes in disks, these changes are not displayed. That is, you did something, click to update, but nothing changes. But in fact, the changes occurred, just not visible. To see them, you need to completely close the "Computer Management" snap and re-open.

Now you can see the system logs, solve the folders, plan through a planner some task. In general, everything you need to manage the free hypervisor Microsoft Hyper-V Server 2012 R2 is now available.

You can connect to the hypervisor rDP.The same screen will open as when working with a monitor: Management console and command line. In it, by the way, you can run the task manager and view the loading of the system using the command. taskmgr.:

Online Linux course

If you have a desire to learn how to build and maintain highly accessible and reliable systems, I recommend to get acquainted with online course "Administrator Linux" in Otus. The course is not for beginners, for admission you need basic knowledge on networks and installation Linux on a virtual Training lasts 5 months, after which successful graduates of the course will be able to pass interviews from partners. What will give you this course:
  • Knowledge of Linux architecture.
  • Mastering modern methods and data analysis and data processing tools.
  • The ability to select the configuration for the necessary tasks, manage processes and ensure the security of the system.
  • Possession of the main working instruments of the system administrator.
  • Understanding the features of deployment, settings and maintenance of networks built on the basis of Linux.
  • The ability to quickly solve emerging problems and ensure a stable and uninterrupted system operation.
Check yourself on the introductory test and see more of the software program.
  • Setup with help Hvbackup..
  • Windows systems.
  • Carefully, actively applies.
  • Setup.


Did you like the article? Share it