Wednesday, May 20, 2015

Computer Lab? || In a big room? || Or in a computer Itself?

 Introduction to Virtual Machines.


Hey, Its Budhaditya the Tech guy again, And I am here today to introduce you to something awesome here. Its every tech guy's dream to have multiple computers interconnected in a room, May be software testing, Different OS choices, Penetration testing etc. But what if you don't have funds like me?
|
Here I come to introduce you to Virtual Machines....
|
So What are they? They are emulated hardware platforms where you can install almost all existing operating systems without even paying a penny (Optional).
Two years ago, I wandered what Virtual Machines were? You know techie movies always have these names? For example, Untraceable, Hackers, Algorithm. etc. Now I am the one using 4 Virtual Machines at a time.
|
Some Names, - Oracle Virtual Box - Free, VMWare Workstation - Free Player and Payed Full version Workstation, Windows Virtual PC - Also free.
|
Requirements, -You Need 3 Main Things - Good Hard Drive Space, Great Processing Power, Intel - i5 - i7 Would be great, and a hell lot or RAM. Preferred 16 GB.
|
Another thing you must have is a Virtualization enabled CPU. You must enable it from Bios. It will be on bios as either VT-x (Intel) or AMD -V (AMD).
|
What I Personally use? - Oracle Virtual Box. Why? its Free.
|
How to set it up?
- Setting up any Virtual Host Platforms are pretty same. I will be showing today's example with Virtual Box.
Download link - Click Here
We need another addon called Virtual Box Extension for USB2/Intel PXE Rom/Guest Options etc - Talking about this later.
Extension Download Link - Click Here
|
Installation - Installation is pretty easy. Just run the Setup.exe and follow on screen instructions until successfully installed, And after The main package is done, Install the Extension pack, And now you are all set.
|
Creating and Installing a Virtual Machine. -
Download the OS Image file you wish to try/work/test. Or You can use bootable USB, Or just an old school CD/DVD. I Suggest using Image options for better speeds.
|
Follow The Images.

Open up Virtual Box, And Create NEW by clicking it.


In the Create New Virtual Machine Menu,
Name your VM,
and Select Kernel type and version
Select adequate amount of RAM,
based on OS requirements
Create a new Drive.
 There are other options for adding a drive manually later.
Choose VDI (default)
VDMK will also be compatible VMWare
Rest are rare and developing based.
I suggest to go with Dynamic Allocation,
Advantage on Dynamic over fixed is, After you setup a specific disk space, Dynamic Allocation will limit the drive to that space, but will fill up as per Data usage unlike Fixed. Fixed will just cut off a specific size from the HDD, which is not very economical.
Set the dynamically or fixed allocated disk space,
according to OS requirements.
After you click the last "create" button,
Your VM is now ready to be setup.
Click and go to the newly created VM's properties, and setup according to following images.
Until you want to leave your VMs completely unattached with host,
Enable these. Shared clipboard means, You can copy paste from host to guest or vice - versa
And Drag'n drop means, you can transfer files with simple Drag and Drop.
Leave rest options as default.
Boot Order is pretty important, As you need CD/DVD to boot your VM up
RAM adjustment can also be done here.
On to the next tab, is the Processor.
Leave execution cap as default. 
Now, If you have multi core CPU, and if you are going to do heavy CPU consuming jobs on VM, I suggest to increase Core count. 2 cores for Windows 7 is okay. 
Very Important - Enable PAE/NX. 
PAE lets to Above 4 GB usage of RAM on 32 Bit Operating Systems.
NX protects RAM From Random execution of Malicious Codes.
Some OSes need it, Some Don't. If OS Boots up without PAE/NX then no need to enable it.
If you are gonna use GUI VMs and t do basic Graphical jobs, I suggest to enable 3D Acceleration and Giving the full video memory. If you want to use multiple monitors, Just increment the monitor count.
This Part is important.
Networking - NAT means Network Address Translation which breaks down one IP Address to several internal IP Addresses to be used by multiple terminals. VirtualBox has NAT Built in.
Bridged will be another main option, Bridged will make your VM another machine on your Router.
So before you select Networking modes, Know what you want to do.
And You can also use multiple adapters, and can use both NAT and Bridged.
Others are Host Only, Internal NAT, etc. which are not for Web Connections.
In this Shared folders stage, You can define a specific folder/drive to be used as network drive from VM. You can check read only, So you can just read/ and copy files from Shared drive to VM, But in unchecked mode, You can read/write the drive. And Checking Auto-mount will automatically mount the drive for VM use.
After you are done with settings, Start your VM and it will wait for Disk. Select Real DVD/CD or virtual image drive. And after that. You are ready for as usual OS installation like as it would have been in a real host machine.


After Installation - After installation, Mount Guest Additions Disk from devices tab and install required drivers including Guest. Its easy on Windows systems, And if you want the same in linux,
This is the link to another of my blog posts about just "Installing Guest Additions on Linux"
Link - Click Here

Conclusion - Until your computer is Super fast, Do not expect to get smooth Virtual Experience. Virtual Machines will not be as fast as host, Host will be slowed down, Processor will be at peak, But you got your own lab right in your PC. 
|
This tutorial was a request from a fellow friend RKZ. 

THANK YOU


1 comment: