customer
Windows 2008 and MSSQL 2008 in a MyGSI
From GoGrid
Contents |
Overview
This document is still incomplete and pending.
This document will guide you first through creating a MyGSI from a Windows 2008 Server base image and installing MSSQL 2008. By default, if you save a MyGSI with MSSQL installed without any sort of modification to the service, there's a high potential of a BSOD (acronym for Blue Screen of Death) with error code message 0x0000007B meaning there's a unrecoverable driver failure. This is often caused by MSSQL starting and attempting to mount the block device on a virtual system without the device driver for that block device present, causing an unrecoverable fatal error. This guide will assist you in saving a MyGSI to prevent this issue and still have MSSQL available when deployed from a saved image.
Getting Started
Requirements
First you'll need to deploy your Image Sandbox
| Name | Type | RAM | Operating System | Image | Public IP |
|---|---|---|---|---|---|
| mygsi01 | Web Server | 2GB | Windows 2008 Server (32-bit) w/ None | w2k8_32_base | 208.1.1.3 |
| mygsi02 | Web Server | 2GB | Windows 2008 Server (64-bit) w/ None | w2k8_64_base | 208.1.1.4 |
Outline
MyGSI BASE Build Phase(Optional)
It is recommended, but not required, to rebuild the base image provided with the most current updates available. At the time this document was written, the MyGSI base images provided by GoGrid were Windows Server 2008 Enterprise SP1. This optional step is outlined for building a base Windows image and applying all Windows Updates, then using this saved MyGSI as a foundation for future MyGSI images. MyGSI images can be deployed as sandboxes and modified, then re-saved, making it handy to run updates.
- Deploy your MyGSI base server image (5-15m)
- Run Windows update to apply all necessary patches (rebooting as necessary) (60-240m)
- After all patches/updates apply, reboot one more time for a clean session (2-5m)
- Run PREP (2-5m)
- Return to my.gogrid.com portal and save the MyGSI (10-30m)
Making your MyGSI BASE build
- Deploy your sandbox from an image that has no addons or integrated roles (should have "w/NONE" in the image title)
- Log into the system
- Update to SP2 by downloading from your server the following file (Select the correct update depending on the deployed bit version you choose):
- Run the update from a CMD window with the option /unattend
- After the system has been rebooted, you should receive a message that says "Windows Server® Service Pack 2 is now installed"
- You should run all necessary Windows Updates as needed by the system
- After all updates have been applied, reboot your system one last time to ensure you have a clean session
- To have as much free space as possible, remove old updates including the SP2 update file. This can be done by removing the contents of the directory C:\Windows\SoftwareDistribution\Download\. The files and folders in this directory are safe to delete. Where the SP2 Windows update was saved depends on where you saved the file.
- Run PREP
- Once the system is offline, return to the GoGrid portal, select the MyGSI image and SAVE it
- Name your MyGSI, add a description as necessary and save
- Wait between 10 and 30 minutes for the save process to complete
MyGSI with MSSQL Build Phase
- Deploy a new sandbox image of Windows 2008 (5-15m)
- Run Windows update to apply all necessary patches (rebooting as necessary) (5-240m)
- After all patches/updates apply, reboot one more time for a clean session (2-5m)
- Install MSSQL matching the same bit version of Windows you have (i.e. if you have Windows 2008 x64 then install the x64 version of MSSQL) (10-45m)
- Reboot (2-5m)
- Apply patches to MSSQL if necessary (10-45m)
- Reboot (2-5m)
- Disable MSSQL (2-5m)
- Reboot (2-5m)
- Run PREP (2-5m)
- Return to my.gogrid.com portal and save the MyGSI (10-30m)
Making your MyGSI with MSSQL
- Deploy your sandbox image
- Log into the system
- You should run all necessary Windows Updates as needed by the system
- After all updates have been applied, reboot your system one last time to ensure you have a clean session
- To have as much free space as possible, remove old updates including the SP2 update file. This can be done by removing the contents of the directory C:\Windows\SoftwareDistribution\Download\. The files and folders in this directory are safe to delete. Where the SP2 Windows update was saved depends on where you saved the file.
- Mount your Cloud Storage
- Download to Cloud Storage your MSSQL installation media and start the installation program (usually setup.exe)
- Follow installation procedure, refer to installation documentation should you need assistance
- Reboot your system
- Install any service packs, patches, or updates to MSSQL, these should be ran from the local file system and not Cloud Storage
- Reboot your system
- Remove any unnecessary installation files or patches, service packs, and updates from your system to conserve space, or copy these files for backup purposes to Cloud Storage if you wish.
- Disable MSSQL Services from starting
- You can right-click a service, choose Properties, and change the Startup type to Disabled
- You can use the sc directive to disable services. Scripts below are examples which you can use/modify to do this in a batch format quickly
- Reboot your system
- Check that MSSQL Services did not auto start, troubleshoot as necessary and reboot to check
- Run PREP
- Once the system is offline, return to the GoGrid portal, select the MyGSI image and SAVE it
- Name your MyGSI, add a description as necessary and save
- Wait between 10 and 30 minutes for the save process to complete
MyGSI Deploy Phase
- Deploy MyGSI (5-15m)
- Log in (< 1m)
- Enable MSSQL (2-5m)
- Log into MSSQL as SA user (< 1m)
- Remove old Administrator account (1m)
- Add current machine's Administrator account allowing for Windows Authentication (1m)
- Log out of MSSQL (< 1m)
- Log into MSSQL using Windows Authentication with the Administrator's account to test (< 1m)
- Resume customization as needed (unk.)
Deploying your saved MyGSI
- Deploy your saved MyGSI
- Log into the system
- Enable MSSQL Services
- You can right-click a service, choose Properties, and change the Startup type to Manual or Automatic depending on what it originally was
- You can use the sc directive to disable services. Scripts below are examples which you can use/modify to do this in a batch format quickly
- Reboot your system
- Check that MSSQL Services did auto start, troubleshoot as necessary and reboot to check
- Once you've confirmed services start automatically as needed, log into your MSSQL instance as the SA user with the credentials you provided during installation.
- Once logged in, expand Security, then Logins
- Right-click on the old Administrator account, and left-click on Delete. Follow the steps to confirm
- Right-click on Logins and left-click on New Login...
- Left-click on Search and type in Administrator in the text box, then click OK
- Make sure Windows authentication is selected, and click OK at the bottom.
- Test Administrator login via Windows Authentication by closing all Microsoft SQL Server Management Studio windows, and starting a new session.
Testing
After building any MyGSI image, it is recommended that you test that image. To do so, deploy the saved MyGSI image and wait for it to come online. You may have to wait up to 30 minutes for it to finish post-deployment requirements before the system is available. Once online and reachable, log in and check configured settings. If the system is never available, you may want to submit a support case to inquire about the system's status. If the system is offline due to a problem in the MyGSI save process, then you will most likely be required to delete your saved MyGSI server and start over from the ground up.
Source Code for Scripts
Suggested fix: Windows UTC/Local time correction
w32tm /config /manualpeerlist:"216.93.160.62 207.46.232.182 192.43.244.18" /reliable:YES /update
Microsoft® SQL Server® 2008 Express Downloads
Microsoft® SQL Server® 2008 Express is a free edition of MSSQL. The downloads provided here were current as of 01/04/2010:
Microsoft® SQL Server® 2008 Express Edition with Service Pack 1
Microsoft® SQL Server® 2008 Express with Tools
Microsoft® SQL Server® 2008 Express with Advanced Services
Microsoft® SQL Server® 2008 Management Studio Express



