 Welcome back everyone today. We're going to be installing an operating system inside the program virtual box and virtual box is a Piece of software that lets you basically create virtual computers or You know virtual machines inside your own computer So here I have my operating system that I'm running now and I want to run a different operating system But I don't want to install it alongside my main operating system. So I can run a Virtual machine and basically have a computer inside a computer. You can think of it that way and Today we are going to be installing an another version of Linux inside our virtual Virtual machine or inside virtual box And the version of Linux we're going to install is called Kali Linux, which is used for Penetration testing and also sometimes for digital forensics. So the first thing you need to do is download Virtual box if you don't have it it's basically free for Linux OS X and Windows And it works quite well and most of those operating systems and I you also need to download Kali Linux and I will put the links For Kali Linux and virtual box inside the the description bar I am on a 64-bit host system. So my computer that I'm using is a 64-bit system. So you want to Choose the version of Kali Linux based on the system that you're actually on and also based on the interface that you want to use So for example, I'm going to be using just Kali Linux 64 bit and we're going to download the ISO and I've downloaded it from a torrent I won't talk about how to download those from a torrent here But I am using Kali Linux 64 bit you can use anyone that works for your system In this case, it's just basically the interface that's different or the the build that's different. Okay, so once we have that downloaded Virtual box manager will look something very similar to this so once you know where your your operating system ISO is and an ISO is a disk image. That's basically a representation of a CD or a DVD I've already downloaded mine into the downloads folder. So now that I know where it is I want to start creating the virtual machine So I want to click on new make a new virtual machine. I'm going to call it something very specific So in this case, I can just call it Kali Linux So Kali Linux and you notice that Virtual virtual box automatically detects the type as Linux if it didn't detect the type as Linux Make sure that you choose Linux from the type menu now. We have a couple different options Make sure you're choosing Linux if you're using Kali Linux if it's Windows you can choose Microsoft Windows, etc Okay, and then the version. This is just basically using a general version Kali Linux is based on if I'm not mistaken a bun 264. So I'm going to go ahead and choose a bun 264 But you can choose for example, just the generic generic Linux 2.6 3x 4x We want to make sure that we select 64 bit because I'm using a 64 bit ISO image on a 64 bit host system if my computer if my main computer is a 32 bit system then I need to choose 32 bit for both the ISO and the virtual machine that we're creating so don't try to run a 64 bit system on a 32 bit host Okay, so in this case my computer 64 bit and I also want the virtual machine to be 64 bit So I'm going to choose a bun to 64 bit. So I've called it I've given it a unique name Kali Linux The type is Linux and the version is in this case a bun to 64 Okay, so I'm going to click next and I'm going to give it as much memory as you can the more memory you give it the more Let's say realistic or the more resources that the virtual machine will have to work with So I'm going to give it six gigabytes of RAM in this case. I have 16 gigabytes of RAM total You don't want to basically for your own computer You want to make sure that you do not go much above this red area? Okay, so give it as much RAM as you can but don't give it much above this this red area now in this case our virtual machine is Sharing resources with our host Okay, so think about that for a second the more resources we give our virtual machine the less resources our host will be able to Use at the same time, right? so if we give it too much too many resources in this case if we give the virtual machine too much RAM then we're taking RAM away or We're using too much of the hosts memory and the host won't be able to sustain itself. So try to strike a balance between How well your virtual machine works and how well your host works? Okay, so once I've given it the amount of memory that I think I'm going to use not I click next For the hard disk we are going to create a virtual hard disk And I'm just going to keep the create virtual hard disk now Selected the recommended size is 8 gigabytes, but I'm going to give it more than that In a second. Okay, so we click create to create the virtual hard disk Hard disk file type you can choose basically any type you want, but if you're not going to Share this this virtual hard drive with other systems just choose VDI or the virtual box disk image Okay, and that's that's just defaults. It works quite well Okay, now we need to decide whether it's going to be dynamically allocated or a fixed size If it's a fixed size then the disk will be completely Allocated right now. So we will create a file that becomes the virtual hard drive and it will be Allocated completely Right now if it's dynamically allocated then it will be allocated Or the disk file the file size of the virtual disk will grow as the files are as the space is actually used on The virtual hard drive so the more files you have on the hard drive The bigger the file will get to a certain maximum size But if we use fixed size then all of the space is used right now So unless you're going to use a lot of space on your virtual disk Which you know may all depending on what you use it for you might use a lot of space But I normally choose dynamically allocated so that way I can save some space on my host At least for a little bit until I fill up the hard drive in the virtual machine Okay, so I'm going to choose dynamically allocated and click next The site are the name of the hard disk and also where it's located. I've already moved the location or the Let's say virtual box creates a default location for where the virtual disks are saved If you want to change the location just make sure you change it to a place That has enough space. So for example, if I give If I say that this virtual hard disk is going to be 8 gigabytes then my host storage Device has to be bigger than 8 gigabytes, right? So we can't make a virtual hard disk that's bigger than the actual Physical hard drive that we're saving something on. Okay, so right now on my hard disk I think I have about one one terabyte free. So I'm going to go ahead and give this 64 gigabytes whoops 64 gigabytes of space I don't really expect I'll need more than that because I normally share The hard drive on the host with the hard drive in the the virtual machine Depending on what I'm trying to do. So 64 should be okay for me for now Choose however much space you think you will need again. You are sharing hard drive space With the virtual machine and with your host. So think about how much space do you have on your hard drive right now and How much space do you think the virtual machine will need? by default this one recommends 8 gigabytes, but I think I'm gonna need at least 20 to 30 gigabytes for this this Cali Linux system So I'm gonna give it 64 just because I do have the space available And I want to give myself a little bit of room in case I'm doing something that needs a little bit more space So again, think about your host and think about the virtual machine What what you might need to run or might how much space you need then click create and now the virtual hard drive is created And now we need to go through and make a few changes to this So I'm gonna click on the general tab Okay, so general tab and then we basically have everything that we've already set and I want to click advanced I can see where my my snapshots folder is I can see whether shared clipboard and drag and drop are in this case disabled I'm gonna keep that there for now description. I don't need a description innate encryption I don't need to enable encryption on this. It's actually already encrypted on disk Okay, so if we go to the system tab or the system menu bar You can see the boot order. This is kind of like the the BIOS or yeah, this is the BIOS essentially And we have the amount of RAM so we can still change than the amount of RAM so this gives you a place to be able to Let's say experiment with your system and Your your virtual machine if your virtual machine is taking up too much memory or it doesn't have enough memory you can go into the system settings and Change the amount of memory that it's using Some operating systems Yeah, some operating systems need to configure these extended features we won't talk about that now because we don't need to do it The boot order we will be pretending to use a we have a virtual CD-ROM Basically this ISO file that we downloaded is a virtual CD-ROM So we need to think about the boot order and make sure that this is at least checked And we also need the hard disk checked We do not need in this case the floppy, but I'm gonna keep it on anyway One of the important things is the processor. How many processors do you want to use? So I have eight CPUs in this computer. So for my host I have eight I'm gonna give the guest the guest or the virtual machine four of those processors now again We don't want to really go into Too much of the processing power of the host otherwise our host will not work very well Execution cap is how much of the processor the guest can actually use So in this case I give the guest four processors and it can use 100% of those four processors Okay, next acceleration. We don't really need to to mess with here Okay display if you're planning on playing any games or anything like that You might want to bump up the virtual memory here But yeah, basically, we don't really change display too much unless you really need to You can also do video capture within the virtual machine and remote display as well We're not gonna touch that too much. Next is storage and this is where I need to to configure Or tell the virtual machine to use Cali Linux ISO to boot from initially So here I do controller IDE select empty Select the CD ROM and choose virtual optical disk file now inside my downloads folder. I have Cali Linux 16 to AMD 64 ISO. So this is a 64 bit. Okay, I click open and now the controller IDE Cali Linux 2016.2 AMD 64 ISO has been selected. So now this is It's almost like putting in a CD into your computer Okay, so we have a CD in the computer right now and we also have this virtual hard drive that we've already created Okay audio. We don't really need to mess with Network I will change right now. It's attached to NAT and that means that this computer my host computer is Basically going to take care of the the network connection for the guest computer So on the network on the real network The host computer basically handles the traffic for both the host and the guest But I want a bridged adapter and the bridged bridged adapter basically tells me or gives the This virtual machine direct access to in this case this wireless card So the wireless card that's installed in my computer right now. I want to give this Virtual machine direct access to that wireless card. Okay, so I'm going to change the network to bridged adapter Give it direct access to the wireless card. The other card is my wired connection serial parts USB shared folders and user interface We don't really I mean I hardly ever use serial ports and USB We can add USB devices to the virtual machine just like normal We can also add shared folders and I would configure this after I install guest additions into The virtual machine that we create so shared folders basically lets me share files between the host and The virtual machine so it is very useful, but I won't configure it right now and that's pretty much it for the configuration just think about the resources that you're using and think about the The network connections and how you want your virtual machine to actually connect through the network So now we click on Cali Linux. It's powered off click start and And then we get Cali Linux booting up if you don't get Cali Linux booting up it could be because you either didn't insert the disk correctly or The boots order or the boot menu wasn't wasn't installed correctly Okay, so Cali Linux should boot up and then it says live AMD 64. We have forensic mode We have USB persistence encrypted persistence And I am going to go with install Actually, I'll just go with the graphical install so we can see it So the graphical install here I can boot the computer and use all of the functions of Cali Linux in a live CD without actually installing it inside my virtual machine But right now I actually want to install the system. So I'm going to go to graphical install Now it's booted up. We can click. I'm just going to click Install it in English. I'm going to go ahead and choose in the United States and American English I'm going to keep the default username and click continue The domain name. I'm just going to put invalid dot edu You can put whatever domain name domain name you want Unless you are on a real domain name a real domain the root password here I'm just going to put a Basic password just for this example Okay, so you should put a a good password for for root Again, if you're going to use this the system in a in a real test Or you're actually going to have the system on the internet for longer than a couple seconds You do really want to configure a much better password than what I'm using here. Okay time zone So now we're doing partitioning of the virtual hard drive So I'm going to use guided use entire disk basically just choose the default again We're in a virtual machine and I'm just mostly going to accept the defaults I just want to use the software and not care so much about the the actual virtual machine All files in one position partition. Yes. Okay, so now we've finished Right changes disk. Yes Continue so we finished Partitioning the disk and installing the file system on the virtual hard drive notice. We haven't installed anything We haven't actually changed anything about our host operating system. We are only changing data Inside this virtual machine not the actual host Okay, so now this is going to copy data to disk and we will speed it up. So you don't have to watch it Okay, so now it's asking for a network mirror This may also Let's say we want to use a network mirror to make new software We do want to update our software on here if you need to use an HDD proxy proxy Do you want to use it now? I do not have a proxy setup For this network or I'm not going to go through a proxy in this case So if you do need to use a proxy just enter it here And now it's configuring the software and it will try to update Update at least some of the core software before we actually get into it Okay Now it's asking to install the bootloader and this is required to actually start the the virtual computer up So we're going to install it and click continue Yeah, so let's just choose the actual hard disk and click continue. Okay, so now the installation is complete click continue Okay, so now this is the grub bootloader and we can see Kali Linux is Basically selected to boot automatically Again, we are in our virtual machine. So this is a virtual computer It's now booting Kali Linux in the virtual machine So now we have our system booted up where we know that we're actually in Kali Linux, so our username remember we had the user root and Whatever your password for root was and then this is the Kali Linux desktop we see all of our tools over here. We go to applications We can see all of the different categories of tools that we might want to use So that's it for installing Kali Linux in virtual box If you were using a different operating system the same Let's say process applies for any operating system you're using and even installing windows is very similar to this process So now you know how to install a system in virtual box Next we'll talk about how to Upgrade and basically configure the virtual machine once it's installed. So that's it for now. Thank you very much for watching Thanks for watching. If you liked this video be sure to check out my channel and don't forget to subscribe