Virtualization, Cloud, Infrastructure and all that stuff in-between

My ramblings on the stuff that holds it all together

Cloudcamp London July 2009

 

Cloudcamp London is just winding down, it seems to be a lot smaller than the last London Cloudcamp and it’s in a smaller but much nicer venue (provided by Microsoft)

There were a set of lightning talks on various cloud topics, mostly on security in the cloud.

Some interesting thoughts from HP labs on on data obfuscation software as a way to better protect data in the cloud, some client side software that can encrypt and decrypt data from a service provider, almost it’s own man in the middle to translate data to/from the cloud.

Never store your data in the clear in the cloud but don’t rely on the cloud to do the encryption, it’s transparent to your apps and is prob he most agnostic approach too, an Amazon or Microsoft DB doesn’t care if the First Name field says “bob” or “"LpZ”

There was an interesting panel discussion that spent some time on the definition of cloud computing, there was a lot of bagging of the concept of private clouds not being “proper” cloud computing, it’s “just” virtualization.

That’s a favorite argument of mine and Joe Bagley from Quest software made a point that summarizes it better than my previous statements; “virtualization is just a technology, cloud is a business model” – to expand that further that business model can be applied equally to public facing services and internally facing services (inter-departmental, chargeback etc.) – it’s not all about internet scale gargantuan operations

Some breakout sessions from Cisco on IP NGN – Next Generation Network, applying tagging technology to ensure network state moves around the datacentre and globe with virtual server instances. “the network is not just the pipe”.

Rightscale were up next; SaaS gives you limited control over what you can do with your solution – PaaS/IaaS – total flexibility, rightscale add automation and management

Predictions over infrastructure sizing cost money = over-provisioning; opportunity cost, which is why cloud is so appealing to start-ups, lower barrier of entry… same principal can apply to the corporate world – cost of failure is smaller for off the wall ideas.

some examples of very peaky demand that they helped deal with on EC2;

  • Animoto EC2 example 8 mins CPU for 1 min video, 25k sign ups per hour peak 4.7k EC2 instances
  • Oscars Starcut, scheduling feature to bring up instances on a schedule
  • Beijing olympics
  • Eli Lilly — computational biology, grid in the cloud taking advantage of massive parallelism

CohesiveFT were up next (The discussion topics didn’t grab my interest this time round so I stuck with the vendor track as I needed to get a bit of market research in.

  • Elasticserver.com – customize virtual (cloud) server build = likened to Dell website process for building a physical server
  • Software factory, pick components – open source things like mySql, python etc.  upload your own components, multiple OSes (open source)
  • build, licence, market sell ISV solutions via portals
  • output as EC2 or elastic hosts cloud
  • or download VM in VMware/Xen/Parallels VM appliance – very cool
  • community edition = free, personal or professional (paid-for
  • they embed management hooks in the appliance back to elastic server service console
  • On-premise versions going into beta soon, deploy as a VM appliance – nice

enStratus were up last David Bagley is an IaaS management offering

  • managing infrastructure, security, reliability
  • Interesting point made by a member of the audience; Amazon (+other IaaS)costs flex up and down with demand, managed services don’t map that way with most MSP, support is a fixed cost, no pay as you go
  • Reason being you need people sitting there, a larger MSP should be able to do this as they have more diversity better risk/workload spread but costs don’t reflect that or have high barriers to entry.

All round a good event, bit smaller and less vocal audience than the last one I attended, if you get the chance I would definitely recommend checking out an event near you.

Long Distance vMotion… heading to the vCloud

 

VMware have an interesting proof of concept document posted online here, this is great progress for the platform and it can only be helped out by the close partnership with Cisco that has resulted in the NX1000V switch.

I’m no networking expert but to my understanding there are issues with extending Layer 2 networks across multiple physical locations that need to be resolved for this to be a safe configuration. to my limited understanding traditional technologies like spanning tree can present some challenges for inter-DC flat VLANs so they need to be designed carefully, maybe using MPLS as a more suitable inter-DC protocol.

The interesting part for me is that this will be the nirvana for VMware’s vCloud programme, where services can be migrated on/off-premise to/from 3rd party providers as required and without downtime. this is do-able now with some downtime via some careful planning and some tools but this proposition extends the vMotion zero downtime migration to vCloud.

As this technology and relevant VM/storage best-practice filters out of VMware and into service providers and customers this could become a supportable service offering for vCloud Service Providers.

To achieve this you still need storage access from both sites, to me the next logical step is to combine vMotion and FT technologies with some kind of host based replication or storage virtualization like the Datacore products. this will remove the dependency (and thus potential SPOF) on a single storage device for vMotion/FT.

Virtualizing/replicating the actual VM storage between different arrays and storage types (EMC—>HP, or even DAS—>EMC) and allowing (encapsulating) it over standard IP links rather than relying on complicated and proprietary array based replication and dedicated fibre connectivity is going to be a key success factor for vCloud, it’s interesting to see all the recent work on formalising FCoE along with other WAN-capable standards like iSCSI.

Some further reading on how I see “the cloud” evolving at a more practical level here

https://vinf.net/2009/01/08/what-is-the-cloud/

https://vinf.net/2008/06/23/virtualization-the-key-to-delivering-cloud-based-architecture-now/

Biking for Geeks

 

A slight diversion from the usual topics, over the last year I have been getting back into cycling after a long break. Mainly to regain my overall fitness but also as a social thing with our daughter who loves cycling.

Whilst I enjoy cycling, like any geek I need an extra hook to keep me interested and track my progress against my goals, following some advice from colleagues who are really into running I looked into the Suunto range of products.

My list of wants for this personal training “solution” included

  • Mileage & altitude logging (being as I typically cycle where there are a lot of hills)
  • EPOC, energy consumption, heart rate
  • Temperature
  • GPS route logging so I can view routes on Google Maps etc.

I ended up at the Suunto T6C wrist top computer which comes with the heart rate belt, data cable etc.

Suunto have an active user forum with people sharing both technical and training tips, it wasn’t cheap but is widely regarded as “the business” and I increased the RoI 🙂 as I needed a normal watch – it’s not the smallest of watches, but it’s workable for me.

IMG00397

The Suunto range works using wireless “pods” which are battery operated sensors that record data including speed, heart rate, cadence etc. which are logged on the watch memory, the watch itself has built in sensors and logging for environmental items like temperature & altitude.

It doesn’t however satisfy the GPS route logging want; there is a GPS pod for the Suunto range however when paired with the T6C it just functions to monitor speed rather than allowing data logging and anyway Suunto bike pod provides a better solution for cycling.

Suunto also have the X9i

Suunto X9i: Sports & Leisure

ASIN: B000WOZY82

and the newer X10 model

Suunto X10: Sports & Leisure

ASIN: B001DCEKXW

Both of these can do data logging but they were out of my price range at the time and didn’t get very good reviews for performance and build quality, whereas the T6C got good feedback all round.

I started with the watch itself which comes with the heart rate belt, later on I added the road bike pod (Suunto Road bike POD) and a cadence pod (Suunto Cadence Pod – For Cycling)

I did also buy the GPS pod (Suunto GPS POD) which is how I discovered it’s lack of the route logging features I required 😦 – it’s now in reserve for a future foray into running.

The watch comes with a USB cable to download the logged data to a PC using the Suunto provided software (Suunto Training Manager); this is freely downloadable and allows you to analyze the data; there is also a wireless USB receiver (Suunto PC POD) if you don’t want to use the cable or have a more complicated real-time coaching requirement for multiple people (i.e professional coach)

The following screenshots are from the Suunto Training Manager application.

 image image

 

 

 

 

 

image

image 

There is also some commercial software called FirstBeat Athlete which comes well recommended and takes a more active coaching approach whereas the Suunto Training Manager is more about allowing you to analyze your performance retrospectively although have not tried it yet (2-week evaluation copy here)

This is the road bike pod

IMG00392 IMG00393

It records speed, and thus distance travelled – my hybrid bike has quick change wheels so it replaces the standard front wheel skewer and works with a magnet on the spokes; Suunto also do another version of this sensor for bikes without quick change wheels (Suunto Bike POD) just be sure to check the fork size is compatible as the non road bike mounts to the front fork.

I chose the road bike pod as it was a neater solution and there was less chance of the sensor being knocked off whilst the bike is being transported around.

This the the cadence sensor (don’t confuse it with the standard Suunto bike pod; both are of a similar design but do fundamentally different things)

IMG00395

It works by attaching a small magnet to the inside of the pedal crank and a sensor mounted on the frame with supplied cable ties, cadence is an important part of monitoring your training – particularly when cycling as it’s easy to coast down hills 🙂

I have found the heart rate belt fine to use, some people have trouble with it slipping off but I’ve not had any issues, they can break/wear out but there are spares available.

All of the sensor pods have flat type batteries which are user-replaceable.

Some further resources are here

Suunto manual download page

Suunto training guides

The last part of my list of “wants” was GPS route tracking so I can record my cycle routes and store them for reference or working out where I got lost, I wasn’t bothered about actual on-bike navigation just post-ride analysis.

Being as the Suunto offerings I went with don’t have GPS route logging capabilities I looked at several standalone route logging devices like this and this, but they all require data to be downloaded and converted into a mapping programme.

Being as I always carry my mobile phone (Blackberry Pearl 8120) when I cycle I wanted an integrated solution. The version of the Blackberry Pearl that I use can run Google Maps with cell location but it lacks a built-in GPS. as a result I looked for a Bluetooth GPS receiver and some software to run on the Blackberry to log and possibly automatically upload data.

After a lot of experimentation I found Instamapper (www.instamapper.com, blog) which is an online service that integrates with Google Maps and works by receiving GPS data from client software running on a variety of handsets.

The clever part is that you never need to download/upload data to the service, the client buffers and uploads data automatically whilst the application is running, I found some problems with this initially that when the handset locked the application was terminating – this forum post fixed it for me and it has worked 100% ever since.

You can analyse the data online via the instamapper website, but it also gives you the option to export the data out to a variety of formats, including a .KMZ file which works with Google Maps 

image

You can then view tracks like this in Google Earth

imageimage

image

My bike is an Iron Horse Transit 3.0 which is a hybrid bike, I spent a lot of time researching which bike to buy and was looking for a Marin or Specialized bike but to be honest I was offered a good deal on this at an Evans Cycles warehouse sale last year and it was too good a deal to turn down.

image 

It’s a great bike and I have clocked up nearly 1,000 miles in the last year it can cope well enough with a mix of road and gravel/forest trail type conditions – it’s not an off-road bike by any means as it has pretty slim tyres but its pretty versatile and light and well suited to the type of riding I do (mainly road with occasional trail/park) the riding position is excellent for heavy traffic as it’s quite upright and the flat handlebars make manoeuvring in traffic easy.

We have a 3-year old who likes to come along on rides, for this I have one of these seats.

It mounts to the bracket shown below which I just leave on my bike all the time. The seat is quick and easy to get on and off the bracket and is secure when on, the metal mounts offer a reasonable level of suspension for our child when sitting in the seat and stops the worst of shocks from the road.

image image

I did look at some of the Weeride type seats but didn’t like the proximity of the childs head to my chin/teeth 🙂 especially over bumps! although I can see they would be better for weight distribution and balance.

As an added bonus if you need to do any shopping the child seat can hold the shopping whilst you ride home (assuming you don’t take the child with you of course :)).

I hope that was useful to someone, my inspiration for looking into this originally came from the following links

http://www.ultrarob.com/blog/2007/11/bike-ride-mapping-with-gps.php

http://www.nickfessel.com/gmaps/burlingtonbikeRide.html

http://www.semifluid.com/?p=80

http://www.mapmyride.com/

http://www.singletracks.com/blog/mtb-trails/topo-maps-in-google-earth-map-your-bike-trails/

vSphere ESXi as a VM – VMKernel Traffic Not Working

 

In the lab I am currently working with I have a set of vSphere 4 ESXi installations running as a virtual machine and configured in an HA cluster – this is a great setup for testing VM patches, and general ops procedures or learning about VMware HA/DRS/FT etc. (this lab is running on a pair of ML115 g5 servers but would work equally on just one

image

Everything installed ok and I can ping the virtual ESX servers from the vCenter host that manages the cluster (the warning triangle is that there is no management network redundancy – I can live with that in this lab.

All ESX hosts (physical and virtual) are connected via iSCSI to a machine running OpenFiler and the storage networking works ok, however when I configure the vMotion & FT private networks between the VM ESX hosts I cannot ping the vMotion/FT IP addresses using vmkping – indicating that there were some communication problems, normally this would be a VLAN issue or some routing but in this instance all the NICs and IP addresses for my lab reside on a flat 10.0.0.0/8 network (it’s not production, just a lab).

image

image

After some digging I came across this post for running ESX full as a VM, and noted the section on setting the vSwitch to promiscuous mode so I tried that with the vSwitch on the physical ESX host that the two ESXi VMs were running on;

image

And now the two Virtual ESXi nodes can communicate via vmkping

image

Problem solved and I can now vMotion nested VMs between each virtual ESX host – very clever!

vSphere – How to Enable FT for a Nested VM

 

As in my previous post; I am working on a lab with virtual ESX4 servers in it – I can vMotion VMs from a physical vSphere cluster into the virtual vSphere cluster perfectly and performance is very good (just 1 dropped ping in my testing)

One of the physical hosts belongs to www.techhead.co.uk which he has kindly lent for this joint experiment – see his posts here, here and here on running vSphere on these HP ML115g5 servers and their FT compatibility. We have some joint postings in the pipeline on guest performance with complicated apps like SQL & Exchange when protected via FT , so keep your eyes peeled.

As the physical ESX hosts themselves are FT compatible I thought I’d see if I can enable FT for a VM running inside a virtual ESX server cluster, so a VM running inside a hypervisor, inside another hypervisor..!

image

image

Our of the box, unfortunately not; as it gives the following error message 😦

Power On virtual machine

Record/Replay is not supported on this CPU for this guest operating system. Vou may have an incompatible CPU, you may have specified the wrong guest operating system type, or you may have conflicting options set in your config file. See the online help fot a list of supported guest operating systems, CPUs and associated config options. Unable to enter fault tolerance mode.

To work around this you can enable the following advanced (and likely totally unsupported) settings to enable FT on the nested VM (the default is/was false) (thanks to the comment on this post for the replay.allowBTOnly = TRUE setting!)

image image

And here it is – Nested VM running, with FT enabled

image

Very nice

Later on you can see some warnings about hosts getting a bit behind, also I had some initial problems getting FT to bring up the 2nd VM properly, the UI said it was restarting and it got stuck there, I dropped the virtual ESXi host down to a single vCPU rather than two and it worked ok from then on. I decided to do this as the virtual ESXi nodes were coming up reporting 2 x Quad core CPUs; whilst the physical host only has a 1 x Quad Core CPU so I guess that was causing some confusion.

At this point both of my virtual ESXi hosts were on the same physical vSphere server, and I seemed to have problems with the secondary getting behind. (vLockstep interval)

In this instance my nested VM is running an x86 Windows 2003 unattended setup.

image

image

I vMotioned one of the virtual ESXi hosts to the second physical vSphere server (very cool in itself) and it seemed to be better for a while, I assume there was some CPU contention from the nested VM.

image image

However in the end it flagged up similar errors, I assume this is due to the overhead of running a VM inside a hypervisor, inside another hypervisor 🙂 this is a lab setup but will prove very useful if you have to learn about this stuff or experiment with different configurations.

This is probably totally unsupported, use at your own risk – but it does work well enough to play about with in the lab.

Vista – clearing out some space

 

I have had Vista RTM installed on my current laptop since it was released, I’m always running out of disk space – I just have an .iso and VM hording habit!

However I recently upgraded my laptop from a 100Gb disk to a 200Gb one, thinking that should be more than enough (famous last words..)

But not 3 months later I’m out of space again, but this time I’ve even purged all the VMs I no longer use and I am still looking at an OS/app footprint of tens of Gb, so I did some digging and aggressive housekeeping and turned up a lot of downloaded and old application data that has built up over the last couple of years.

I used TreeSize Free which is great for sniffing around all those obscure and redirected Windows folders (screenshot below is after some general housekeeping, but still!)

image

My data not unexpected and I can live with this

image

with a bit of digging I found the worst culprit(s) that I didn’t know about, AppData so I did a bit of exploring…

image

The size of the AppData\Windows folder was a bit of a surprise, as was the size of the temp internet files folder as I exclusively use Firefox, however this is temp files where IE is embedded into MS apps like Outlook and Office and this is where it stores its temp files.

image

The 95Mb Explorer directory was mainly thumbnail cache databases

It seems  lots of apps use this directory to store their data (as the name would suggest 🙂 but don’t clean up after you’ve uninstalled them – Xobni, I’m pointing the finger at you, Spotify and Google Earth also seem to keep data here, assume that’s a cache of downloaded content.

image

Apple seem to leave old iPod updates in here too

image

Next up, C:\ProgramData

Microsoft Search cache seems pretty big, but it’s useful

image

Apple everything… thanks for eating up all my disk space, I’m sure I need to keep iTunes 7.x ready to install!

image

and finally C:\Windows

image

700Mb of temp files! and when I looked into it there were over 12,000 files

So, in summary – TreeSize Free is an excellent tool for going exploring and visualising your actual folder by folder disk usage, you can also delete folder from within it.

by doing this I regained a serious amount of useful disk space!

Cheap vSphere Server

 

If you have a home lab setup or want to get going with learning VMware’s new vSphere product you will need an x64 capable machine to run it on, although it does also run under VMware Workstation too – even supporting nested VMs and physical ESX to virtual ESX vMotion! unfortunately it won’t run on my trusty old HP D530 desktops which I’ve used to run ESX 3.5 over the last year or so.

My lab setup uses a couple of HP ML110 servers, they are low-cost and pretty capable boxes, for example they both have 8Gb of RAM and cost me less than £350 GBP each with RAM and disks (although I’ve added storage from my spares pile).

If you are in the UK Servers Plus have some great deals on HP ML series servers which are great for home lab setups – see some of Techhead’s postings on his findings with the ML1xx range here

Linkage to Servers Plus £199 +VAT servers here (www.serversplus.com) if you tell them vinf.net or techhead.co.uk sent you they may cut you a deal on delivery as they have done in the past (no promises as I’ve not had a chance to speak to them).

image image

A note of caution if you are looking to try out the cool FT features of vSphere you will need to purchase specific CPUs, which may be more expensive – there is a good list of compatible CPUs on Erics blog here and some more reading here

Check before you buy you can lookup the manufacturers part code to check with CPU each model has – or check with the supplier.

image

The CPUs I have in my dual-core Xeon ML110G5 is not compatible with FT 😦 but it does look like the AMD quad-cores may be compatible, but check 1st – don’t take my word for it I HAVE NOT TRIED IT  but I would like to if someone wants to donate one 🙂 

UPDATE: the ML110G5 with the AMD Quad Core CPU IS VMware FT compatiblesee link here for more details; I am ordering one now!

If you are interested – here are some performance charts from my home lab running vSphere RC on an HP ML110 with 8Gb RAM and 2 x 160Gb SATA HDD’s whilst doing various  load tests of Exchange 2007 and Windows 2008 with up to 500 concurrent heavy profile users (these stats are not particularly scientific but give you an idea of what these boxes can do, I’ve been more than happy with mine and I would recommend you get some for your lab)

Exchange Load test 1 - CPUExchange Load test 1 - Network Exchange Load test 1 - Disk 

These are some general screengrabs, note there are lots of warnings showing – this is what happens when you thin-provision all your VM’s and then one fills up rapidly making the VMFS volume itself run out of space – you have been warned!

 image image

I’m running 15 VMs on one ML110, the 2nd box only has 1 VM on it as I wanted to see how far I could push one box, I’ve not found a real limit yet! it runs a mix of Windows 2003/2008 virtual machines, and it doesn’t generally break a sweat – note the provisioned vs. used space columns – Thin Provisioning 🙂 and I’m also over-subscribing the RAM significantly.

image

vSphere Downloads

 

Now it’s out these screengrabs show you the downloadable binaries

Still has the classic (with service console) and ESXi versions

image

vCenter and all it’s utilities

image

vCenter heartbeat, Data recovery and vShield zones, interesting that they have packaged data recovery manager and vShield Zones into one {large!} download.

image

No Cisco Nexus NX1000V on the VMware.com site, but you can register for a free 60 day eval here

vSphere, Come and Get it

 

Well today is the day, GA or general availability of VMware’s new flagship product – vSphere (formerly known as Virtual Infrastructure 3).

The VMware.com homepage is showing the download link for a free 60 day trail.

download page is here

image

for some of my vSphere articles and many more check out these links

http://www.yellow-bricks.com/2009/04/21/vsphere-linkage/

https://vinf.net/2009/02/26/hands-on-lab-01-vsphere-features-overview/

https://vinf.net/2009/05/08/vsphere-rc-ram-under-vmware-workstation-how-low-can-you-go/

http://en.wordpress.com/tag/vsphere/

ExPrep – Script to Automate Exchange 2007 Pre-Requisite Installation

 

If you have ever had to install Exchange 2007 on a Windows 2008 (and 2003) server you will know that there are a number of pre-requisites that need to be installed from the OS for each role; for example IIS web services and metabase compatibility components.

You have two choices, do this via the UI using the add/remove features and roles Wizard in Server Manager or using the ServerManagerCmd.EXE command line utility – either way it’s pretty tedious to do if you have several servers to install.

Based on this handy reference from Microsoft I have built a very basic batch file that automates the installation of the pre-req components for you.

It only works on Windows 2008 (sorry no 2003 equivalent) and you use it entirely at your own risk – there are much cleverer ways of scripting this but I’m a pretty old skool DOS person, this works for me and is easy for me to maintain – feel free to re-write in something more modern and post it back here this code is probably quite hacky.

The contents of the file are here (just cut & paste into a .bat file)

@echo off

REM ExPrep.bat by Simon Gallagher, ioko (http://vinf.net)
REM Usage Instructions and further information here
REM https://vinf.net/2009/05/13/exprep-script-to-automate-exchange-2007-pre-requisite-installation/

REM YOU USE THIS SCRIPT ENTIRELY AT YOUR OWN RISK
REM
REM Version 1.0

SET %EXPREP%=999
echo 1…….Mailbox Role (non-clustered)
echo 2…….Mailbox Role (Clustered)
echo 3…….Client Access Server (CAS)
echo 4…….Hub Transport (HT)
choice /C 1234
SET EXPREP=%ERRORLEVEL%
echo you chose %EXPREP%
pause

echo Preparing for base pre-req install

ServerManagerCmd -i Web-Metabase
ServerManagerCmd -i Web-Lgcy-Mgmt-Console
ServerManagerCmd -i Web-Server
ServerManagerCmd -i Web-ISAPI-Ext
ServerManagerCmd -i Web-Metabase
ServerManagerCmd -i Web-Lgcy-Mgmt-Console
ServerManagerCmd -i Web-Basic-Auth
ServerManagerCmd -i Web-Digest-Auth
ServerManagerCmd -i Web-Windows-Auth
ServerManagerCmd -i Web-Dyn-Compression
ServerManagerCmd -i PowerShell

echo you chose %EXPREP%

if %EXPREP%==1 goto MBX
if %EXPREP%==2 goto MBX-CLUSTER
if %EXPREP%==3 goto CAS
if %EXPREP%==4 goto HT

goto end

:MBX
echo preparing for Mailbox Role (non-clustered)
pause
ServerManagerCmd -i Web-Server
ServerManagerCmd -i Web-ISAPI-Ext
ServerManagerCmd -i Web-Metabase
ServerManagerCmd -i Web-Lgcy-Mgmt-Console
ServerManagerCmd -i Web-Basic-Auth
ServerManagerCmd -i Web-Windows-Auth

goto end

:MBX-CLUSTER
echo preparing for Mailbox Role (clustered)
pause
ServerManagerCmd -i Web-Server
ServerManagerCmd -i Web-ISAPI-Ext
ServerManagerCmd -i Web-Metabase
ServerManagerCmd -i Web-Lgcy-Mgmt-Console
ServerManagerCmd -i Web-Basic-Auth
ServerManagerCmd -i Web-Windows-Auth

ServerManagerCmd -i Failover-Clustering

goto end

:CAS
echo preparing for CAS role
pause
ServerManagerCmd -i Web-Server
ServerManagerCmd -i Web-ISAPI-Ext
ServerManagerCmd -i Web-Metabase
ServerManagerCmd -i Web-Lgcy-Mgmt-Console
ServerManagerCmd -i Web-Basic-Auth
ServerManagerCmd -i Web-Digest-Auth
ServerManagerCmd -i Web-Windows-Auth
ServerManagerCmd -i Web-Dyn-Compression

ServerManagerCmd -i RPC-over-HTTP-proxy

goto end

:HT
echo preparing for HT role
pause
Echo nothing extra needed, PowerShell done already
goto end

:END
echo Done

Instructions:

1) Copy the script (ExPrep.bat) to your would-be Exchange server (remember Windows 2008 x64 is the only supported OS for Exchange 2007).

2) Run ExPrep.bat

3) Choose the appropriate role from the menu (note: there is no clever input validation – make sure you choose the correct one, there are pause statements before it actually does anything so you can CTRL-C to break out.

clip_image002

4) Sit back and wait for it to complete.

5) then run the Exchange 2007 installer from your DVD or network share as normal.

If you need to install multiple roles on a single server you can run the script multiple times, all changes are cumulative and if a component is already installed ServerManagerCmd.EXE (which the script calls) will just skip it.

If you wanted to take it further there is some excellent information about the setup process, failures and doing full unattended installations of Exchange 2007 here and here

Remember you use this entirely at your own risk, and you assume full responsibility for checking its suitability for your environment; the batch file is easy to read and customize for your own use, although I ask that if  you do make changes link back here via a comment or trackback so that other people can benefit.