Tuesday, June 18, 2013

How to Create a Virtual Private Server (VPS) with Ubuntu 10.04 and VirtualBox

In this tutorial you will learn how to setup your own VPS Server  using Virtualbox. I can say that this is a next-level in terms of hosting your files locally, which is discuss in my first tutorial  "How to Install XAMPP for Windows." Because, the things that you may encounter in this kind of setup is the exact same thing happen in real world. So good luck and hope this helps you a lot.



Step 1: Open the VirtualBox application (you may download the software at https://www.virtualbox.org/wiki/Downloads if you do not have the application yet).

On the upper left corner, click ‘New’.

 photo 1_zpsc8795fb9.jpg

Step 2: A dialog box will appear. Click ‘Next’. On the next part of the Wizard, it will ask for your desired name of your new virtual machine and its OS typeAlternatively, you may use the follow settings for your reference. Note that VirtualBox is able to handle both 32-bit and 64-bit versions for all compatible operating systems; therefore, specify which version your computer belongs. Once everything is already configured, click ‘Next’.

 photo 2_zps82110048.jpg

Step 3: The Wizard will now ask for the memory allocation for your virtual server. You may choose whatever best suits your needs. In our case, we have chosen to allocate 1024MB/1GB. Afterwards, click ‘Next’.

Leave the default settings on this part as it needs a new hard disk. Click ‘Next’.

It will now ask for your hard disk storage type. By default, the ‘dynamically expanding storage’ option is chosen. We highly recommend such setting too as it does not take up much disk space for your computer. Afterwards, click ‘Next’.

 photo 3_zps6332801c.jpg

Step 4: Since ‘dynamically expanding storage’ is chosen, specify the limit of your virtual server. In our case, we have opted to set the limit at about 10 gigabytes.

 photo 4_zpscb7e0bd7.jpg

Click ‘Next’, then ‘Finish’.

Step 5: It’s time to configure the virtual server further. On the upper left corner of the program, click Settings > Storage. Right-click on the Floppy Controller and choose ‘Remove Controller’. Alternatively, you may click on the mentioned controller and press the Del key.

 photo 5_zps88428cce.jpg

Step 6: Click on the ‘Empty’ controller just above the recently deleted Floppy Controller. On the Attributes panel, click on the folder with a green arrow.

 photo 6_zps395d475a.jpg

Step 7: Click ‘Add’. Locate the server you have just created. In our case, we have placed it on our Desktop.

 photo 7_zps3e1ee313.jpg

Step 8: Afterwards, click ‘Open’ then ‘Select’.

On the left panel, click ‘Network’. It will enable you to access the server without causing hassle. To do that, tick on the checkbox that says ‘Enable Network Adaptor’. On the dropdown box that follows it, choose ‘Bridged Adaptor’. Then for its Name, choose ‘NVIDIA nForce Networking Controller. Then click OK.

 photo 8_zps26992923.jpg

On the upper left corner of the program just beside the ‘Settings’ we have clicked previously, click ‘Start’. A startup will appear for a moment then it will ask for your preferred language from the list. Afterwards, click on ‘Install Ubuntu Server’. It will load up for a couple of seconds depending on your computer speed then it will ask for your preferred language and territory. Choose <Yes> when it asks you if you would like to detect the keyboard. Then type the following keys that were asked to. Afterwards, choose <No>to all the keys you may find unusual.

The program will then load additional components and other configurations.

Step 9: A prompt will appear that will ask you to configure the network. Input your desired hostname then choose ‘Continue’.

 photo 9_zps284040c8.jpg

Step 10: It will now ask you to configure the clock. Check if the default specified time zone is correct. Afterwards, choose ‘Guided - use entire disk and set up LVM’ when partitioning disks.

 photo 10_zps2cb1725a.jpg

Step 11: Choose the disk that was created earlier by pressing the enter key. Choose <Yes> when it asks you to write changes to disks and configure LVM. Then, leave the default specified disk space as it is. Choose <Yes> again when it asks you to write the changes made. It will load components for a couple of seconds then it will prompt another message asking you for usernames and passwords. Input your real name (even just the first name will do) then hit <Continue> as well as your desired username and hit <Continue> afterwards as well.

 photo 11_zpsd4c583fb.jpg

Step 12: It will also ask for your desired password. You may use a weak password if you intend to share it publicly or a strong password if otherwise.

 photo 12_zpsb382b497.jpg

Step 13: Another prompt will ask you whether to encrypt your home directory or not. However, in our case, we opted to choose <No>. We will leave this up to your discretion.

 photo 13_zps376093d7.jpg

Step 14: In the process of loading, a prompt will appear asking for proxy information. Leave the space blank and hit <Continue>. Refer to the image below.

 photo 14_zpscfad2af9.jpg

Step 15: Afterwards, a couple of loading will take place and a prompt will ask you for managing updates. Alternatively, you may use the Landscape application. However, the said application cannot be downloaded free of charge. Hence, it needs to be purchased. And again, we leave this up to your discretion but in our case, we chose not to install updates automatically.

 photo 15_zpsa03cf3c0.jpg

Step 16: It will now prompt you to choose which components to install. ‘LAMP server’ and ‘OpenSSH server’ should be ticked and the rest should be up to your discretion.

 photo 16_zps89d87fbe.jpg

Step 17: Afterwards, it will ask you for your desired MySQL ‘root’ password. Input the needed information and when you’re done, choose <Continue> for both.

Choose <Yes> when a prompt appears and asks you to install the GRUB boot loader.

 photo 17_zps145dd561.jpg

Step 18: You should be able to get this prompt if you have followed all the steps correctly. Press <Continue> to finish the installation.

 photo 18_zpsf0e447f4.jpg

Afterwards, it will automatically load your server and ask for you login details. There you have it, your own virtual private server (VPS) using Ubuntu 10.04 and VirtualBox!

  
Download PDF version! (Just skip the ads)

3 comments:

Note: Only a member of this blog may post a comment.