Create and manage Hyper-V Server virtual machines

Source: Internet
Author: User

I. Creating a hyper-V virtual machine with a wizard

1. Open the Hyper-V host, click Server Manager, click Hyper-V, right-hyper-V host select and open Hyper-V Manager

650) this.width=650; "height=" 374 "title=" clip_image002 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/ M02/54/39/wkiom1r8ag2wjsgaaaezlak4fxg931.jpg "border=" 0 "/>

2. On the right-side Hyper-V server of Hyper-V Manager, select New, select Virtual machine

650) this.width=650; "height=" 423 "title=" clip_image004 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image004 "src=" http://s3.51cto.com/wyfs02/ M00/54/39/wkiom1r8ag3dq7gzaafuasf70bw409.jpg "border=" 0 "/>

3. Open the New Virtual Machine Wizard and click Next

4. Specify a name and location, determine the virtual machine name and storage placement

650) this.width=650; "height=" 420 "title=" clip_image006 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image006 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8apetjagmaafl0rvjf7w263.jpg "border=" 0 "/>

5. Select Hyper-V virtual machine algebra. The second generation is a new addition to Windows Server R2, and Hyper-V uses fewer hardware to support multiple features, such as secure boot, SCSI boot, and PXE boot using a standard network adapter. The guest operating system must be running at least Windows Server 2012 or 64 for version Windows 8. The Hyper-V virtual machine algebra cannot be modified after virtual machine creation is complete. Here you choose to create your first generation virtual machine and click Next

650) this.width=650; "height=" 418 "title=" clip_image008 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image008 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8apeahdesaaeuhnhvzja487.jpg "border=" 0 "/>

6. Allocate memory to the virtual machine. Here you can choose to use static memory or dynamic memory, click Next

650) this.width=650; "height=" 422 "title=" clip_image010 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image010 "src=" http://s3.51cto.com/wyfs02/ M01/54/38/wkiol1r8apiqu3c5aaepjo-weqs698.jpg "border=" 0 "/>

7. Select the virtual switch so that the virtual machine can communicate properly after it is created. You can also add a virtual network card to the Hyper-V virtual machine settings after the virtual machine finishes, click Next

650) this.width=650; "height=" 416 "title=" clip_image012 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image012 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8apiawizxaaeh0mjjdjk726.jpg "border=" 0 "/>

8. Connect the virtual machine hard disk, you can choose to create a new virtual hard disk, use the existing virtual hard disk, and then attach the virtual hard disk, click Next.

650) this.width=650; "height=" 419 "title=" clip_image014 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image014 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8apmwym1jaafrawurjmi723.jpg "border=" 0 "/>

9. Installation options. You can choose to install the operating system later, insert the operating system image files, and install the operating system from the network

650) this.width=650; "height=" 419 "title=" clip_image016 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image016 "src=" http://s3.51cto.com/wyfs02/ M01/54/38/wkiol1r8apntl0siaae8zohyoyc200.jpg "border=" 0 "/>

10. Click Create after the summary is confirmed

650) this.width=650; "height=" 419 "title=" clip_image018 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image018 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8apqi2g0baaetm2ysdta785.jpg "border=" 0 "/>

11. Return to the Hyper-V Manager interface to view the virtual machines created

650) this.width=650; "height=" 421 "title=" clip_image020 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image020 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8apqx3bgzaaevosvdsuu532.jpg "border=" 0 "/>

Ii. creating a Hyper-V virtual machine using PowerShell

(i) Create a Hyper-V virtual machine using PowerShell

1. Running Windows PowerShell ISE as an administrator

2. In Windows PowerShell Ise character interface input Import-module Hyper-V, click Run, enter

NEW-VM "bj-cli-01"-memorystartupbytes 512mb-path "D:\Hyper-V", click Run

650) this.width=650; "height=" 247 "title=" clip_image022 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image022 "src=" http://s3.51cto.com/wyfs02/ M01/54/38/wkiol1r8apvhm8goaac-7dq3gpe546.jpg "border=" 0 "/>

(ii) Creating Hyper-V virtual machines and VHD files using PowerShell

Enter the following command

$VMName = "bj-cli-02"

$VMPath = "D:\Hyper-V\BJ-CLI-02"

New-vm-name $VMName-memorystartupbytes 512mb-path $VMPath-newvhdpath "$VMPath \ $VMName \bj-cli-02. VHDX "–newvhdsizebytes 100GB

650) this.width=650; "height=" 265 "title=" clip_image024 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image024 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8apvxmbraaadx0rgwycw370.jpg "border=" 0 "/>

(iii) Creating a virtual machine with an existing VHD file

Use the following command

$VMName = "bj-cli-03"

New-vm-name $VMName-memorystartupbytes 512mb-path "D:\Hyper-V"-vhdpath "D:\Hyper-V\BJ-CLI-03\CN_ Winsrv2008r2sp1.vhd "

650) this.width=650; "height=" 263 "title=" clip_image026 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image026 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8apyh6sfvaadkao38wy4199.jpg "border=" 0 "/>

Third, set up Hyper-V virtual machine

(i) Setting up virtual machines using the graphical interface

1. Right-click to set the bj-cli-03 virtual machine you just created

2. Click Add Hardware to add related hardware devices

650) this.width=650; "height=" 268 "title=" clip_image027 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image027 "src=" http://s3.51cto.com/wyfs02/ M01/54/38/wkiol1r8apzgmvk9aaenjirnz2a811.jpg "border=" 0 "/>

3. Click BIOS to select how the virtual machine will start the virtual machine

650) this.width=650; "height=" 252 "title=" clip_image028 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image028 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8apzwfwv5aact1qephhy721.jpg "border=" 0 "/>

4. Click Memory to configure memory information, including maximum minimum memory, memory buffer, and memory weight

650) this.width=650; "height=" 497 "title=" clip_image029 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image029 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8apyiggcbaagydxet72u423.jpg "border=" 0 "/>

5. (1) Click on the CPU to determine the number of virtual CPUs and the use of resources

650) this.width=650; "height=" 297 "title=" clip_image030 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image030 "src=" http://s3.51cto.com/wyfs02/ M01/54/38/wkiol1r8apzgowtwaad9diz1-4c981.jpg "border=" 0 "/>

(2) Click Compatibility and choose to migrate to a physical computer with a different processor version

650) this.width=650; "height=" "title=" clip_image031 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image031 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8apytbdp0aact9jk6sle967.jpg "border=" 0 "/>

(3) Click Numa to configure NUMA topology information

650) this.width=650; "height=" 464 "title=" clip_image032 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image032 "src=" http://s3.51cto.com/wyfs02/ M02/54/39/wkiom1r8ahoccoyzaag-kkbd78s624.jpg "border=" 0 "/>

6. (1) Click on the hard drive, you can modify the virtual hard disk size

650) this.width=650; "height=" 409 "title=" clip_image033 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image033 "src=" http://s3.51cto.com/wyfs02/ M00/54/39/wkiom1r8ahpd2unwaahebbcuxvw665.jpg "border=" 0 "/>

(2) Click Advanced Features to use storage-based QoS

650) this.width=650; "height=" 408 "title=" clip_image034 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image034 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8ap3dwhllaagifso9icg230.jpg "border=" 0 "/>

7. (1) Click on the network adapter to view connected virtual switches, create VLANs, and bandwidth management

650) this.width=650; "height=" 504 "title=" clip_image035 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image035 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8ap3hwex_aagdmcyvtlc943.jpg "border=" 0 "/>

(2) Click Hardware Acceleration To configure virtual machine queues, IPSec task offload, and SR-Iov

650) this.width=650; "height=" 427 "title=" clip_image036 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image036 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8ap2j8gr9aahq3ncpzxs834.jpg "border=" 0 "/>

(3) Click Advanced Features to configure MAC address, DHCP protection, router protection, protected network, port mirroring, and NIC teaming

650) this.width=650; "height=" 574 "title=" clip_image037 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image037 "src=" http://s3.51cto.com/wyfs02/ M01/54/38/wkiol1r8ap2rfxgdaakfw1kaxo0740.jpg "border=" 0 "/>

(ii) Setting up virtual machines using PowerShell

Take the virtual machine "bj-cli-02" just created as an example

1. Set the number of virtual machine CPUs using the following command

Set-vmprocessor-vmname Bj-cli-02-computername Bj-vmhost-01-count 2

650) this.width=650; "height=" 199 "title=" clip_image039 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image039 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8ap7yxn8raacfdtltc-i100.jpg "border=" 0 "/>

2. Set the virtual machine memory using the following command

Set-vmmemory-vmname bj-cli-02-dynamicmemoryenabled $true

650) this.width=650; "height=" 205 "title=" clip_image041 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image041 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8ap7iue6naacea0ykjvm253.jpg "border=" 0 "/>

3. Verify the results of the settings

Right-click the virtual machine "bj-cli-02" and tap Settings

650) this.width=650; "height=" 269 "title=" clip_image043 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image043 "src=" http://s3.51cto.com/wyfs02/ M00/54/3a/wkiom1r8ahxxgs9eaacm-k-1ot4162.jpg "border=" 0 "/>

Click on memory to verify that "Enable dynamic memory" is checked

650) this.width=650; "height=" 386 "title=" clip_image045 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image045 "src=" http://s3.51cto.com/wyfs02/ M01/54/3a/wkiom1r8ahxxngyhaagfzddpkcm064.jpg "border=" 0 "/>

Click Processor to verify that the number of CPUs is 2

650) this.width=650; "height=" 278 "title=" clip_image047 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image047 "src=" http://s3.51cto.com/wyfs02/ M02/54/3a/wkiom1r8ahabog6xaaeojdimaqe369.jpg "border=" 0 "/>

Iv. installation of Hyper-V Integration Services

When we create a virtual machine, there is always a phenomenon that does not work well, such as the slow running of the virtual machine, the inability of the keyboard mouse to operate, and the simplest way to improve the performance of the virtual machine is to use the latest version of Microsoft Hyper-V Integration Services. Integration Services are a collection of features and drives that allow guest operating systems to use virtual hardware.

Right-click the virtual machine "bj-cli-03" and tap Connect to open the management console of the virtual machine "bj-cli-03"

650) this.width=650; "height=" 315 "title=" clip_image049 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image049 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8aqdwzeenaadcyazyuuw166.jpg "border=" 0 "/>

Click on the Admin console interface, click on "Insert Integration Services installation Disk"

650) this.width=650; "height=" 281 "title=" clip_image051 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image051 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8aqdr4curaad5ar04fay135.jpg "border=" 0 "/>

AutoPlay dialog page, click "Install Hyper-V Integration Services"

650) this.width=650; "height=" 308 "title=" clip_image052 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image052 "src=" http://s3.51cto.com/wyfs02/ M01/54/38/wkiol1r8aqdhygq8aad_3w_amok366.jpg "border=" 0 "/>

Upgrade the Hyper-V Integration Services page and click OK

650) this.width=650; "height=" 142 "title=" clip_image053 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image053 "src=" http://s3.51cto.com/wyfs02/ M02/54/38/wkiol1r8aqczfzesaab0iqjax8g208.jpg "border=" 0 "/>

650) this.width=650; "height=" 104 "title=" clip_image054 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image054 "src=" http://s3.51cto.com/wyfs02/ M00/54/38/wkiol1r8aqcwvnxuaabkslt9sg4668.jpg "border=" 0 "/>

Install complete page Click "Yes" to select restart the virtual machine

650) this.width=650; "height=" 138 "title=" clip_image055 "style=" margin:0px;border:0px;padding-top:0px; Padding-right:0px;padding-left:0px;background-image:none, "alt=" clip_image055 "src=" http://s3.51cto.com/wyfs02/ M01/54/38/wkiol1r8aqgqtpgsaacf3cgee6s191.jpg "border=" 0 "/>

Open Device Manager to view the appropriate device driver information

650) this.width=650; "height=" 410 "title=" clip_image057 "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none, "alt=" clip_image057 "src=" http://s3.51cto.com/wyfs02/M02/54/38/ Wkiol1r8aqgjmf7uaafvcfj35-q735.jpg "border=" 0 "/>

This article is from the "Xu Ting blog" blog, make sure to keep this source http://ericxuting.blog.51cto.com/8995534/1585228

Create and manage Hyper-V Server virtual machines

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.