Popular Posts

Sunday 12 March 2017

Personal Training Environment

Companies are looking for young professional who are self motivated and have skills to learn the
technology without/limited training. To survive in IT companies we have to learn. There are many
documentation in internet about the technology. But reading won't help when we face real time issues
 in projects. We should learn and practice.

Each one of us should have their personal training environment, To practice and to apply their ideas.

Buying a server is costly, but we can simulate the servers inside our laptops/desktops using
 virtualization. Oracle virtual box is one of desktop virtualization technology, used to virtualize
 windows, Linux operating systems.

I would like to share the knowledge about oracle virtual box.

1. Oracle Virtual Box installation and configuration
2. Creating Virtual machine in Virtual box
3. Installing Windows machine in Virtual box
4. Virtual Networking
5. Cloning Virtual machine
6. Virtual machine maintenance
7. Virtual machine Backup
    
This posts will help to know more about Virtual box.

Keep learning..

Here is another hands on documents for your reference.

8.  Install CENT OS 7 in Virtual Box
9.  Install Kali Linux in Virtual box




Saturday 11 March 2017

Install Kali Linux in Virtual box


Kali Linux used for penetration testing, persons who are learning ethical hacking prefer the kali Linux for hands-on.
Kali Linux have many built in programs for penetration testing and for ethical hacking. System security advisors and ethical hacker use kali Linux
to find out loopholes in system.

We can install kali Linux in virtual box and can use for our testing and hands-on.
Let us start to install kali Linux.

      Make sure you installed the Virtual box and virtual box extensions. To install virtual box, refer my previous posts




  1. Download the kali Linux file.


  1. Click New button to create new virtual machine.


  1. Select Type as Linux and version as Debian(64-bit). And click Next.

  1. Choose Minimum 1 GB RAM.  And click Next.
  1. Choose Create a virtual hard disk now. And click Next.

  1. Create Hard disk file type as VDI. VDI is native format of virtual box. We can increase it size if required. And click Next.

  1. Choose Dynamically allocated and click Next. (Dynamic allocation wont consume entire at the time of creation)

  1. Select Minimum 20 GB virtual hard disk space, otherwise kali Linux installation may fail.
  1. Change the boot order as below.
  1. Choose the video memory size for the kali Linux.


  1. Add kali Linux ISO file as CD/DVD and check Live CD/DVD. This CD will be used to boot kali Linux.

  1. Choose network adapter as Bridged adapter, So that our virtual machine will able to connect internet using a public IP address.


  1. Enable USB controller.  And USB device by clicking button. I added my external wireless adapter, it will be attached to kali Linux. And kali Linux can use the wireless adapter.
And click OK.


  1. Click Start button to start the machine.


  1. Choose Graphical Install mode.

  1. Choose the language. And click Continue.

  1. Select your location. And click Continue.

  1. Select the keyboard type. And click Continue.


  1. Bridged network adapter and wireless adapter listed in the screen. Click Continue.

  1. Provide the hostname.



  1. Set the root password. And click Continue.


  1. If disk size is small the other partition types will fail at the time of installation. So make sure you selected Guided – Use entire disk.


  1. Select the hard disk.

  1. Select the first option, Otherwise installation may fail due low disk space.
  1. Click Continue.

  1. Choose Yes and click Continue.


  1. Use network mirror as No. We don’t require to configure the online repositories now.
  1. Choose Yes to install GRUB boot loader. And select the hard disk to install.


  1. Installation completed successfully.


  1. Change the boot order after installation in virtual box settings.

  1. Start the virtual machine. Login as root.


IP is assigned from the local WI-FI router.

  1. Click the button in kali Linux and choose the wi-fi network to connect.

      Kali Linux installed successfully and wireless network configured. Further we can use kali Linux for your penetration testing.
     If you face any error like below then it is due to partition type you selected. If disk have too many partitions, then system install will fail.



Install CENT OS 7 in Virtual Box


Cent OS is one of most popular Open source Linux distribution. CentOS is fedora based Linux distribution. Many webservers in the market are based on CENT OS.
Personally I use Cent OS in work(Automation) and to build any web based applications. We will get many references to install and configure CENT OS in web.
To learn Linux also it is very good choice. Many of them wants to learn Linux but they don’t get servers for their practice, in case of that they can install Cent OS in virtual box and practice.
Come, we will install Cent OS in virtual box.

  1. Download the Cent OS from cent OS official site https://www.centos.org/download/

  1. Make sure you installed the Virtual box and virtual box extensions. To install virtual box, refer my previous posts


  1. Open Virtual box, and Click New button.


  1. Choose the OS Type as Linux and Version as Red Hat (64-bit). And Click Next.
  1. Select RAM Size minimum 1GB. And Click Next


  1. Choose Create a Virtual Hard Disk Now. And click create.


  1. I prefer the file should be VDI. So that in future I can increase the virtual hard disk size.
Select Hard disk type and click Next.


  1. Choose Dynamically allocated. So that disk file size will increase based on the usage. Click Next.
  1. Select VDI Size and Location. And Click Create. Make sure disk location have enough space.


  1. Go to Settings of newly created machine. Change Shared Clipboard and drag n drop to Bidirectional in General section.


  1. Change boot order, keep optical disk in up and keep Hard disk in next.


  1. Give the video memory up to 128 MB.


  1. Choose the Cent OS ISO file as CD. And enable Live CD/DVD check box.


  1. Keep Network Type as Bridged Adapter (Choose this type only when your router can provide one more IP address for your virtual machine).
Otherwise choose network adapter as NAT.


  1. Add shared folder to copy files between host and guest. And Click OK.


  1. Click OK now.


  1. Now start the Virtual machine by clicking start button.


  1. Choose Install CentOS Linux 7. Use right ctrl button to come out of virtual machine.
Choose Language English and click Continue.


  1. Date and Time, keyboard and Language support was selected automatically for me. If you want to change, select specific option and change.
I will change Hard disk partitioning and Network settings.
Click Installation destination.


  1. Select I will configure partitioning and click Done.


  1. Click on  ‘Click here to create them automatically’.


  1. Change the partitioning as required. I added one more partition with 2GB. And Click Done.


  1. Click Accept changes.


  1. Click on Network & Hostname .

  1. Change the hostname, and click ON near Ethernet option. Click Done.


  1. Change software selection to GNOME desktop. Click Begin Installation.


  1. Set the root password.



  1. Click Reboot.


  1. Accept the License and click Finish configuration.




  1. After some welcome screens. You can login to the cent OS 7. Devices option and select Insert Guest Additions CD image.
(Use right ctrl + F to get menus, if you didn’t see them)


  1. Click Run to run the guest Additions.



  1. Guest additions failed because some prerequisites were not there. Connect to the machine and install following packages.

Yum install gcc
yum install kernel-devel
yum install kernel-headers.x86_64

Login as root right click on guest additions CD and choose open in terminal.

>export KERN_DIR=/usr/src/kernels/3.10.0-514.10.2.el7.x86_64
>./VBoxLinuxAdditions.run



     And reboot the system.
    After reboot the shared drive mounted automatically in /media. And shared clip board is working.
  
  1. Check the IP address of the machine.


IP address from my Wi-Fi router is assigned to the virtual machine. So that my virtual machine can access the internet.

Check network connection.

        Now you can connect Cent OS using putty.
       And we successfully installed and configured Cent OS in virtual box.