IT tutorials
 
Technology
 

Windows Server 2012 : Deploying and configuring Hyper-V hosts (part 4) - Installing the Hyper-V role

3/3/2014 8:29:12 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

2. Installing the Hyper-V role

Once you have planned the deployment of your Hyper-V hosts, you are ready to install the Hyper-V role on the servers you plan to use for this purpose. As with other server roles in Windows Server 2012, the Hyper-V role can be installed on a server by using either of the following:

  • Server Manager

  • Windows PowerShell

Using Server Manager

You can use Server Manager to install the Hyper-V role on a server as follows:

  1. On either the All Servers page or a custom server group page in Server Manager, right-click the remote server you want to install the Hyper-V role on and select Add Roles And Features to launch the Add Roles And Features Wizard.

  2. On the Installation Type Wizard page, select Role-Based Or Feature-Based Installation.

  3. On the Server Roles page, select the Hyper-V role. At this point, you will be prompted to install the GUI and Windows PowerShell management tools for the Hyper-V role. If the server you are installing the Hyper-V role on is a Server Core installation, clear the Include Management Tools check box.

  4. Proceed through the remaining wizard pages to install the role, and restart the remote server when prompted.

Note

Installing management tools on Server Core

If you are using Server Manager to install the Hyper-V role on a remote server, you might want to select the Hyper-V Module For Windows PowerShell on the Features page of the Add Roles And Features Wizard to install this module locally on the server. That way, if at some future time you are unable to manage the Hyper-V role on the remote server using either the Hyper-V Manager snap-in or Windows PowerShell, you might still be able to establish a Remote Desktop session with the remote server so that you can run Windows PowerShell commands locally on the server.

Alternatively, you might decide to install the Hyper-V role on a Windows Server 2012 instance that has been configured with the Minimal Server Interface installation option, which will allow you to install both the Hyper-V Management snap-in and Hyper-V Module For Windows PowerShell while retaining some of the security and servicing advantages of the Server Core installation option. When the Hyper-V role is installed on a server that has the Minimal Server Interface installation, you can launch the Hyper-V Management snap-in locally on the server by typing virtmgmt.msc at the command prompt. Note that Minimal Server Interface is not available on the standalone Windows Server 2012 Hyper-V product, which has only the Server Core installation option.

Using Windows PowerShell

You can also use Windows PowerShell to install the Hyper-V role on a server. The command you use depends on the installation option used when the remote server was deployed. For example, if the remote server is a Server With A GUI installation, you can install the Hyper-V role together with the management tools for the role by using the following command:

Install-WindowsFeature -Name Hyper-V -ComputerName <name> -IncludeManagementTools -
Restart

Here <name> is the NetBIOS name, an IP address, or fully qualified domain name (FQDN) of the remote server. For example, to see what will happen if this command is run against a server named HOST4, you can include the –WhatIf parameter as follows:

PS C:\> Install-WindowsFeature -Name Hyper-V -ComputerName HOST4 -IncludeManagementTools
-Restart -WhatIf
What if: Continue with installation?
What if: Performing installation for "[Hyper-V] Hyper-V".
What if: Performing installation for "[Remote Server Administration Tools] Hyper-V
Module for Windows PowerShell".
What if: Performing installation for "[Remote Server Administration Tools] Hyper-V
Management Tools".
What if: Performing installation for "[Remote Server Administration Tools] Role
Administration Tools".
What if: Performing installation for "[Remote Server Administration Tools] Remote Server
Administration Tools".
What if: Performing installation for "[Remote Server Administration Tools] Hyper-V GUI
Management Tools".
What if: The target server may need to be restarted after the installation completes.

Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True Maybe Success {Hyper-V, Hyper-V Module for Windows Power...

Run the command again without the –WhatIf parameter to install the Hyper-V role on the remote server. After the remote server has restarted, you can use the Get-WindowsFeature cmdlet to verify installation of the Hyper-V role and associated management features:

PS C:\> Get-WindowsFeature -Name *Hyper-V* -ComputerName HOST4 | `
ft DisplayName,InstallState

DisplayName InstallState
----------- ------------
Hyper-V Installed
Hyper-V Management Tools Installed
Hyper-V GUI Management Tools Installed
Hyper-V Module for Windows PowerShell Installed

Note

Advantages of the GUI approach

Although using the Install-WindowsFeature cmdlet of Windows PowerShell is the preferred method for installing most roles and features on remote servers running Windows Server 2012, there might be some advantage to using the Add Roles And Features Wizard when you want to install the Hyper-V role on a server. This is because the wizard presents you with four Hyper-V configuration options that you would have to configure separately using different cmdlets after role installation if you are using Windows PowerShell to install the role. These four configuration options are

  • Configuring the default location for virtual disk files

  • Configuring the default location for virtual machine configuration files

  • Creating a new virtual switch

  • Enabling live migration

If you configure these settings during the installation of the role using the wizard, you won’t need to configure them later as part of the post-installation configuration of the host.

 
Others
 
- Windows Server 2012 : Deploying and configuring Hyper-V hosts (part 3) - Planning Hyper-V deployment - Security, Disaster recovery
- Windows Server 2012 : Deploying and configuring Hyper-V hosts (part 2) - Planning Hyper-V deployment - Storage, Management
- Windows Server 2012 : Deploying and configuring Hyper-V hosts (part 1) - Planning Hyper-V deployment - Hardware, Editions, Networking
- Windows Phone 8 : Audio Streaming Agents (part 2) - Using a MediaStreamSource to Play Back an Assembly Resource
- Windows Phone 8 : Audio Streaming Agents (part 1)
- Windows Phone 8 : AudioPlayerAgent Sample (part 4) - Controlling Background Audio from Your Foreground App - Monitoring Playback Progress
- Windows Phone 8 : AudioPlayerAgent Sample (part 3) - Controlling Background Audio from Your Foreground App - MainPageViewModel
- Windows Phone 8 : AudioPlayerAgent Sample (part 2) - AudioPlayerAgent Virtual Methods
- Windows Phone 8 : AudioPlayerAgent Sample (part 1)
- Windows Phone 8 : Coordinating Background Audio Playback (part 2) - Representing Audio Files with the AudioTrack Class, Creating a Custom Audio Player Agent
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us