Tuesday, November 21, 2006

Creating a RIS server

It's been a long day, but finally I managed to get the Remote Installation Service working! So I thought I would try to document the steps needed here for future usage, and because I didn't find any reliant tutorial on the net.

As I sit here now, my laptop next to me is now installing Windows XP. It took some doing but never the less, it was a success. Now the ironi of this is that I'm only installing XP so I can get rid of a GRUB gone haywire, so I can reinstall Ubuntu. My laptop is a bit old now, the cd has gone bad, no usbboot available. In other words, no removeable media is going to do it. PXEBoot was sort of my last option, otherwise I probably would have given up a long time ago I'm sad to say.

Enough backstory, let get to it!

Step 1. Making sure you ready to RIS ( Remote Installation Service )
What you need:
- Windows Server 2003
- DNS (Domain Name Server)configured and ready
- AD (Active Directory) active
- DHCP (Dynamic Host Configuration Protocol scope authorized - An NTFS partition other than your systempartition.

When installing Server 2003, make sure to save some unallocated diskspace or create a partition other than your systemdrive. Remote Installs need to be installed on a ntfs partition other than the one on which the server is operating on. Depending on how many OS versions you need, make sure the partition is big enough.
I hadn't partitioned my Server drive so I used Acronis Partition Expert to create another partition. Partition magic is usually a good choice, but sadly it doesn't support Server 2003. I only used 900MB for the partition which is a bit low, 2-3GB leaves room for the future.

First of make sure that everything is working correctly. Try to connect to the domain from an xpclient and make sure distributed ipadress is logical to your dhcp-scoope. I myself had some trouble with this in the early stages. I wanted to use my router as dhcp distributor, but that didn't go over at all. In the end I set up my clients and server on a seperate networksegment to avoid conflicts.
Easiest way to set up this services is using "dcpromo" (runs from "run prompt"), it's a wizard that sets up AD for you, and if you haven't installed DNS, this guide does it for you. Really the easiest way to install it, if you're a n00bie with DNS.
But it doesn't do it all for you. You still need to configure an reverse lookup zone. In the DNS management console (msc), rightclick on reverse lookup zone and create a new primary zone. Here you define the subnet on which your dns operates. eg for example if you're dhcp scoope is to, your subnet would be 192.168.0 .
Not really sure if this is necessary for the RIS server, but it can't hurt can it?
Next you need to make sure your TCP/IP configuration is correct.
Go to your network connection and check properties on the TCP/IP protocol.
Your default gateway should be the same IP as the DNS server. Same goes for primary dns. So put the DNS IP here, or the loopback address should also work (
Another pain is the windows firewall. If your clients can't connect to the Active Directory Server, check that the firewall is turned off. Another good reason to do this on a separate networksegment. You could apply a group policy on the DNS to allow traffic for AD and FRS(File Replication Service), but that's a whole other story. I've seen good guides for this on the net, so go fish.
Also make sure there is a user in the AD you can use when installing from PXEBoot, not sure how much privileges he'll need but I made him a member of Domain Admins and Remote Users, just in case.

Step 2. - Installing RIS

Allright! You're domain is functioning perfect! Time to install Remote Installation Service.
You'll find it in "Control Panels >Add or Remove Programs >Add components > Remote Installation Service"
You'll probably need Server 2003 installation disc at this point.
When it's installed and ready. Run Remote Installation Service from Administrators Tools. Here you will configure where you want to put the remoteInstallation files, eg your second ntfs partition. You'll also be prompted to insert an installation CD for the OS you want to remote install.

Step 3. Why doesn't it work?
After you've rebooted, you're good to go.
Or so they say.
I had used a swedish installation cd for my XP, which caused some problems. Sure enough, the client PXEbooted and started the installation screens. (FYI :\remoteInstall\OSChooser\Welcome.osc) But when it came to choosing language it got grumpy and crashed. What I did was that I copied all the files in \remoteInstall\OSChooser\Swedish to \English (which I created in the samefolder) . This made the installation go a bit further but then it started to complain about User Privileges and OS images.

So I renamed \remoteinstalls\Setup\Swedish to English and what do you know?
Not it works perfectly.
Now I only need to install the grub and get my ubuntu flying again!

No comments: