VirtualBox and Windows

I thought of writing this post after the installation of Windows 7 in VirtualBox. This may be old news for some guys out there but still this can be new to some.
As I have told you earlier I don’t use Windows, Ubuntu dual boot anymore, now I solely depend on Ubuntu, it’s not that I hate windows but I’m uncomfortable with it 😉 ok now lets get down to business.
First you have to install VirtualBox, to do that go to Applications -> Ubuntu Software Center and on search type VirtualBox and press install to install. After the installation go to Applications -> Accessories -> VirtualBox OSE and that will start virtualbox.
At first you have to create a new machine you can do by clicking on the light blue color new button after clicking on that you’ll get a window like this;

Create New Virtual Machine

so there you have to enter the name of the OS (You can give any name you like) and you have to select the OS type then after pressing next you’ll see a window like this;

Base memory

and there you have to select the base memory that means the RAM so the greener part of the bar shows the size that is available for the virtual machine. Let me explain this a bit, in my laptop I’m currently using 2.5Gb of RAM, that is shown at the end of the bar, that means for the host OS that complete capacity is available. But as I’m trying to run two operating systems at once I should be able to share the RAM so the greener part of the bar shows the safe side or the safe capacity that I can use and approximately its about half of the total capacity. So its better to stay on the safer side then you can use both the OSs without any problem (hope you got what I’m trying to say if not put some comment on that I’ll explain a bit more 🙂 ). Now after pressing next you’ll get a window like this;

hard disk

Here we have to select the hard disk that means the virtual hard drive so now you have to create your first virtual hard drive (hope you are doing this for the first time). I’ll go to the creation of hard disk in a bit till then lets look at the final image of our virtual machine creation process.


Now in the above image we can see the hard disk size is 20Gb and base memory is 955Mb etc.

Lets take a look at the creation of virtual hard disk. Ok now after selecting create a new hard drive and clicking next you’ll get a window like this;

create hard disk

In the above image we can see there are two radio buttons,

#Dynamically expanding storage :- That means the size of the hard disk will grow as you install more softwares and when you download more data. When you use this option make sure you have enough space on your physical hard drive.

#Fixed size storage :- This means the size of the hard drive is fixed.

After selecting the option you want click next then you’ll get a window similar to this;

harddisk name and size

In the above image I have given the name windows 7 and the size was given as 20Gb. Now in this case if you select dynamically expanding storage the whole 20Gb wont be allocated at once it will be allocated as the memory fills but if you use fixed size storage then 20Gb will be allocated at once. Therefore you have to allocate space according to your need. In the image you can see there is a little folder icon next to the textfield but clicking on that you can select the location of your virtual hard drive if you don’t change the path it will get saved in ~/..VirtualBox/HardDisks. After clicking on the next button you’ll get a summary like this;


Ok now we are done with the creation of the machine and you’ll see your virtualbox window like this;


Now it’s time to install the OS. Before doing that there are certain configurations you have to do. First of all you have to select the new machine you created and click on the settings button and from there when you click on General you’ll see a summary of what you have done so far. Now go to system and check the boot order here you can change the base memory once again (if you really need it). The image below is a screenshot;


And after that click on Storage if you are installing the OS using a DVD or CD image then you have to give the path of the image you can do that by selecting the CD icon in the storage tree and on the Attributes you have to click on the little folder icon and browse the image file. If you are planning to use the host CD/DVD drive you have to select the Host CD/DVD drive from the CD/DVD Device dropdown menu like the image below;


Now network settings, click on Network and click on the enable network adapter and cable connected check boxes and that will enable networking (and also remember you have to install samba server on ubuntu “sudo apt-get install samba”). After installing the OS you can access all the shared “Folders” in your computer by typing // on Run (For windows).


And now we are good to install the new OS after installing it will look like this;


After installing Guest Additions you can have a full screen view like the image below;


You can install Guest Additions by going to Device -> Install Guest Additions in the window which you get after clicking on the Start button. Now its your time to do your experiments.

Hope this was helpful
bye for now
have fun 😀

~~ Rusiru Boteju ~~


About Rusiru Boteju
A peculiar or otherwise odd person, especially one who is perceived to be overly obsessed with one or more things including those of intellectuality, computers, technology, etc.

3 Responses to VirtualBox and Windows

  1. Pingback: anyone know alot about computer history and just plain computers? | Cheap printers

  2. amit thakur says:

    nice man!!
    but how it is possible in window xp or 98

    • what do you mean by is it possible in windows xp or 98? you can install both OSs in VirtualBox and as far as i know there is a version of sun virtualbox to windows xp i mean an exe so if you are not using ubuntu you can try the same on xp 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: