b. If you don’t have image file(.iso) of second OS you need to install then download image file of that operating system you need to install. To download Ubuntu image
e.g Here my host operating system is Windows 7 and we are installing Ubuntu.
Steps 1:Installing Virtual Box and going inside
After you launch Virtual Box from Windows start menu,click on New to create a new virtual machine.
when the New Virtual Machine Wizard appears,click on Next.
Step 2: Give your machine a name. If you are installing Ubuntu, it makes sense to call it Ubuntu.
Select your Operating System (Linux) and version(Ubuntu) as shown below:
Step 3: Allocating RAM to your virtual machine.
Virtual Box will automatically guess how much of your primary memory(or RAM) to allocate for the virtual machine. If you have 1 GB or less RAM, then its better you go with recommendation.
But if you have 2 GB of RAM, 512 MB is fine to allocate.In the same way If you have 4 GB of RAM, you can allocate 1 GB.
If you are confused with how much RAM you need to allocate then leave the default recommendation and click NEXT.
Step 4 : Creating Virtual hard disk
You need to create new hard disk if you are first time using Virtual Box and Click NEXT.
Click NEXT again.
Step 5 : Select Virtual disk storage details
Explanation: A dynamically expanding virtual hard drive is best, because it will take up only that much space what you actually use.
Opposite to this Fixed storage allocates fixed memory.
Step 6: Select Virtual disk file location and size
In the location part click the browse button and select different location if you want to change the location of virtual image file.Here if you plan to install some software later in Ubuntu then choose more space ,overall installation of Ubuntu will be less than 3 GB.(Here default 8 GB is recommended).Click NEXT
Click Create to create virtual disk after you get same details like in the screenshot.
After that You will see something like this and wait for the virtual hard drive to be created.
Step 7: Perform the steps given in the screenshot below The next thing we need to do is to make the(blank) virtual hard drive useful is to add the downloaded Ubuntu disk image(.iso) file boot on your virtual machine.
Click on Settings and then Storage.Then, under CD/DVD Device,next to Empty, you will see a little folder icon.Just click on that:
Step 8: Give location of Ubuntu Image File
Now you have to select location of where you have put your downloaded “Ubuntu.iso” file
Once you click OPEN just click on OK.
Once you click OPEN just click on OK.
Then double click on your virtual machine to start it up.
Step 9: Entering Inside Machine
Now you will see some warnings or instructions about how to operate guest operating system within Virtual Box. Read those once and then mark not to see those again.
Now you can wait for some time for Ubuntu to boot up
Step 10: Ready to Install Ubuntu We are ready to go ahead with installation of Ubuntu just like we are doing on some physical machine.
There will be no changes in installation procedures in virtual machine also.
Step 11: Last and Important step to remember and take care
After you installed Ubuntu,in order to use your virtualized installation(instead of continually booting from that image file),double check that the CD/DVD Device entry is empty again.
In the same way you can create multiple virtual machines if you have enough RAM and hard disk available to you and also you can add any other OS as a guest operating system by following the same steps.
Ravi Yadav is an Android developer whose passion is to develop Android applications and sharing his work. He loves to post the tutorials which he created while learning any new latest technology topic.He loves to share about the latest technology happenings and other tricks that will be helpful for readers of Askfortricks.