Thursday, October 25, 2012

Feel Ubuntu: Ubuntu on Virtual Box

ubuntu virtual box
Today I will explain you how to use Ubuntu with virtual box. Virtual box allows you to have one or more virtual PCs. You can learn about virtual box by my previous post. Many of people are afraid o install Ubuntu directly on their PCs as it may effect on the performance of the system and it may occur some errors. But using virtual box you can use Ubuntu without any risk. 

you will need following things,



First of all you have to install Virtual box. Then open virtual box. Then click New button



virtual box

Then give a name and select Operating system as Linux and select version as Ubuntu. Now click Next
Ubuntu oracle virtual box


Now you have to select Ram size. I  left it as default. (512 MB) Then click Next
linux virtual



Now you have to allocate space for you virtual machine. Select Create new hard disk option and click next
linux on virtual machine


now select VHD(Virtual Hard disk) option and click next
installing ubuntu virtual box


Here you have to select whether your allocated space is dynamically allocated or fixed. If you select dynamically virtual hard disk will increase its size when you are storing more files. But maximum size is the amount defined by you. If you select fixed size then it will allocate whole amount selected by you initially. I will use dynamic allocation here. then click next. 
Virtual hard


Now select the space needed for virtual hard disk I use 6GB here.

virtual hard disk


Click next. then click Create button on next window to create virtual machine. Now you will have a screen like below and your virtual machine will be listed on the window. Now you have to mount Ubuntu image on virtual drive or insert your Ubuntu CD. You can use Virtual clone drive for this. It is a freeware. You can learn how to mount images using virtual clone drive from HERE.

Now select Your virtual machine name (in my case it is Ubuntu) and click on start icon on the top pane.
virtual machine linux


Now you will be come up with a window like below. Click Next.
virtual pc for linux

Now you have to select the virtual CD Rom where your Ubuntu image is mounted form next window. After selecting the drive click Next.
linux virtualization

Then click Start button from next window. Now you will get a screen like this. wait there until it loads.
virtual pc linux

Then you will get screen below. Click install Ubuntu from there.
installing ubuntu with virtual box

If you are using a laptop you have to plugged to a power source to continue from here. Also your virtual hard disk allocation must be at least 4.4GB (I am using Ubuntu 12.04, it needs at least 4.4GB) Next window will ask for above requirements. Also it asks about internet connection. but no need to have a internet connection at this stage. After fulfilling these requirements click Continue


download virtual box ubuntu


Then select option Erase disk and install Ubuntu from next window. Don't be afraid to select this option. As this is a virtual machine original data in your PC is safe. Then click Continue
oracle virtual box

Then click Install now from next window
virtual box on ubuntu

Now installation starting. You can configure your location, Keyboard layout, user names and passwords while files being copied.

After that Ubuntu is installing.Below is the Ubuntu installing screen

ubuntu on oracle virtual box


Then you will asked to restart the machine. click restart and remove your Ubuntu CD from the tray or unmount Ubuntu from your virtual drive.
Then PC will restart and you will be prompted with this screen. Enter your password and log in to Ubuntu.

ubuntu login

Congratulations. Now you have successfully installed Ubuntu on a virtual box virtual PC. Now you can feel the real Ubuntu experience while you are in windows enviorenment or any other enviorenment. Hope this post may help you. Please leave your ideas as a comment. It will be great help and encourage for my future posts.

Also feel free to ask any questions by comments. 

Thank you and happy Ubuntu experience.

Related : ubuntu, linux vitual machine, linux virtualization,

2 comments:

  1. How to change the resolution?
    I want to increase the resolution of ubuntu greater than 1024*768

    ReplyDelete
    Replies
    1. You'll need to install the VirtualBox Guest Additions. Go to the VirtualBox menu and choose "Devices" and then choose "Install Guest Additions." These guest additions add the features that you need.

      Delete

Related Posts Plugin for WordPress, Blogger...