Popular Posts

Wednesday 16 March 2016

Creating Virtual machine in Virtual box

We can install Windows or Linux based OS in virtual box.

Let us see how to install Fedora Linux 20 in virtual box. Please download Fedora 20 ISO file from Fedora site https://getfedora.org/.


Open Virtual box.


Step2: Click New button.




Type Name for virtual machine, OS type, Version and click next.




Choose RAM size for your virtual machine. Don’t allocate more than 60% of Ram to your virtual machine.
It will slow down your host machine.




Choose ‘Create a virtual hard drive now’
And click ‘Create’.




Choose hard drive file type.
Choose VDI or VMDK, this formats are supported by other virtualization software.
Click Next.




Choose ‘Dynamically allocated’, this one will allocate memory when virtual machine is utilizing the space.
Fixed size will allocate all memory at the time of virtual machine creation.
Click Next.




Choose Disk location and Disk size of virtual machine.
Click create.




Click Settings → Network. We are going to set network settings for the virtual machine.
So that virtual machine can access internet and we can connect to the virtual machine using SSH utility.


Click ‘Port Forwarding’.


Click Add new rule button   .
Enter 22 in host and guest port. And click ‘OK’.


Now we will attach Fedora CD drive to the virtual machine.
Click Storage button in Settings window.




Click   button to add CD.


Click ‘Choose Disk’ and select your Fedora ISO File.


Click Ok Now. Click Start Button to start the virtual machine.


Click Install to Hard Drive.




Choose the language.




Click Begin Installation








Now Fedora was installed in virtual machine.
Remove the ISO file from virtual machine.




Now start the virtual machine.
Let’s do some post installation checks.
Check the IP address of the virtual machine.




Try to connect internet from your virtual machine.




Try to connect your virtual machine from Host using SSH.


From virtual machine:



Check SSHD status. If it is not up, bring it up.




From Host:



Download any SSH client for windows. For example putty.
You can connect to your virtual machine using your virtual box network adapter. In our case we have two adapter (192.168.56.1 and 192.168.57.1)
You can use both adapter to access the machine.
Remember we added port forwarding rule, that one should be mandatory.




Now we finished Fedora 20 installation and we are able to connect virtual machine from host.
We will see more about virtual box networking in my next post ‘Virtual Networking’.















No comments:

Post a Comment