Quantcast
Channel: Knowledge Base
Viewing all articles
Browse latest Browse all 95

How to run Kali Linux in a VIRL topology

$
0
0

@alejo wrote:

How to run Kali Linux in a VIRL topology

This tutorial will show you how to prepare a Debian 8 Linux distribution to run Kali for penetration testing.
Learn more about Kali Linux HERE and find Kali documentation HERE

Prerequisites

  1. VIRL installed
  2. Virtualization software such as VMWare, VirtualBox or other
  3. Connection to the internet

Guide

  • Download and install debian-live-8.2.0-amd64-lxde-desktop.iso and save it to your machine.
  • Using the ISO image create a virtual machine.
  • Allocate at least 1vCPU, 512MB RAM (1GB allows for faster install).
  • A minimum of 11GB hard disk is required, but it is recommended to use 15GB or more.
    • Important: When configuring the Debian virtual machine hard disk, uncheck "split into multiple files" under advanced settings. This must be disabled.
  • During the installation of Debian, use this kali_install.txt (1.4 KB) as a guide
  • Strongly recommend setting LVM option for disk partitioning.
  • Select a network mirror that is in your geographical location for faster package download.
  • Important: Do not install or allow automatic updates.
  • After installation is complete, boot the machine and log in as root using console window of your virtualization platform.

In this section we will install the Kali packages.

Download the kali-install.sh.txt (3.1 KB) script and save it to 'Downloads' directory of the 'root' user. Don't forget to remove ".txt" from the file name.

During installation, you will be prompted for a few settings. Use the kali_install.txt (1.4 KB) file as guide; you will be selecting all the default settings.
The whole process can take approximately 60-75 minutes based on your computer configuration and network speed.
Important: When prompted for cloud-init data source, only select the one named OpenStack Config Drive. No others should be selected.

  • Power off the machine
  • Identify the location of the Kali .vmdk file.
  • Due to the size of the VM image it is highly recommended that you copy the .vmdk file to your VIRL server using 'sftp'.
  • In VIRL, log in to the User Workspace Management interface as 'uwmadmin' and select 'Node Resources' > 'Images'.
  • Click 'Add' and select 'Kali' from the subtypes drop-down list.
  • Set the 'Name/Version' field to read 'Kali'.
  • Select the 'Source' as 'File on server' and provide path to the Kali .vmdk file that you have copied to your VIRL server.
  • Press 'Create' and wait! NOTE: This can take 15min. or more.

In your topologies

  • Select 'kali' icon from the 'Nodes' palette in VM Maestro.
  • Click to add to your topology.
  • Select the 'kali' host in your topology. Set the 'VM Image' by pressing the 'Browse' button for the Node property 'VM image' and selecting 'server-kali' from the list.
  • Set the 'VM Flavor' to 'm1.medium'.
  • Press the 'Build initial configurations' to create the configuration for the Kali instance.
  • Start your simulation.
  • The Kali server will take some time to boot, so be patient. (subsequent boots will be faster)
  • Connect to your Kali server using either 'ssh' or 'VNC' options.

NOTE:
The terminal window in VNC is hard to use - open the terminal window and enter xterm & to get a usable window.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95

Trending Articles