Running Ubuntu 8.04.1 Server on XP with VirtualBox â€“ Part 1
Not only does running your own Linux Server make you feel like a big man, but like having a towel in The Hitchhiker’s Guide to the Galaxy, it will make everyone else think you’re a hoopy frood. Moreover, it’s a great way to learn Unix on the side. In this first installment of a two-part series, I will show you how to install Ubuntu Server in VirtualBox on a Windows XP system.
This article will cover the installation of Ubuntu Server. In the second part, I will show you some value-adds that will hopefully assist you in accessing and maintaining your server more effectively. As the instructions in this article are fairly basic, you may want to ignore them, but just beware the caveat in step 3 of the VM configuration below.
Let’s get started. To perform the installation you will need the following:
- Sun xVM VirtualBox (See http://www.virtualbox.org/wiki/Downloads for the downloads)
- Ubuntu Server 8.04.1 installation CD ISO image (Go to downloads; choose the Ubuntu 8.04 LTS Server Edition and Standard personal computer; select a download location near you)
Install VirtualBox by double-clicking the installer and following the prompts. You can safely accept all the defaults. If you have done this, congratulations! You have finished the first part of this tutorial.
Now for the server installation:
Set up the VM
- Run VirtualBox from the Start menu.
- Click on the New button (Ctrl-N) to define a new VM
- Name your server “Ubuntu Server” (or anything else) and select Ubuntu as the OS type. Click Next.
- Choose the memory size. Mine defaulted to 256MB, which proved sufficient. Click Next.
- Click New… to add a new hard disk image. Click Next.
- Choose “Dynamically expanding image” and click Next.
- Choose the hard drive size. Mine defaulted to 8GB which seems enough. Click Next.
- Click Finish to go back to the VM creation wizard. Click Next to proceed. Click Finish to end the new VM wizard
Configure the VM
- Select your newly created VM and click the Settings button. This brings up the settings dialog.
- In the General category, choose the Advanced Tab
- Enable the option “Enable PAE/NX”. (This is probably the most important step. Without it the installation can complete, but the server will not boot).
- Choose the CD/DVD-ROM section to mount the ISO
- Select “Mount CD/DVD Drive”
- Choose ISO Image File
- Click the Select (folder with green arrow) button to bring up the Virtual Disk Manager dialog
- Click the Add button and browse to the ISO image of the Ubuntu Server installation CD that you downloaded
- Click Select to select the newly added image and return to the CD/DVD-ROM section in the Settings Dialog. Click OK.
Well done. You are now ready to perform the server installation on your VM.
Installing the Server
The next part is pretty much all about accepting defaults, so you might want to attempt it on your own:
- On the main window, select your VM and click the Start button. A new window is launched.
- Wait for the menu to come up and choose the installation language
- Select “Install Ubuntu Server”
- Choose the language for the system and press Enter
- Choose your country or territory and press Enter
- For the keyboard layout, I tabbed to “No” (do not detect keyboard layout) and pressed Enter. Then I chose USA on the next two dialogs, because I know what keyboard layout I have
- Wait for the hardware detection to finish.
- Accept the determined host name by pressing Enter
- For the disk partitioning, choose “Guided – Use Entire Disk” (the default) and press Enter
- Choose the displayed disk by pressing Enter
- On the next screen, accept the partition settings by tabbing to “Yes” and press Enter
- Wait for the installation to complete.
- Enter the name of a user to create and press Enter. Enter the ID of the user as well and press Enter. Also enter and confirm a password, pressing Enter each time
- If you are behind a proxy, you can enter the proxy details here, but I will cover this in more detail in the next article. Press Enter
- You now have the option to install certain server components. I chose LAMP Server (which installs Apache, MySQL and PHP) and PostgreSQL database. Press Enter to proceed. If you chose LAMP, you will be prompted to enter and confirm a password for the MySQL root user.
- Once everything is complete, you are ready to reboot. Choose Devices > Unmount CD/DVD-ROM from the window menu, and press Enter to reboot your VM server. You can now log in using the user you created during the installation.
Congratulations! You are now the proud administrator of your own Linux server! In the next part, I’m going to show you some value-adds that will hopefully help you get more out of your installation.
Leave a Reply