Remotely manage hyper-V on server core

Source: Internet
Author: User

Hyper-V hardware requirements:
Three requirements
-X64-based: Windows server virtualization is only available in Windows Server 2008 Standard Edition, Enterprise Edition, and data center edition of x64. This is related to the operating system.
-Hardware-assisted Virtualization: a specific CPU with virtualization options is required, that is, the CPU that contains the Intel vt (vandpool technology) or AMD virtualization alization (AMD-V, codenamed "Pacifica") functionality.
-Hardware Data Protection (DEP) is enabled (if the CPU supports Server 2008, it is enabled by default ).
Server core Installation
When installing Windows Server 2008 or 2008r2, select server core mode. The other steps are the same.

After the installation is complete, install hyper-v.
1. First, use bcdedit on server core to change the startup configuration and run the following command:

Bcdedit/set hypervisorlaunchtype auto

Note: If this setting has not been configured before, after running the preceding command, the server core needs to be restarted.

2. Then, use the following command to install hyper-V

Start/W ocsetup Microsoft-hyper-V

When the command ends, restart the server core to complete the installation. hyper-V needs to be restarted to complete the installation. Then run the oclist command to check whether the role hyper-V has been installed.

Hyper-V cannot create and manage virtual machines under the command line. Therefore, after installing hyper-V on the server core server, use another Windows 2008 server with hyper-V management interface or a machine with hyper-V Manager installed to create and manage virtual machines.
Microsoft Remote Server administration tools can be found
Http://www.microsoft.com/downloads/en/default.aspx search for the corresponding OS download. Currently, only Windows Vista SP1 or Windows 7 are supported)

You still cannot remotely connect to hyper-V on server core to create a VM. Some operations are required.
Perform the following operations on the server.
1. Use the following command to enable remote management on server core:

Netsh advfirewall firewall Set Rule group = "Windows Remote Management" New enable = Yes

2. Use the following command to enable remote desktop (convenient remote management)

Cscript \ windows \ system32 \ scregedit. WSF/AR 0
Cscript \ windows \ system32 \ scregedit. WSF/CS 0

3. Run the following command to restart the server core machine for these configurations to take effect.

Shutdown/R/T 0

4. Copy hvremote. WSF to the server
Download here (http://cid-dc4b33af243b1b5c.skydrive.live.com/self.aspx/.Public/hvremote.wsf)

5. Find the location of hyremote. WSF in the command line and enter the following command:

Net user username */Add // Add an account for remote management, or use the original Administrator
Cscript hvremote. WSF/Add: accountname Username

Perform the following operations on the client:
Copy hvremote. WSF to client

1. Find the location of hvremote. WSF in the command line, and enter the following command

Cscript hvremote. WSF/anondcom: grant // allow anonymous access to remote DCOM

2. log out

3. log on with an account with the same name as the service (create a new account on the client)

4. cscript hvremote. WSF/MMC: Enable // open the MMC firewall port

5. cscript hvremote. WSF/show/Target: othercomputername // test whether communication can be performed (you can also test it on the server)

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.