Dynamics AX 2012 on Windows Server 8 Beta with SQL 2012 RC0

Microsoft recently released Windows Server 8 Beta and Windows 8 Consumer Preview. So my first though was about running Dynamics AX 2012 on Server 8 and Windows 8. However, installing AX 2012 on Server 8 failed due incompatibility with windows installer. But Windows Server 8 and Windows 8 Betas still come with an upgrade option. So I had the idea install AX 2012 on Server 2008 R2 and upgrade to Windows Server 8 Beta.

Prolog (the IBM x3400 thing)

We’ve bought an IBM x3400 M3 server for a customer. We’re still waiting for some hard disks to deliver, so the server is unused and becomes my testing platform for the moment. Installing Windows 8 Beta was straight forward, but as mentioned installing AX 2012 failed. So next I failed installing Windows Server 2008 R2 because no hard disk was found (missing driver). The solution:

servers   usb driver

IBM x3400 M3 and Raid driver on USB for Windows Server 2008 R2 installation

Windows Server 2008 R2, SQL Server 2012 RC0

Next I’ve joined the new 2008 R2 server to our domain. Loving Betas, Previews and other unstable stuff I’ve installed SQL Server 2012 RC0 to serve as database server for AX.

  • Installed .NET Framework 3.5.1 Feature using Server Manager
  • Installed .NET Framework 4.0 Full package
  • Installed NDP40-KB2390372-v2-x64 patch for .NET 4.0
  • Installed C++ Runtime Environments from AX 2012 DVD
  • Installed SQL Server Native Client
  • Installed Report Viewer 2012 from AX 2012 DVD
  • Installed Identity Foundation from AX 2012 DVD
  • Installed Open XML SDK for Office from AX 2012 DVD
  • Installed SQL Server 2012 RC0 full featured

    sql sql2

    SQL Server 2012 RC0 Full Featured

    Pizza Break

    Ham, Eggs, Bacon, Onion and Corn, Coke and Tiramisu

    Pizza and Tiramisu

    Admin’s workplace Smiley

    Dynamics AX 2012

    AX on SQL 2012 RC0 is a little bit tricky, because even database creation failed. So I’ve set up an AOS using another SQL Server 2008 R2 with an existing AX 2012 database and baseline. Next I restored an AX 2012 database from a backup in SQL 2012 RC0 and configured the AOS to use it. Works as it should. However, the reporting extensions are not compatible with RC0 and installation failed.Dynamics AX 2012 with SQL Server 2012 RC0

    AX 2012 using SQL 2012 RC0

    Upgrade to Windows Server 8 Beta

  • Installed Windows Server Backup Feature from Server Manager and create a backup
  • Downloaded Server 8 ISO
  • Extracted it and copied it onto an USB stick using xcopy *.* /s/e/f u:\\
  • Started Upgrade from DVD or USB
  • The Upgrade took quite a lot of time until windows was ready

    Windows Server 8 Beta Upgrade

Windows Server 8 Beta Data Center Edition with GUI

Windows Server 8 Beta Upgrade

Upgrade an existing Installation

Windows Server 8 Beta Upgrade

Windows Server 8 Beta is starting up, …

Windows Server 8 Beta Start Screen

Finally! Windows Server was upgraded from 2008 R2 to 8 Beta

Repairing Dynamics AX

Well, Windows as upgraded successfully but Dynamics AX is not working any more Trauriges Smiley Starting the AOS results in an error. Reviewing the windows event error logs brings up the details:

image

Object Server 01:  Error accessing registry: Cannot open key SYSTEM\CurrentControlSet\Services\Dynamics Server\6.01. Error code: 0

Object Server 01:  The directory "C:\Windows\system32\\bin" does not exist or access to it has been denied by the operating system.

Object Server 01:  The home directory for Axapta (C:\Windows\system32\) does not match the required structure or can not be accessed. Please check installation, configuration and access rights.

Object Server 01:  Server terminated unexpectedly with 10 exitcode.

The reason is an missing registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DynamicsServer\601

image

I solved this issue by importing an AX configuration from another server’s registry

  • Opened an RDP session to an other 2008 R2 server running an AX 2012 AOS
  • Start > Run > regedit
  • Navigated to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DynamicsServer\60
  • Exported the registry key as file (Context Menu > Export)
  • Copied the .reg file the Server 8 Beta desktop and imported it
    There are a lot of settings and paths in the registry, make sure these settings apply to your w8 server
  • Started the Server Configuration Utility and changed the database setting back to localhost
  • Started the AOS
  • Started the Client

Dynamics AX 2012 on Server 8 Beta

Dynamics AX 2012 running on Windows Server 8 Beta

Advertisements

Über erpcoder
Software Engineer and Dynamics AX enthusiast working in Research & Development for InsideAx

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s

%d Bloggern gefällt das: