Hyper-V creates and manages virtual machines, and hyper-v creates virtual machines.

Source: Internet
Author: User

Hyper-V creates and manages virtual machines, and hyper-v creates virtual machines.

Hyper-V is a Virtual Machine service provided by Microsoft. After Hyper-V is installed, the system automatically installs the visual Virtual Machine Management Tool Hyper-V Manager. On the same physical machine, you can use Hyper-V to create multiple virtual machines (VMS). Each VM executes different workloads and runs a separate system environment. Hyper-V provides comprehensive flexibility for VM management. You can create multiple VMS on one physical machine as needed, and install different operating systems (Windows or Linux) on each VM ), run different applications. However, virtual machines sacrifice performance, and both IO and CPU performance will decrease.

You can use virtual machines to run different workloads. Each virtual machine runs in an isolated execution environment, which gives you the flexibility to run different operating systems and applications on one physical computer.

1. Install the Hyper-V function

The operating system used in this article is Windows Server 2012 R2. By default, Hyper-V is not installed. To create multiple VMs on a physical machine, first install the Hyper-V function. Open the Server Manager> Dashboard form and click "Add Roles and Features". On the Server Roles Tab, select Hyper-V for installation.

2. Create a virtual machine in Hyper-V

After Hyper-V is installed, the system automatically installs Hyper-V Manager (Hyper-V Manager). By default, this machine is added to the Server list, you can use the "Connect To Srever" menu To add other servers (Hyper-V Feature installed) To the Hyper-V Manager and use Hyper-V Manager To create and manage virtual machines.

1. Open the New Virtual Machine Wizard (Wizard)

2. Specify the VM name and data storage Location)

3. Select the VM version (Generation)

Hyper-V versions have two generations: Generation 1 and Generation2. The first generation of virtual machines is the previous version of Hyper-V. The second generation of virtual machines start faster (boot), with fewer hardware resources and higher performance, however, not all machines support the second generation VM. Therefore, you can select Generation 2. If the second Generation VM fails to be created, select Generation 1.

4. Allocate boot memory for the VM

Allocate boot memory for the newly created VM. Check the dynamic memory allocation option. The VM dynamically uses the system memory.

5. Configure the network adapter and select the network adapter from the connection list.

6. allocate disk space for the VM to store data

Create a Virtual Disk file with the suffix vhdx. It is a file in the logical drive letter and can be dynamically expanded to store vm OS and data files.

7. Install the operating system for the VM

Option: Install an operating system later. After the VM is created, wait until the VM starts to Install the OS. This option is used in this article.

The other two options are to install the OS when creating the VM, either from the image file (ISO) or from the network. If you have an image file for Windows Server 2012 R2, you can select "Install an operating system from a bootable image file" with the suffix. ISO.

8. Summary: Describes the VM configuration. Click Finish to start VM creation.

3. Configure VM and install OS

When creating a VM, select "Install an operating system later". Therefore, after the VM is created successfully, configure the VM and Install the OS. On the Virtual Machines panel, all VMs created on a specific Server are listed. Select a VM to install the OS.

1. Click Connect to open the VM.

2. Click Start to Start the VM.

3. Install OS from image file (ISO)

First, add the integrated service to install the hard Disk, click the menu Action, and select "Insert Integration Services Setup Disk",

Then, add the Disk driver, click Media in the menu, select "DVD Drive", select "Insert Disk", and select the installation image file (ISO) of Windows Server 2012 R2 );

Finally, shut down the VM (shutdown), set firmware, boot from DVD Drive (boot from DVD Drive), and set the process as follows:4. Set Firmware to boot the VM from the Firmware)

Restart the VM and wait for the following Dos interface to appear. Press any key to boot the VM from the CD or DVD to install the OS.

4. Set Firmware to boot the VM from the Firmware)

Click VM Settings to open the VM_Test setting form.

Click Firware to set the Boot order of the VM Boot, which is the first Boot Entry. The default type is File, from bootmgfw. boot in the efi file; change the first boot Entry to Hard Drive. First, boot the VM from the Disk Drive, select Hard Drive, and click Move Up to Move Up.

4. Virtual Switch Manager)

On the right panel of Hyper-V Manager, click Virtual Switch Manager to open the vswitch Manager panel,

In Hyper-V, three types of Virtual switches can be created:

  • External: Bind the Virtual Switch to the physical network adapter. In this way, the VM can access the physical network and communicate with the Internet;
  • Internal: Virtual Switch cannot connect to a physical network adapter. It can only be used to create a VM on a local physical machine for communication between the VM and the local physical machine;
  • Private: The Vitrual Switch can only be used to create VMs on the local physical machine, so that VMs can communicate with each other;

5. Modify VM settings

1. Modify Firmware, as described above

2. Configure the memory resources used by the VM. There are four configuration options:

  • Startup RAM: Memory resources allocated when the VM is started. We recommend that you configure
  • Dynamic Memory: VM dynamically increases or reduces memory usage. You need to allocate memory resources to the VM. We recommend that you configure
  • Memory Buffer: When the memory used by the VM dynamically increases or decreases, try to retain the (Reserve) memory buffer. We recommend that you use the default value.
  • Memory Weight: Priority of contention for memory

3. Processor Configuration)

Manage the Virtual Machine processor and allocate the number of processors to the VM

4. SCSI Controller

Manage Virtual Hard Drive, allocate Virtual Hard disks to VMS, and shrink or expand Disk space

5. Network Adapter)

Manage Virtual Machine network adapters and assign Virtual Switches to Virtual machines

Vi. troubleshooting

1, Hyper-V: Firmware display Load Failed

For details, see Hyper-V: Firmware-Load Failed and Hyper-v vm Load Firmware Failed. The Powershell code used is:

(Get-VM "YOURVMNAME" | Get-VMFirmware).BootOrderGet-VM "YOURVMNAME" |Get-VMFirmware|ForEach {Set-VMFirmware -BootOrder ($_.Bootorder | ? {$_.BootType -ne 'File'}) $_}

2, Hyper-V: Boot Failed. efi scsi Device

 

 

 

Reference:

How to Use Hyper-V

In-depth introduction to Hyper-V network virtualization technology

What is the memory buffer when dynamic memory is enabled?

Deciding When To Use Generation 1 or Generation 2 Virtual Machines with Hyper-V

Hyper-V Guide: Create and Configure Generation 1 and 2 Virtual Machines

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.