Setting up the Kali Linux VM

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
or

Already have an account? Sign In »

Time
21 hours 43 minutes
Difficulty
Intermediate
CEU/CPE
22
Video Transcription
00:00
module three kelly Lennox basics setting up the Cali Lennox BM
00:06
are running objectives are to understand the types of virtual machines software available to run Cali Lennox no, to download Cali Lennox and run it in virtual box and then explain Cali Linux KVM best practices.
00:17
So hopefully if you're watching this course, you already have some Familiarization with virtualization software.
00:23
Um if you use things like joan hub, what you're gonna need to do is use something like virtual box or VM where to load these virtual machines in. So virtualization is kind of like inception. It's a computer within a computer. You have your host operating system whether you have a Mac or you have Windows
00:42
and then you have a computer within that using this virtualization software which is really just a file, but it's a whole operating system contained within your computer. For example,
00:51
people who analyze malware will do so in a virtual machine because the malware will infect the virtual machine but not the host operating system or or hopefully it won't um
01:03
they're the software that's available is Oracle's virtual box. There's also a VM ware workstation player for Windows. Um there's also pro version, so there's a VM ware fusion for Mac and VM ware. VM ware workstation Pro for Windows, because I do a lot of virtualization. Um I do pay for those pro the pro version of fusion and workstation.
01:26
So I started learning on oracle virtual box just because it's free and it runs on every platform. It runs on Windows, Lennox and Mac.
01:34
Uh and VM ware workstation player only runs on Windows and Lennox VM ware fusion is for max.
01:42
So what you're gonna do is you're gonna want to download your an ISO file from the Cali download web page now, you're not only going to use this for for these exercises, but you'll need these for things like um hack the box or for bone hub
01:57
or for try hack me. That's where you'll run your open VPN software from and and do everything within your virtual machine. Most modern computers are 64 bit. So you'll want to use the 64 bit version of Cali there still is a 32 bit. You'll notice that if you have a Windows uh Windows. Os that
02:16
you need to enable virtualization to run the 64 bit VMS. Otherwise you can only run 32 bit so make sure you look at your bios and you ensure that um that virtualization is enabled.
02:31
So that's the hard way to do. It is to download this is a file. The easy way to do it is to download custom images for virtual box in vM ware from the Cali Lennox website.
02:43
Mhm.
02:44
So again you may need to enable virtualization um you know google that if if you're having issues on how to go through the bios or U. F. I.
02:53
To enable virtualization on your machine, you're gonna need two gigabytes of RAM. Um The virtualization software will share uh will share the memory of your computer. So the VM is gonna be using two gigabytes of RAM. Um and then however many gigabytes you have for your host os it will borrow from that.
03:12
You also need 80 GB of disk space.
03:15
So I'm gonna walk through how to do this, how to download the ISO file and how to install it.
03:21
Yeah.
03:23
Yeah.
03:23
So here we are on the Cali Lennox download site
03:27
You can see here is the Cali leading 64 bit installer.
03:30
And what you want to do is download that is 4.1 GB.
03:35
And that's going to take you some time to download.
03:38
But once you're ready you're going to click new, you're gonna name it Callie Lennox,
03:47
you're gonna click continue.
03:52
You don't want this to be 2GB of RAM. So do 2048
03:59
continue,
04:00
create a virtual disk, hard disk. Now
04:04
we don't want to select the D. I. Virtual box disk image
04:09
dynamically allocated for the hard drive.
04:14
I don't want this to be 80 GB.
04:20
Now we're gonna want to go into settings
04:24
an advanced we want to enable bi directional shared clipboard that will allow us to put things from our clipboard into and out of our VM as well as dragon drop, bi directional so we can pull files into and out of the VM
04:41
For video memory boost that all the way up to 128 MB. Make sure enable three D acceleration is off.
04:55
Okay,
04:56
now we're gonna want to make sure we enable in processor would enable P A N x
05:01
click OK.
05:06
And now we're gonna hit click start.
05:11
So you're gonna want to select the eye so file that you downloaded from the calisthenics website and click start.
05:19
And when prompted. We wanted to use the graphical install.
05:34
Now we're installing a whole operating system. So this is gonna take a while, make sure you have about 15 minutes of free time to download this for me. I'm gonna make sure my my language is English,
05:45
United States for my location.
05:47
American english.
05:48
That might be different for you
05:56
to click out of this warning message.
06:20
Now by default the host name is callie in this case. List name. It cyber very
06:26
yeah.
06:29
Mhm
06:30
Yeah,
06:30
don't worry about domain name. Just click continue.
06:35
And for my user name I'm gonna use my hacker name. cyber, ninja.
06:43
Last for it again.
06:45
I'm going to enter my password.
06:46
Mhm.
06:46
I'm not going to tell you that one.
06:51
Mm hmm.
06:56
Eastern us. Of course. This may be different for you.
07:04
Use guided use entire disk.
07:08
Yeah,
07:09
discuss the one
07:12
All files in one partition.
07:16
Yeah,
07:17
finish partitioning and write changes to disk.
07:21
Right? The changes to disk. I'm gonna go yes. And click continue
07:28
now. It's gonna install the base system. This might take a while. Someone to pause the video
07:33
for software selection. I'm gonna use these defaults and click continue.
07:40
And again. This is going to take awhile. Someone to pause the video again.
07:46
All right. So install the grub boot loader. We will
07:49
make sure we have Yes click continue.
07:55
Go down to DEv sda. Click continue
08:01
now is finishing the installation.
08:15
All right.
08:16
I want to click continue.
08:18
Installation is complete
08:26
now for lucky we should see our Cali Vm buddha.
08:39
It's always nice seeing that. Callie Dragon.
08:43
Okay, so our user name is going to be what we said before. Mine was cyber ninja.
08:50
Hopefully you remember your password
09:00
now. You should be able to resize your window because we the guest edition should be installed by default um in virtual box so you can resize your window. You can maximize it. But here we are with successfully installing Cali Lennox in virtual box.
09:16
That's the more difficult way to do it. I want to show you the easier way now.
09:22
Mhm.
09:24
Some of the download Catalans virtual images. These are custom images. I want to make sure I go to Cali Lennox Virtual box images. There's also a VM where I chose the 64 bit O. V. A. And we'll go back in here to oracle virtual box manager and what we would want to do is import that image.
09:43
So I'll import the appliance.
09:46
I'm going to go to the Ova that I downloaded,
09:52
click continue
09:56
and you'll see it already uh adds all the configuration details here, click import,
10:01
agree.
10:07
And as opposed to the other, install this one takes a lot less time but I'm gonna pause the video here.
10:15
All right now if we click start here
10:18
we'll see we get an error. So let's read. Why?
10:22
So implementation of the USB 2.0 controller was not found.
10:28
If we go into settings
10:31
You can go into ports and USB you can see it's 2.0 let's make that 1.1
10:39
and let's start this again, see what happens
10:46
and you can see that fixed the air.
10:50
So these images have user Cali and password Cali as default as opposed to the other installation where you've got to set your user name and password.
11:01
So if I enter Cali
11:03
and Callie
11:05
we should be able to log in
11:09
now. We're gonna mess with virtual machines a lot more so I'm gonna save a lot more detail until later. But you can see those are basically the two ways to install the Cali Lennox Vm.
11:22
Another good practice is to make a snapshot of your VM. This just basically allows you if something happens to your VM to go back in time and go back to that snapshot it does take up some memory so be careful with how many snapshots you make. But if you successfully install your kelly Vm you might want to go ahead and make a snapshot
11:41
just in case if something breaks later on.
11:46
So some best practices take frequent snapshots of your VM. So you can revert if something happens, you're gonna want to update because this is Lennox, you're gonna want to update and upgrade your VM frequently your Cali VM
11:58
decide if you want to use the root user. Um the users that we saw back there with callie and cyber ninja, those are non root users, so you have to use Sudo a lot to do with super user permissions.
12:09
Um the older Cali VMS had route by default. So that's how I have mine configured is just using Root. It can be riskier because there's a lot more at stake running things as the root user um make sure the guest edition is installed. It does that by default with the eye so um and the ov a file
12:28
And you also want to make sure you set your shell, your terminal to infinite scroll. I think it sets it at 1000 by default. But a lot of these tools that will be running um will be lines and lines and lines and lines in the terminal and we'll cut off. So it's always a good idea to set your terminal shell to an infinite scroll.
12:48
So in summary,
12:50
we covered understand the types of virtual machine software that's available to run Cali Lennox uh now you should know how to download Cali Lennox and run it in a in virtual box. And we also explained some of the Cali Lennox best practices.
Up Next
Offensive Penetration Testing

The Offensive Penetration Testing course opens the doors to those wanting to begin a penetration testing career. This course will prepare learners to begin their pentesting career journey by understanding what tools, techniques, and resources are available for someone starting out in offensive penetration testing.

Instructed By