The Server Core installation option of the Windows Server 2008 operating system installs a minimal server installation of Windows Server 2008 to run supported server roles, including the Hyper-V role. When you select the Server Core installation type option, the Windows setup program installs only the files that are required for the supported server roles. For example, the Explorer shell is not installed as part of a Server Core installation. Instead, you must configure the server locally using the command line. You can read more information about Server Core on my “Understanding Windows Server 2008 Server Core” and “Managing Windows 2008 Server Core Local Settings” articles.
The benefits of using the Hyper-V on a Server Core installation include a reduced attack surface, reduced management, and reduced maintenance.
After you have enabled the Hyper-V role on Server Core, you can manage the Hyper-V role and virtual machines remotely using the Hyper-V management tools. The management tools are available for Windows Server 2008 and Windows Vista Service Pack 1 (SP1).
Hyper-V is a virtualization platform from Microsoft, originally available as Beta 3 on the RTM installation DVD of Windows Server 2008, but the RTM update for Hyper-V is now available for download or from Windows Update (after July 8, 2008). In order to get the Hyper-V role on Windows Server 2008 you need to install this update. The update package consists of the Hyper-V role, including the x64 version of the remote management tools, and integration services for the supported versions of the Windows operating system. With this update, you can now use Hyper-V in a production environment for supported configurations.
Note: The Hyper-V role update package is a permanent package. Once you install the update package, you cannot remove it.
Note: Looking at the above link, it might appear like there’s a 32-bit version of Hyper-V. That is NOT correct. The 32-bit download is just for the Hyper-V management tool and connection tool.
The download itself, around 30 MB, can be found here.
Note: You can manage Hyper-V servers from other Windows Server 2008 machines, or from Windows Vista machines. See the following link for the download paths.
The update that allows the Hyper-V role is for Windows Server 2008 x64 editions, and after installing it you will be able to enable the virtualization role through Server Manager. After the Hyper-V role is enabled, Hyper-V Manager will become available as a part of Administrative Tools. From the Hyper-V Manager you can easily create and configure virtual machines.
You must enter the BIOS setup of the server and make sure that “Virtualization Technology” and “Execute Disable” are both set to Enabled. In most cases, the required BIOS settings can be found in these BIOS sections (actual names may differ, based upon your server’s BIOS settings):
In case you were not the person that has initially installed the server, you’d better make sure it supports Hyper-V and that is has the appropriate license to operate it, before starting to install the role. To find out what kind of Windows Server product is currently installed, you to run the following command:
wmic OS get OperatingSystemSKU
The number that is returned corresponds with Microsoft’s list of SKU numbers for Windows Server. Please ensure that your version supports Hyper-V:
If any other number is returned, this means that you should not install Hyper-V on this server.
You should also check the architecture of the server installation as well:
wmic OS get OSArchitecture
The architecture should be 64-bit in order to be able to install Hyper-V.
Below is the step-by-step on installing Hyper-V on Windows Server 2008 Server Core:
Note: For regular Windows Server 2008 Hyper-V installations please read my Installing Hyper-V on Windows Server 2008 article.
Note: All the following configuration tasks need to be done from the Command Prompt. Please read my Managing Windows 2008 Server Core Local Settings article.
Download the Hyper-V updates, copy them either to the Server Core local hard disk or to a network share and then type the following command at a command prompt:
wusa.exe Windows6.0-KB950050-x64.msu /quiet
Lamer note: Please provide the correct path for the file…
To view the list of software updates and check if any are missing, at the command prompt, type:
wmic qfe list
After you install the updates, you must restart the server.
Important note: Before you enable the Hyper-V role, ensure that you have enabled the required hardware-assisted virtualization and hardware-enforced Data Execution Prevention (DEP) BIOS settings. Checks for these settings are performed before you enable the Hyper-V role on a full installation, but not on a Server Core installation. If you enable the Hyper-V role without modifying the BIOS settings, the Windows hypervisor may not work as expected.
start /w ocsetup Microsoft-Hyper-V
Note: The syntax for Ocsetup.exe is case sensitive.
net user <username> * /add
To add a user to the local Administrators group, at a command prompt, type:
net localgroup administrators /add <user>
shutdown /r /t 0