Jump to content
mashti

Deploying Ubuntu 8.04.1 using Windows Deployment Services (WDS)

Recommended Posts

Here is a step-by-step (how-to) guide for deploying Ubuntu 8.04.1 LTS 32-bit (Hardy Heron) from a Windows Server running Windows Deployment Services (WDS)

 

Hidden Content

    Give reaction to this post to see the hidden content.
Part 1 - Stage the Ubuntu Setup files on your Server

 

Note: If you really wan't to do Ubuntu deployments with style, you should of course skip downloading the alternate ISO's and instead create a local mirror of the real Ubuntu dist mirrors. You'll find optional instructions on how to do this further down in the guide (Part 3 to be exact), but for now we simply use the Ubuntu Alternate CD (32-bit) to speed up the process.

 

1. Download the 32-bit Alternate Install CD's from:

Hidden Content

    Give reaction to this post to see the hidden content.

 

2. Install IIS (web server) on your server and create a virtual directory named Ubuntu (in this example from the D:\Ubuntu folder): Configure the MIME Settings for the virtual Ubuntu directory by adding a .* wildcard extensions for the "text/plain" mime type (In the HTTP Headers Tab of the Virtual Directory Properties). This is for supporting wget downloading files (which the Ubuntu install engine is using).

 

3. Copy the contents of the iso image to D:\Ubuntu. Be warned though, The Ubuntu CD Image team (in their infinite wisdom) choosed to use the Rock Ridge extensions to ISO 9660 which supports filenames up to 255 characters. Problem is most Windows software (including vmware) doesn't support this when running Windows as a guest OS. However, MagicISO does, so download and install MagicISO from:

Hidden Content

    Give reaction to this post to see the hidden content.

and use it to extract the iso to theD:\Ubuntu folder.

 

4. Create another virtual directory, this time named Kickstart (in this example from the D:\Kickstart folder). Configure the MIME Settings for the virtual Ubuntu directory by adding a .cfg extensions for the "text/plain" mime type (In the HTTP Headers Tab of the Virtual Directory Properties).

 

5. Download and extract the sample kickstart file (Ubuntu version of unattend.txt) found at this link:

Hidden Content

    Give reaction to this post to see the hidden content.

and save it in the D:\Kickstart folder. The encrypted password in thekickstart script is ubuntu

 

Part 2 - Configure WDS to support Ubuntu

 

1. From the D:\Ubuntu\install\netboot\ubuntu-installer\i386 folder, copy the initrd.gz and linux files to D:\RemoteInstall\Boot\x86\Hardy\32

 

2. Download and extract syslinux from:

Hidden Content

    Give reaction to this post to see the hidden content.

(it contains pxelinux)

 

3. Copy the syslinux-3.71\com32\menu\vesamenu.c32 to your WDS Server, D:\RemoteInstall\Boot\x86

 

4. Copy the syslinux-3.71\core\pxelinux.o to your WDS Server, D:\RemoteInstall\Boot\x86, rename it to pxelinux.com

 

5. Download a nice background image (

Hidden Content

    Give reaction to this post to see the hidden content.
),

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

6. In the D:\RemoteInstall\Boot\x86 folders, make a copy of pxeboot.n12 and rename it to pxeboot.0

 

7. Configure WDS to use the pxelinux.com boot file (Server properties, Boot tab)

 

8. In the D:\RemoteInstall\Boot\x64 or D:\RemoteInstall\Boot\x86 folders, create a subfolder called pxelinux.cfg

 

9. In the D:\RemoteInstall\Boot\x64\pxelinux.cfg or D:\RemoteInstall\Boot\x86\pxelinux.cfg folders, create a file named default with the following settings

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

Part 3 - What next...

 

if you really wan't to do Ubuntu deployments with style, you should of course skip downloading the alternate ISO's and instead create a local mirror of the real Ubuntu dist mirrors, giving you access to the latest security updates, drivers, support for multiple architectures etc... However, they are really big... Even a single dist like Hardy is about 36 GB (i386 and amd64)

 

To create a local mirror of the hardy dist I recommend using apt-mirror which will run just fine in Windows, as long as you run it in Cygwin.

 

Download cygwin from:

Hidden Content

    Give reaction to this post to see the hidden content.

and run setup, make sure to select the wget package in addition to the default packages.

 

Then download apt-mirror from:

Hidden Content

    Give reaction to this post to see the hidden content.

and then, in cygwin, create a file named /etc/apt/mirror.list with the following content

 

Hidden Content

    Give reaction to this post to see the hidden content.

In cygwin run: perl apt-mirror (it will now create a local mirror of the selected dists and packages)

 

Then copy the content of the d:\staging\ftp.acc.umu.se\ubuntu folder to D:\Ubuntu. Another option is of course to create the /ubuntu virtual directory from d:\staging\ftp.acc.umu.se\ubuntu directly.

  • Like 1

Share this post


Link to post
Share on other sites

What if I am selecting Ubuntu 10.4??

What will be the changes I have to make??

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...