30 March 2008

How to add the Hyper-V role to a Windows Server 2008 Server Core machine

Soon, I promise, I will be publishing part 3 which is the workgroup server-core version of “Hyper-V Remote Management: You do not have the requested permission to complete this task. Contact the administrator of the authorization policy for the computer ‘COMPUTERNAME’.”. However, to get there, we need to get Hyper-V up and running on server core first.

(For a refresh, here's the links to part one and part two.)

In the meantime, today's post backs up a bit, starting the story where the Windows Server 2008 installation of server core has just completed. Before reading further, it may help to take a look here for the server core “idiots guide” crib-sheet.

Step 1 - Logon

The first thing you notice after pressing Ctrl+Alt+Del is a prompt for “Other User”

wg40

Here, you should enter “administrator” with a blank password. (Note that administrator is localized as I found out a few weeks ago installing Spanish Windows Server 2008 where it is 'administrador'. Never knew that!)

wg41
Step 2 – Set the administrator password and get to the desktop

You then need to set an appropriate password which meets the password complexity policy.

wg42

After changing the password, this is what you see: A command prompt.  (I love the irony in that it sits “Preparing your desktop…” for quite some time – I’m sure it takes longer than on a full installation!)

wg43

Step 3 – Initial configuration

The first few things I like to do are:

a) Set an appropriate computer name (note I’m not joining this machine to a domain)

  • hostname (to get the current computer name)
  • netdom renamecomputer currentname /NewName:newname

b) Enable remote management

  • netsh advfirewall firewall set rule group="Remote Administration" new enable=yes

c) Enable remote desktop

  • cscript \windows\system32\scregedit.wsf /ar 0
  • cscript \windows\system32\scregedit.wsf /cs 0

d) Reboot for the computer name change to take effect

  • shutdown /t 0 /r


wg44

Step 4 – Apply the Hyper-V update

Now you need to enable to Hyper-V role. First, you should apply the latest update to Hyper-V to the machine (now at RTM as at 6/26). This is no different from applying the update to a full installation of Windows Server 2008. You just have to launch it from a command prompt. Note that I had already “net use”’d to a share on another computer that had the update available locally and copied it across to the server core machine. Confirm the installation and reboot as requested. (Obviously if you are reading this when builds after RC0 are available, replace the MSU KB number with the appropriate number.)

wg46

Step 5 – Enable the Hyper-V role

To enable the Hyper-V role, use “ocsetup Microsoft-Hyper-V” and reboot when prompted

wg47

So at this point, we have a machine running a server core installation option of Windows Server 2008 with the Hyper-V role up and running. Soon then will be post showing you how to manage this machine remotely using the Vista management tools for Hyper-V when in a workgroup environment.

Cheers,
John.

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Dale Unroe said:

Thank you for the detailed step through.  I'm a little gun shy working with the new Core OS and this has saved me a great deal of grief and second guessing.

30 March 08 at 10:54 PM
# Mark Wilson said:

John - thanks for this.  I thought I _was_ clued up on Server Core and Hyper-V and I'm finding it really useful!

Just one question - why do I need to enter:

netsh advfirewall firewall set rule group=”Remote Administration” new enable=yes

I thought installing roles in WS08 enabled the appropriate firewall rules for management?

Cheers, Mark

06 April 08 at 7:23 PM
# jhoward said:

Mark - it may well do, and I'm being a little over zealous on the commands - however, no harm in doing it again. To be honest, I need to go back and check to see what the remote management firewall state is after installation - you may well be right.

Cheers,

John.

06 April 08 at 8:14 PM
# Neil Huizenga said:

In point of fact, the Remote Administration firewall exception does _not_ get enabled when installing the Hyper-V role.

09 April 08 at 11:09 AM
# Jeff said:

Hi John,

This may be a dumb question but I'll ask it anyway.  I have a full installation of Windows Server 2008, Not Core and I am trying to add the Hyper-V role in server manager but it is not listed.  Under Rolse I have 0 of 16 installed but none of the ones listed are Hyper-V.  Under Features I did see a Hyper-V Tools which I was able to install but just not sure where to go at this point.  Any help is greatly appreciated.

14 April 08 at 7:15 PM
# jhoward said:

Jeff - sounds like you have the 32-bit version of Windows Server 2008 installed rather than 64-bit. You can verify by start/right click computer/properties. It should say 64-bit Operating system under System type. The entry you are seeing are the management tools for Hyper-V rather than the Hyper-V role.

Thanks,

John.

14 April 08 at 7:27 PM
# Jeff said:

Hi John,

Thank you for the quick response and you are correct I am running the 32 bit version.  Does that mean that Hyper-V role is not available in this version, only available in the 64 bit version?

Thanks,

Jeff

15 April 08 at 3:28 PM
# jhoward said:

Jeff.

Yes, that is correct. Hyper-V has specific hardware requirements and is only available on x64 architecture. More information is in the release notes for RC0.

http://www.microsoft.com/downloads/details.aspx?FamilyId=3ED582F0-F844-40BA-B692-230845AF1149&displaylang=en

Thanks,

John.

15 April 08 at 4:38 PM
# Ask the Core Team said:

With the RTM release of Hyper-V just around the corner, I thought it would be a good idea to re-visit

25 June 08 at 7:43 AM
# John Howard said:

So after even more feedback and questions, part 4 of this series provides the walkthrough steps necessary

25 June 08 at 5:48 PM
# John Howard - Hyper-V and virtualization blog said:

In the Hyper-V shiproom, we have signed off on Hyper-V RTM (Release To Manufacturing). The build and

26 June 08 at 12:00 PM
# Andrzej's "IT Thoughts" Weblog said:

Lately it's been very quiet on my blog. There are a couple of things to that. First and foremost there

02 July 08 at 8:30 AM
# Rod Trent at myITforum.com said:

Hyper-V HW & SW requirement: http://technet.microsoft.com/en-us/library/cc816844.aspx Hyper-V RTM

12 November 08 at 8:46 AM
# Jay Gundotra said:

We currently are using Hyper-V and would like to change computer name of the host machine. Will this cause any complications to the virtual machines on this system?

27 December 08 at 12:20 PM
# jhoward said:

Jay - no, this should not cause any problems.

Cheers,

John.

27 December 08 at 1:48 PM
# Jay Gundotra said:

John,

Thanks for the assistance and rapid reply. I have one more question, we also have a Microsoft Virtual Server 2005 setup, can we also change the host name without any adverse consequences?

Thanks!

28 December 08 at 10:53 AM
# jhoward said:

Jay - similarly there should be no problem.

Cheers,

John.

28 December 08 at 1:21 PM
# Anupam said:

I am trying to install Hyper-V on Windows 2008 Core box and it asks for the reboot of the machine to complete the setup.

After it came up,

I gave oclist command to verify if Hyper-V is installed but it wasn’t.

I checked event viewer and it showed that hyper-v is installed.

I checked services but none of hyper-v services were there.

I tried uninstalling and reinstalling hyper-v but no luck.

DEP and VT are enabled.

Have you seen this kind of behavior and how do I fix this issue?

Thanks,

Anupam

20 January 09 at 7:50 AM
# jhoward said:

Anupam

What SKU of Windows Server 2008 are you running, and is it definitely 64 bit, not 32-bit.

Can you confirm the ocsetup command you are running to add the Hyper-V role?

Thanks,

John.

20 January 09 at 1:23 PM
# jhoward said:

Anupam - should also add, if you are 64 bit and running "ocsetup Microsoft-Hyper-V", can you zip up \windows\logs\cbs\cbs.log and contact me through the email option at the top - I'll find a way to get it uploaded to Microsoft to examine.

Thanks,

John.

20 January 09 at 1:33 PM
# Mike said:

I'm considering Hyper-V and have not touche it yet.  All my virtualizaiton experience is with Citrix Xen 4/5 Express and Enterprise  

I'd be using Hyper-V for SBS Premium, loading both server OSes on 1 physical server, plus maybe adding a XP or linux guest.  What is the process for doing this?  Load Hyper-V to server, then install guests? simple like Xen?  Does Hyper-V allow for backp of guest while they're running?

Thanks!

Mike

23 January 09 at 1:43 AM
# jhoward said:

Mike - I think the best place for you to start is http://technet.microsoft.com/en-us/library/cc753637.aspx. As for backups, yes, if you have a VSS aware backup application running in the parent partition, it can backup virtual machines.

Thanks,

John.

26 January 09 at 12:40 PM
# Sid said:

Hi, Just got a Dell 1340 laptop, try to install Hyper -V server 2008 R2  on it, it install ok but after finishing the install it display the logon prompt , but at this stage the pc locksup, try few times reinstalling but same results, yes the CPU hardware visualization is enabled at the BIOS. Any thoughts on this  issue?

Regards,

Sid

19 June 09 at 6:20 AM
# jhoward said:

Hi Sid - can you verify that you have the latest available BIOS installed on this machine, and if not, please ensure it is up to date, then retry. Can you also confirm this is build 7100 (RC release). If you do have the latest BIOS and public build, can you confirm the exact specs of the machine and I'll see if I can find the same machine in house to try investigate.

Thanks,

John.

19 June 09 at 11:52 AM

Leave a Comment

Comment Policy: No HTML allowed. URIs and line breaks are converted automatically. Your e–mail address will not show up on any public page.

(required) 
(optional)
(required) 
Page view tracker