How To install Hyper-V RTM on Server Core
Whenever I hear Server Core and Hyper-V used in one sentence I get a big smile on my face. Here's how to install a freshly created Server Core installation with Hyper-V RTM in six easy to follow steps on your Server Core console:
Choose a good box to use. The processor should be a recent x86-64 one, like an AMD64 Athlon64, an AMD64 Opteron, or an Intel Core Duo processor. The motherboard and BIOS should be equipped with Hardware-assisted Virtualization and Hardware-enforced DEP.
Consult with your hardware vendor for suitable boxes before purchasing a suitable box.
If you have a box you think is suitable download and run SecurAble, a tool by Gibson Research Corporation. It will not only show whether your hardware meets the requirements, but also whether Hardware Assisted Virtualization and Hardware-enforced DEP are enabled in BIOS.
Install a 64bit version of Windows Server 2008 on your machine. When prompted to install a specific version choose to install it Server Core instead of a full installation. On first boot log in as Administrator with a blank password. Change the password afterwards to a password that complies with the password complexity requirements. Configure your Server Core installation with your preferred settings. Configure the time, time zone and time synchronization (using control.exe timedate.cpl), set the hostname (using netdom.exe), settle licensing (using slmgr.vbs), configure IP settings (using netsh.exe) and make sure you're making backups of your installation (using wbadmin.exe). If you want you can enable Windows Update en Remote Desktop (using wsregedit.wsf)
For more information on configuring your Server Core box take a look at the Server Core Installation Option of Windows Server 2008 Step-By-Step Guide.
Install the update package for Microsoft Hyper-V RTM, which is mentioned in Microsoft Knowledgebase article 950050. You can do this in two ways, depending on your hurry:
- Download the standalone update(s) and install manually
- Download the update(s) through Automatic Updates
For localized installations of Hyper-V please take a look at Microsoft Knowledgebase article 951636. Download and apply the package when appropriate.
Download and install the update(s) manually
On another computer than your Server Core box you can download the 64bit version of the update for Windows Server 2008 x64. You can get the *.msu file onto your Server Core installation using a USB stick, a network share, a FTP server on your network or burn it on CD or DVD media. You can run the update with the following command:
In the Windows Update Standalone Installer screen click OK to install the update.
In the screen Installation complete press the Restart Now button. After the restart log in as Administrator again.
Download through Automatic Updates
You can alternatively use Windows Update or Windows Server Update Services to automatically get the update installed on your Server Core box. On a freshly configured Server Core box run the following commands to enable Automatic Updates:
cscript SCregEdit.wsf /AU 4
net stop wuauserv
net start wuauserv
Afterwards you can make your Server Core box check for updates using the following command:
Your Server Core box will detect and download updates and will schedule to install them at the pre-configured time. On a default installation this is 3:00 AM. Remember: You can use Group Policies and Windows Server Update Services to change this behavior.
To check whether your Server Core box correctly detected the updates it needs take a look at the C:\Windows\WindowsUpdate.log file using Notepad.exe. Most recent activity is added at the end of the log file.
Check the correct installation of the update. You don't want to end up with having to redo your virtual machines, so it's important to check the update was installed successfully. To check the correct installation of update packages run the following command:
wmic qfe list /format:list
One of the updates in the list should be the update with HotFixID KB950050. For localized installations also check for the update with HotFixID KB951636.
Install the Hyper-V role on your Server Core box, using the following command:
start /w ocsetup.exe Microsoft-Hyper-V
The ocsetup.exe command is case-sensitive. Type the role exactly as
The Windows package manager will report the system must be restarted to enable the changes. Press Yes to let the package manager restart the system.
Check the correct installation of the Hyper-V Server Role using oclist.exe. After your Server Core box restarted log in as Administrator. I use the following command to report only the installed roles and features: (which prevents scrolling)
oclist.exe | find "Installed" | find /v "Not Installed"
Congratulations! After performing the previous six steps you ended up with a Server Core Hyper-V server. Using the command line on your Server Core box, the Hyper-V Manager from a Windows Vista (SP1) or Full installation of Windows Server 2008 or through Powershell you can now begin managing Hyper-V.
Install Hyper-V in Server Core
10 commonly asked questions or issues seen during Hyper-V beta
How to add the Hyper-V role to a Windows Server 2008 Server Core machine
Installing Hyper-V on Windows Server 2008, Server Core
Microsoft TechNet Forums - Unable to install hyper-v roll on 2008 core
Microsoft TechNet Forums - Server Core Hyper-V install
Server Core Installation Option of Windows Server 2008 Step-By-Step Guide
Description of the Windows Update Stand-alone Installer (Wusa.exe)
Description of the update for the release version of the Hyper-V