Saturday 22 March 2008

Windows 2008 Hyper-V

As I'm currently working for Diversus, a Microsoft partner, I was invited to attend the Heroes Happen {2008} event last Wednesday night. The invite promised a free copy of Windows 2008 (as well as Vista Ultimate with SP1--which ended up coming with a stinkin' 365-day license and a silly trial of Team Suite which I won't even waste my finger tips on--get real, Microsoft, and give us real stuff!) and knowing there would most likely be food and alcohol, I went along.

Despite Heroes supposedly being the simultaneous launch of Windows Server 2008, Visual Studio 2008 (which RTM'd late last year), and SQL Server 2008 (which isn't due to launch until Q3), the emphasis was squarely on Windows Server 2008 and Hyper-V. I've been using Microsoft's Virtual PC and Virtual Server tools for a few years now and after taking a close look at ESX Server lately, I was interested to see how Hyper-V would compete. I'm not a system admin or anything close but I reckon MS is headed in the right direction.

I wasn't sure the Heroes-supplied W2k8 disk would include Hyper-V; apparently Server will be sold with and without at a price difference of about $50. Why MS would do that is beyond me but I was pleased to see the Hyper-V check box listed in the Add Roles Wizard (Hyper-V is still in beta but the beta has been included with the Windows Server 2008 RTM build). The final Hyper-V release is supposed to be available on Windows Update around the same time SQL Server 2008 launches.

As a natural geek, I've got a handful of old PIII and PIV boxes lying around the place serving various roles within my home network. There's one box for AD/DNS/DHCP, another working as a dedicated file server, and others configured as web and database servers. By contrast, SharePoint being SharePoint, everything I do in relation to said software has been within a virtualised environment and it's been that way for a while now; I can provision new VPCs and backup existing VPCs as required. Having had success with Virtual PC and Virtual Server, I figure it's time to virtualise as many boxes as possible. I'm a Green at heart and running running multiple boxes in my small home office makes a hot Aussie day even hotter ;-)

The Heroes media included 32 and 64-bit editions of Server 2008 so I figured I'd go 64-bit just for fun. Apart from a few extra folders and Control Panel items referring to 32-bit, I haven't noticed a differece. The host box is only used as a server so I don't have weird hardware running and everything was detected automatically by the installer. Speaking of the installer, it's wonderful! Select your location and go. Not long after, the OS fires up and you do all the stuff you used to be promted for within the installer. I installed Hyper-V post-installation and everything went, um, fine... see below.

Apparently Hyper-V is supposed to be a "bare metal" (Type 1) hypervisor coming in at 650KB in size; I'm not entirely clear whether Hyper-V can be installed on a Windows Server Core base but at this point I'm still looking at Window and it's sitting right there between the metal and the virtualisation components. Apart from that, it seems like a pared-back version of Virtual Server: the admin screens are very simple and it just works.

I did have one issue after firing up the Hyper-V console for the first time: the Virtual Machine Management service wouldn't start and I had no idea why. Apart from a less-than-helpful UI error on attempting to start the service, the following event entry was logged:

The Virtual Machine Management service terminated with the following error:
The parameter is incorrect.


Luckily Ben Armstrong and Joe Hemmerlein from Microsoft were kind enough to weigh in on the discussion of this issue and pointed me in the right direction. As a I reside in Australia, I naturally selected English (Australia) as my location when I installed Windows but apparently that's not good enough for Hyper-V and it only likes the US. The link above goes through the configuration of your regional settings and language options to get the VMM service running without a Windows reinstall. I changed all my settings back to Oz after things started working but that's no good either: starting up the box today the VMM service failed again. This time I managed to get the service started without having to remove the role: I simply went through the necessary regional/language option config steps, applied to all accounts, and rebooted. I've since changed my account and the default account back to Aussie, leaving the System Accounts as they are. Long story short: this is really annonying and I hope Microsoft fixes this before launch.

After that rigamarole, I installed Windows Server 2008 in a VM, giving it 1GB of RAM (I've successfully installed 2003 on 128MB but Vista has made me wary). Performance at the UI hasn't been too zippy but this is a VM after all.

In the virtual world, I installed the AD role and it was a painless affair. I also turned off IPv6 because I don't know enough about it and those 128-bit hex addresses aren't going to give me much on a home network. DHCP was next and it too was uneventful. As mentioned previously, I'm not a system admin or a network engineer or a network anything--I was suprised when I managed to install AD on Windows 2003 so easily a few years ago and I've noticed the process is that much easier in 2008.

And so the network build continues. I'll soon be whacking MOSS onto a 2008 box for the fun of it and I'll let you know how that goes!

2 comments:

  1. Hello Michael!

    Thank you for the helpful tips!
    I am facing the similar problems here. Only that I do that on the notorious PDC build of Server 7. Liked what they have presented there especially booting into VHD.
    The server was installed using US locale. However, it seems like I installed my Russian locale on the time of installing the Hyper-V role.
    I tried to remove Hyper-V role, remove russian locale and leave only English US. I installed the Hyper-V role again but all that to no avail.
    I get this from SCM (Service Control Manager)

    Log Name: System
    Source: Service Control Manager
    Date: 12/1/2008 4:07:16 PM
    Event ID: 7023
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: Server7
    Description:
    The Hyper-V Virtual Machine Management service terminated with the following error:
    %%-2147467259

    in my System log.

    And I also get these two events going one after another in Hyper-V role log

    Log Name: Microsoft-Windows-Hyper-V-VMMS-Admin
    Source: Microsoft-Windows-Hyper-V-VMMS
    Date: 12/1/2008 4:20:30 PM
    Event ID: 14098
    Task Category: None
    Level: Error
    Keywords:
    User: SYSTEM
    Computer: Server7
    Description:
    One or more driver required by the Virtual Machine Management service is not installed or is disabled. Try reinstalling the Hyper-V role.

    Log Name: Microsoft-Windows-Hyper-V-VMMS-Admin
    Source: Microsoft-Windows-Hyper-V-VMMS
    Date: 12/1/2008 4:20:30 PM
    Event ID: 14096
    Task Category: None
    Level: Error
    Keywords:
    User: SYSTEM
    Computer: Server7
    Description:
    Virtual Machine Management service failed to start.

    When I connect to my server locally using the Hyper-V Manager, I get the
    You might not have permission to perform this task message.
    After that the Hyper-V Virtual Machine Management service just stops.

    Any clue? I am running out of ideas...
    From Leningrad, Russia, with my appreciation,
    Stanislav.

    ReplyDelete
  2. Hi Stanislav,

    Sorry, I don't have any helpful suggestions. With Server 2008 I just ended up reinstalling and specified the US locale at install time.

    ReplyDelete

Spam comments will be deleted

Note: only a member of this blog may post a comment.