Compartir a través de


Como Instalar y Configurar Windows Server 2012 Hyper-V (Parte 1) (es-PR)

 

Introduccion

En la parte 1 de este articulo, aprenderas sobre las diferentes opciones de instalacion disponibles en Windows Server 2012. Existen nuevas mejoras en los metodos de instalacion "Core" y "Full" que estaban disponibles en Windows Server 2008 R2. Estas nuevas opciones te permiten remover la interfase grafica de una instalacion "full" (ahora conocida como "Server with a GUI" en Windows Server 2012), y tambien una opcion para reducir el tamano de de la instalacion de Windows Server 2012 en tu servidor.

Instalacion del "Server Core"

Al igual que en Windows Server 2008 R2, la opcion de instalacion de "Server Core" esta disponible en Windows Server 2012. Cuando llevas a cabo este tipo de instalacion, estas optando por instalar Windows Server 2012 sin su interfase grafica. En esta configuracion, las funcionalidades del "Microsoft Management Console y el "Desktop Experience" no estaran disponibles. Puedes manejar una instalacion de "Server Core" localmente utilizando la linea de comando o Windows PowerShell, y de manera remota utilizando una instalacion tipo "Server with a GUI" o desde una PC Windows 8 con los "Remote Server Administration Tools" (RSAT).

La opcion de instalacion "Server Core" es la opcion por defecto en Windows Server 2012. Ya que esta opcion de instalacion no utiliza la interfase grafica, es el metodo de instalacion recomendado para minimizar los requerimientos de actualizaciones de servidor, reducir el espacio en disco duro ocupado por el sistema operativo, y reducir la posibilidad de ataques al servidor. Puedes aun configurar roles de servidor en este tipo de instalacion. Sin embargo, ninguna de sus consolas de manejo graficas seran instaladas durante el proceso de configuracion. debido a esto, la opcion de intalacion "Server Core" requiere aproximadamente 4 GB menos de espacio en disco comparado con la opcion de instalacion "Server with a GUI".

Puedes utilizar los siguientes pasos para llevar a cabo la instalacion tipo "Server Core" de Windows Server 2012 por medio de la interfase grafica del "Windows Setup":

  1. Haz "boot" del servidor fisico o maquina virtual utilizando el programa de instalacion de Windows Server 2012 (ya sea en DVD, disco USB, archivo ISO, etc.).
  2. En la pantalla de "Windows Setup" que se muestra en la figura #1, selecciona el idioma, formato de hora y moneda, y las opciones de teclado y metodo de entrada de datos. Luego haces click en el boton "Next".

http://www.virtualizationadmin.com/img/upl/image0011358195282661.png
Figura #1: Pantalla de "Windows Setup" en Windows Server 2012

  1. Como se muestra en la figura #2, haz click en el boton de "Install Now".

http://www.virtualizationadmin.com/img/upl/image0021358195282661.png
Figura #2: Pantalla de Instalacion en Windows Server 2012

  1. El proceso de instalacion y configuracion de Windows Server 2012 comienza segun se muestra en la Figura #3.

http://www.virtualizationadmin.com/img/upl/image0031358195282677.jpg
Figura #3: Pantalla de configuracion de Windows Server 2012 luego de seleccionar el boton de "Install now".

  1. En la proxima pantalla de "Windows Setup" (Figura #4), introduce tu llave de activacion de Windows Server 2012 y luego has click en el boton de "Next".

http://www.virtualizationadmin.com/img/upl/image0041358195282692.jpg
Figura #4: Pantalla de "Windows Setup" para la entrada de llave de activacion.

  1. Como se muestra en la Figura #5, selecciona la opcion de "Server Core Installation" para tu edicion de Windows Server 2012 (en este caso Windows Server 2012 Standard). Luego haz click en el boton de "Next". 

http://www.virtualizationadmin.com/img/upl/image0051358195317052.jpg
Figura #5: Pantalla de "Windows Setup" para la seleccion de version de sistema operativo.

  1. Luego de leer los terminos de la licencia (Figura #6), haz click en el recuadro de "I accept the license terms" para que aparezca la marca de cotejo. Luego haz click sobre el boton de "Next". 

http://www.virtualizationadmin.com/img/upl/image0061358195317067.jpg
Figura #6: Pantalla de "License Terms" durante instalacion de Windows Server 2012

  1. Como se muestra en la Figura #7, haz click sobre la opcion de "Custom: Install Windows only (advanced)" para llevar a cabo una instalacion completa de Windows Server 2012. Alternativamente, puedes seleccionar la opcion "Upgrade: Install Windows and Keep Files, Settings, and Applications" para actualizar una version previa de Windows Server (asumiendo sea un escenario de actualizacion permitido).

http://www.virtualizationadmin.com/img/upl/image0071358195317067.jpg
Figura #7: Pantalla de seleccion de tipo de instalacion

  1. En la siguiente pantalla de "Windows Setup" (Figura #8), selecciona el disco y particion donde deseas instalar Windows Server 2012, y haz click sobre el boton de "Next".

http://www.virtualizationadmin.com/img/upl/image0081358195317067.jpg
Figura #8: Pantalla de seleccion de disco y particion de instalacion

  1. Como se muestra en la Figura #9, aqui comienza la instalacion de Windows Server 2012. Durante la instalacion, el servidor se reinicializara en varias ocasiones.

http://www.virtualizationadmin.com/img/upl/image0091358195360990.jpg
Figura #9: Instalacion de Windows Server 2012

  1. Una vez la instalacion de Windows Server 2012 Core haya completado, haz click sobre el boton de "OK" para cambiar la contrasena de Administrador (Figura #10).

http://www.virtualizationadmin.com/img/upl/image0101358195360990.jpg
Figura #10: Pantalla para cambiar la contrasena de Administrador de Windows 2012

  1. Luego de ingresar y verificar la nueva contrasena de Administrador, haz click sobre el boton de "OK" para reconocer el cambio de contrasena y continuar (Figura #11).

http://www.virtualizationadmin.com/img/upl/image0111358195361005.jpg
Figura #11: Pantalla de reconocimiento de contrasena de Windows Server 2012

  1. Ya que esta es una instalacion "Server Core", solo aparecera una pantalla de linea de comando al entrar al sistema (Figura #12). 

http://www.virtualizationadmin.com/img/upl/image0121358195361005.jpg
Figura #12: Pantalla de linea de comando en la instalacion "Server Core" de Windows Server 2012

Una vez Windows Server 2012 este instalado, puedes configurar la red, firewall, dominio, actualizaciones, y otras configuraciones estandar, asi como anadir roles y funcionalidades para proveer servicios. Con la instalacion "Server Core", puedes instalar roles localmente por medio de Windows Powershell.

Puedes utilizar los siguientes pasos para descubrir roles y funcionalidades de servidor, asi como instalarlos, por medio de Windows Powershell.

  1. Como se muestra en la Figura #13, escribe Powershell en la linea de commandos. 

http://www.virtualizationadmin.com/img/upl/image0131358195390646.jpg
Figura #13: Linea de commandos en Windows Server 2012 – Iniciando PowerShell

  1. Escribe Get-WindowsFeature en la linea de comando Powershell (Figura #14) para ver los roles de servidor que estan instalados o disponibles.

http://www.virtualizationadmin.com/img/upl/image0141358195390646.jpg
Figura #14: Windows Server 2012 – Cmdlet de Powershell Get-WindowsFeature

  1. Escribe Install-WindowsFeature seguido por el nombre de la funcionalidad que haya sido enumerada con el cmdlet Get-WindowsFeature (ej. Hyper-V en la Figura #15) para asi instalarlo.* *

http://www.virtualizationadmin.com/img/upl/image0151358195435162.jpg
Figura #15: Windows Server 2012 – Cmdlet de Powershell Install-WindowsFeature

  1. Como se muestra en la Figura #16, la instalacion comienza mostrando el progreso de la operacion.

http://www.virtualizationadmin.com/img/upl/image0161358195435162.jpg
Figura #16: Windows Server 2012 - Instalacion de rol con Windows Powershell

  1. Una vez la instalacion del rol haya completado, el estatus de la operacion aparecera como se muestra en la Figura #17.

http://www.virtualizationadmin.com/img/upl/image0171358195435177.jpg
Figura #17: Estatus dela Instalacion de un rol de Windows Server en Windows PowerShell

Es posible instalar multiples roles y funcionalidades simultaneamente separando los nombres de cada uno con comas. Si deseas remover un rol o funcionalidad, puedes hacerlo con el cmdlet de PowerShell Uninstall-WindowsFeature seguido por el nombre del rol o funcionalidad. Si remueves un rol o funcionalidad, los archivos de instalacion permaneceran en el disco de manera que puedan ser reinstalados facilmente sin la necesidad de los archivos originales de instalacion.

Instalacion de tipo "Server with a GUI"

El proceso de instalacion del "Server with a GUI" es identico al del "Server Core", con excepcion de que escogeras la opcion de "Server with a GUI" durante la instalacion (Figura #18).

http://www.virtualizationadmin.com/img/upl/image0181358195435177.jpg
Figura #18: Seleccion de Instalacion tipo "Server with a GUI" en Windows Server 2012

Una vez la instalacion tipo "Server with a GUI" haya completado, podras configurar tu servidor e instalar roles y funcionalidades usando la consola de "Server Manager" segun se muestra en la Figura #19, o utilizando Windows PowerShell si asi lo prefieres.

http://www.virtualizationadmin.com/img/upl/image0191358195480584.jpg
Figure 19: Instalando roles utilizando la consola de "Server Manager" en Windows Server 2012

Cambiando entre Instalaciones tipo "Server Core" y "Server with a GUI"

En Windows Server 2012, tienes la opcion de cambiar de tipo de instalacion "Server Core" a "Server with a GUI" y viceversa, segun sea necesario para cada servidor en particular.

Convirtiendo de Instalacion tipo "Server Core" a Instalacion tipo "Server with a GUI"

The procedure to convert a Server Core to a Server with a GUI installation is simple using Windows PowerShell. However, it is a requirement that you issue the PowerShell cmdlets using elevated (Administrator) privileges.

You can use the steps in the following procedure to convert a Server Core installation to a Server with a GUI installation using Windows PowerShell:

  1. From a command window running with Administrator privileges, type PowerShell to invoke the Windows PowerShell environment.
  2. As shown in Figure 20, type Get-WindowsImage -ImagePath <path to wim>\install.wim to determine the index number for the appropriate Server with a GUI image.

http://www.virtualizationadmin.com/img/upl/image0201358195480584.jpg
Figure 20: Windows Server 2012 – Get-WindowsImage PowerShell Cmdlet

  1. As shown in Figure 21, type Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart –Source wim:<path to wim>\install.wim:<Index#> at the PowerShell Command Line to install the Windows Server 2012 GUI components.

http://www.virtualizationadmin.com/img/upl/image0211358195480600.jpg
Figure 21: Windows Server 2012 – Install-WindowsFeature PowerShell Cmdlet

  1. If you prefer, you can use Windows Update as the source of the installation files by typing Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell.
  2. As shown in Figure 22, Windows Server 2012 restarts to complete the installation of the GUI components.

http://www.virtualizationadmin.com/img/upl/image0221358195480600.jpg
Figure 22: Windows Server 2012 Features Configuration

Convirtiendo de Instalacion tipo "Server with a GUI" a Instalacion tipo "Server Core"

Conversely, you can convert from a Server with a GUI installation to a Server Core installation (a restart is also required) using the Windows PowerShell cmdlet Uninstall-WindowsFeature Server-Gui-Mgmt-Infra –restart, as shown in Figure 23.

http://www.virtualizationadmin.com/img/upl/image0231358195522631.jpg
Figure 23: Windows Server 2012 Uninstall-WindowsFeature ``PowerShell Cmdlet

Opcion de Interfase Minima de Servidor

Another Windows Server 2012 configuration option, Minimal Server Interface, allows you to remove some of the graphical components installed with a Server with a GUI installation. The components that are removed include:

  • Internet Explorer 10
  • Windows Explorer
  • Desktop
  • Start Screen
  • Control Panel
  • Taskbar

The Microsoft Management Console, Server Manager, and some Control Panel applets remain on the server.

Converting to a Minimal Server Interface from a Server with a GUI Installation

Both the Server Manager and Windows PowerShell can be used to convert a Server with a GUI installation to a Minimal Server Interface configuration.

You can use the steps in the following procedure to convert a Server with a GUI installation to a Minimal Server Interface Configuration using Server Manager:

  1. On the Windows Server 2012 system, open Server Manager as shown in Figure 24.

http://www.virtualizationadmin.com/img/upl/image0241358195522631.jpg
Figure 24: Windows Server 2012 – Server Manager Console

  1. As shown in Figure 25, click Manage and select Remove Roles and Features.

http://www.virtualizationadmin.com/img/upl/image0251358195522631.jpg
Figure 25: Server Manager Console – Remove Roles and Features Selection

  1. In the Remove Roles and Features Wizard (Figure 26), on the Before You Begin page, select Next.

http://www.virtualizationadmin.com/img/upl/image0261358195522647.jpg
Figure 26: Remove Roles and Features Wizard - Before You Begin Page

  1. On the Select Destination Server page (Figure 27), select the server and click Next.

http://www.virtualizationadmin.com/img/upl/image0271358195557038.jpg
Figure 27: Remove Roles and Features Wizard – Select Destination Server Page

  1. On the Remove Server Roles page (Figure 28), click Next.

http://www.virtualizationadmin.com/img/upl/image0281358195557038.jpg
Figure 28: Remove Roles and Features Wizard – Remove Server Roles Page

  1. On the Remove Features page (Figure 29), scroll down to the User Interfaces and Infrastructure feature, click to expand it, unselect the Server Graphical Shell option, and then click Next.

http://www.virtualizationadmin.com/img/upl/image0291358195634538.jpg
Figure 29: Remove Roles and Features Wizard – Remove Features Page

  1. On the Confirmation Page (Figure 30), click Remove.

http://www.virtualizationadmin.com/img/upl/image0301358195634538.jpg
Figure 30: Remove Roles and Features Wizard – Confirm Removal Selections Page

  1. After the removal process completes (Figure 31), click Close and restart the server.

http://www.virtualizationadmin.com/img/upl/image0311358195668710.jpg
Figure 31: Remove Roles and Features Wizard – Removal Progress Page

  1. As shown in Figure 32, after the restart the Minimal Server Interface is enabled, and the Server Manager and a command window are displayed.

http://www.virtualizationadmin.com/img/upl/image0321358195668710.jpg
Figure 32: Windows Server 2012 – Minimal Server Interface Configuration

If you prefer, you can use the steps in the following procedure to convert a Server with a GUI installation to a Minimal Server Interface Configuration using Windows PowerShell:

  1. On the Windows Server 2012 system, type Uninstall-WindowsFeature Server-Gui-Shell in a Windows PowerShell window with elevated privileges (Figure 33).

http://www.virtualizationadmin.com/img/upl/image0331358195691773.jpg
Figure 33: Windows Server 2012 – Uninstall-WindowsFeature Cmdlet

  1. When the removal process completes, restart the server using the Restart-Computer PowerShell cmdlet.

With a Minimal Server Interface configuration, you can continue to use the Server Manager to manage the server or use Windows PowerShell.

It is also possible to achieve a Minimal Server Interface configuration by adding the Graphical Management Tools and Infrastructure feature to a Server Core installation.

You can use the steps in the following procedure to convert a Server Core installation to a Minimal Server Interface Configuration using Windows PowerShell:

  1. On the Windows Server 2012 system, type Install-WindowsFeature Server-Gui-Mgmt-Infra in a Windows PowerShell window with elevated privileges (Figure 34).

http://www.virtualizationadmin.com/img/upl/image0341358195691773.jpg
Figure 34: Windows Server 2012 – Install-WindowsFeature Cmdlet

  1. When the installation process completes, restart the server using the Restart-Computer PowerShell cmdlet.

In this configuration, you can benefit from a Windows Server 2012 installation with a minimized attack surface, and smaller operating system footprint on disk while still being able to perform management tasks using the GUI management tools like Server Manager.

Features on Demand Option

On a Server Core installation, the installation files for graphical features are not copied to the local disk in order to minimize the operating system footprint. In Windows Server 2012, it is also possible to remove the binary files for other roles and features. If you want to install a role or feature whose files were removed from the Windows Server 2012 installation, you have to specify access to an installation source (e.g., WIM image) and the index number of the image to ensure that the component files are installed from the same version of Windows. Another option is to use Windows Update as the installation file source.

For example, to uninstall the Graphical Server Shell files from a Windows Server 2012 installation, you can use the following Windows PowerShell cmdlet:

Uninstall-WindowsFeature Server-Gui-Shell –Remove

In order to install the Graphical Server Shell files using the Windows Update site as the installation source, you can use the following Windows PowerShell cmdlet:

Install-WindowsFeature Server-Gui-Shell

If you want to use a local installation source, you have to use the –Source option followed by the path to the installation folders and the index of the Windows Server 2012 image.