you need to learn Virtual Machines RIGHT NOW!! (Kali Linux VM, Ubuntu, Windows)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
virtual machines are amazing if you want to become a hacker or learn linux or get into it or if you're just a person learning what a virtual machine is and then starting to use them will change your life and that's what we're doing in this video if you're new to virtual machines we're going to talk about hey what the heck are they and why do you need one and by the way if you're learning hacking you need one and then right now on your computer on your laptop we're going to set up a virtual machine we'll walk through every step as quick it's simple and it's free so if you've always wanted to set up kali linux or ubuntu or windows on one laptop you can do that we're gonna do that now so let's go now again this video covers a lot from what a virtual machine is to setting one up and going over some really cool features you can do with it so feel free to jump around i got timestamps below you can jump to your favorite part and get going immediately so real quick what exactly is a virtual machine well it's basically this right here a computer well it thinks it's a computer it's actually a computer inside a computer kind of like how we don't know we're in the matrix right now i'll explain not the matrix part though so for example let's talk about your computer your computer might be a laptop or desktop doesn't really matter and if you were to bust open this computer you know like let's do it no i'm just kidding if you were to break it in half open it up look inside what would we see hardware things like the cpu ram or memory storage i don't know why i said it like that gpu network interface card hardware that makes our computer a computer well not quite we can't really use it yet until we install an operating system right like we need that for me i'm using windows hate me for i don't care i love windows what are you using right now so i have windows 10. and that allows me to use all the hardware resources and play games and do all kinds of stuff like video editing or making videos like this so this is a computer and this might be your computer but let's say one day you get the inkling the urge to learn linux because everyone should like right now like maybe you want to become a hacker or something i don't know so to learn linux you have to start playing with it so you might think oh it's another operating system so i probably need another set of hardware resources right i need to buy another computer and on that computer we would install linux there he is now it's fine to do this by the way if you have a laptop laying around or a raspberry pi go for it but a different way and i might say a more magical way because it is magic man vms are magic you could put the computer inside your computer what yes it's a real thing it's amazing how are we performing this magic virtualization virtual machines it's legit it's awesome but how do we do it with a hypervisor big word might sound scary but it's not a hypervisor is a fancy word for an application you install on your operating system like anything else you might install google chrome call of duty whatever it is there are a few different players out there but the one i love the most just because it's free like anyone can download this whether it's mac linux or windows and you get like all the features it's amazing it's called virtualbox and again it's just an application you install i'll show you how to do it here in a moment and it's super fast super quick and simple and the hypervisor's job is legit just create a bunch of little computers inside your computer things like this and it doesn't have to be linux it could be windows you could have windows inside windows you could have mac inside windows windows on linux windows on mac and you can have more than one now again i'm going to show you how to do this step by step it's so easy but let me tell you one thing what's amazing about this is this computer right here this little fake computer basically he thinks he's a real boy he thinks he's the actual computer he thinks he's the laptop even though he's not he's in the matrix what the hypervisor basically does and it's again this is magic i'm talking about here he'll basically create fake or virtual i kind of use those words interchangeably fake uh hardware components like the cpu the ram gpu my writing is getting worse and worse it's okay storage and he actually does this by borrowing from the operating system so he says hey can i use some of the cpu for this new little computer here can i use some of your ram of course since you're the one doing it he says okay and he creates this little fake virtual computer and we install our operating system on there and again to that computer he thinks wow i'm the only real computer here this is amazing but he's not now this technology's been around for a minute but it doesn't make any less amazing like if you're just now learning about this it's kind of mind-blowing isn't it and even if you do know about it it's still mind-blowing like just explaining this now i get excited can't you tell it's not just the coffee i promise but yeah what we're doing here virtualization has been around for a while and it's been used in big companies for a while too now what you're seeing here this virtualization it's amazing because anyone can do it you have a laptop you have a desktop you have your mom's computer or whatever it is you can install a virtual machine but it's also important to know that as you go further into it this isn't the only way to use a hypervisor in fact this hypervisor right here is referred to as a type 2 hypervisor which kind of tells us there's a type 1 and what is that well i'll tell you right now like what we're seeing here a type 2 hypervisor is installed on an operating system that you already have like windows or linux or mac this is referred to as our host operating system or our host os when we install our type 2 hypervisor and he creates virtual machines these os's are called our guest os's essentially the host os is allowing the guest os to use his resources like you would have a guest use your resources in your house except this guest thinks he's living there and he owns the house it's kind of weird now the other option a type 1 hypervisor is what you'll see in companies and enterprises and if you come to my house i have some too you might have some as well a type 1 hypervisor will not be installed on top of an already existing operating system like windows so let me erase windows out of here don't get too excited the hypervisor will actually just install straight onto the hardware and in this case it wouldn't be something like virtualbox it would be something like vmware vmware's esxi which is what i have running in my house not type 1 hypervisor like this can be installed on any computer like your laptop if you just erased windows or linux whatever you have and installed esxi it would work it's awesome try it but more often and typically in the real world you'll see it installed on one of those big servers a dell server and hp server but honestly the type 1 hypervisor and the type 2 hypervisor they do the same thing they make virtual machines they carve out hardware resources and make virtual machines the main difference with type 2 is that it has to ask the host operating system for resources has to share it with them whereas the hypervisor over here type one he controls the show he's got full godlike control of all the hardware resources so keep that in mind as you go forth in it but let's get to actually making this happen on your computer now before i show you how to set up a virtual machine let's talk about why why would you want to do this why would you not but let me give you some reasons my top three actually real quick here we go number one you want to learn hacking using a virtual machine to perform your hacking duties is the safest and most secure way to do this in fact if you want to use try hack me or hack the box fantastic ways to learn hacking this is their recommended way get a virtual machine and connect to them via vpn we'll cover that here in a moment two you just want to learn different operating systems best way to do it and three you'll want to break stuff now when i say break stuff i really mean it when you use a virtual machine you can do whatever you want to it you can change all the settings break it mess it up because guess what it doesn't matter you can just delete it and build a new one it doesn't affect your main operating system your main host os so that means it's the best place to try things the best place to experiment so here we go time to make some magic happen i'm going to set up a virtual machine a computer inside a computer on this laptop now you can do this it's not too difficult and it's completely free so here we go let's get this set up and start going okay so real quick what do you actually need to do this well first you need a computer right a real one not a virtual one can't be a matrix computer now it doesn't have to be a crazy computer if you bought your computer within the last 10 years you should be okay for the cpu and as far as like ram i would say four gigabytes or more any less and you might have some trouble why well because again we're sharing resources with a new computer your computer right now is already using those resources does it have some despair kind of like your house do you have an extra room for a guest if you don't it's going to be straining it's going to be hard and i'm not sure why i made a list that's pretty much all you need we're good now before we try to set up a virtual machine on this laptop or your laptop there's one thing you got to know most operating systems come in two flavors 32-bit or 64-bit so for example i'm going to install kali linux as a virtual machine on my laptop i have the option to use a 32-bit version or a 64-bit version if you want to use a 64-bit operating system there's one thing you have to do in a bios of your computer you basically have to enable hardware virtualization support for your cpu i'll walk you through that right now but if you don't care about 64-bit if you're gonna go 32-bit continue just make sure to download 32-bit images to support both go ahead and continue with this next step here's what you do i'm going to restart my computer here as it's restarting i'm going to keep pressing f12 um and what this will do is get me into my bios it's the operating system before your operating system is your computer boots for you maybe f12 f8 f10 you'll see it when it comes up but what we're going to do here is actually adjust these settings on your computer now i just missed mine so i have to do it again you have to kind of press it fast for your faster computers got it okay so here i'm going to enter setup this will get us into your bios settings this looks a little scary if you've never done this before i totally understand and all we're going to do is change one setting we're going to mosey on over to advanced cpu configuration and we're going to look for something called intel vmx virtualization technology you'll want that you want that enabled now your menu may be a bit different from mine but just look for that setting cpu configuration and intel vmx now if you have an amd cpu the process will be pretty much the same except you're looking for a technology called amd v enable that so i'll enable mine by hitting the space bar hit escape and that mostly on over to save and exit and yes and reset and i'm ready to go now real quick before you do anything do this right now whatever operating system you want to start playing with whether it's kali linux ubuntu windows or whatever start downloading it right now these file sizes can be pretty large and it might take a bit so might as well start now so i'm going to go out to the interwebs the internet search for kali linux i'm gonna go download it and i'm gonna download the kali linux 64-bit installer now notice it is four gigs it includes everything all the cool applications you wanna use to hack things so i'm gonna take a bit i'm gonna go and download mine now i've got gigabit internet so it's gonna take about three minutes i'm also going to go download the latest version of ubuntu so i'm going to search ubuntu click on download right here from the google search yeah yeah yeah you're going to track me ubuntu desktop is what i want and click on download now real quick notice the type of file i'm downloading it's an iso file dot iso most of the time this is what you want to look for it's installation media it's how you install these operating systems kind of like how we used to install things via cds which we don't really do anymore so it's hard to make that comparison but while those are downloading we're going to download our hypervisor next i mentioned before we're going to be using a hypervisor called virtualbox made by oracle completely free and i love free so i'm going to click on downloads here scroll down here i've got a few options windows os x which is mac linux or solaris now here i'm demoing windows keep in mind it should be pretty similar across all the different os's so click on windows and it's downloading coffee break my virtual box download is ready i'm gonna click on it and it's going to start installing pretty typical installer package just click on next accept everything like you believe it don't change the dang thing just click on next and yes it's gonna do some stuff just click on yes and install yes and if you see that message that it was successful then you're golden click on finish and it will launch virtualbox for you right now yes i'm so excited now i told you installing a hypervisor is just like installing an application it's running just like one it's not too scary or intimidating and we're almost there so let's let's get this party started now one more thing we have to do before we create our virtual machine virtualbox for some reason needs an extension pack to be able to use some other features like connecting usb devices and stuff and you might want that so we're gonna get back to our web browser and right where we downloaded virtualbox if you scroll down just a bit we'll see you right here virtualbox extension pack all supported platforms go ahead and download that right now and done and actually just go ahead and click on that and we'll start the installation yep let's install that sucker right now yeah yeah yeah yeah i agree and boom now we're finally ready from here it says hey welcome thank you we're gonna click on new so click on that weird looking icon there new now because i'm running a hacking os uh kali linux i like to name mine voldemort oh i'm sorry he who must not be named don't want to offend anyone the machine folder is where your virtual machine will live i'll leave mine as default that's fine type this will be a linux machine you have other options like mac os and microsoft windows then i'll choose my version now they're not going to have kali linux listed in here but if i choose ubuntu 64-bit that'll do the job they're both based on debian i'll click on next now here's where you get to decide how much of your computer's resources you're carving out to give to this new computer first is the memory and he's having a heart attack right now i'm not sure you can hear this and you want to be careful with this if you give this computer too much memory you're going to have a hard time give your guests just enough just give them the one room now my laptop has 16 gigs of memory so i can afford to give him a bit extra now a quick way to determine how much you can give your computer let's look at task manager so if i right click my taskbar down here and click on task manager and click on performance i can see how much cpu and memory i'm using now you'll want to check this with all your regular apps open so you can get a good baseline for how much you can give your virtual machine here so i'm pretty good i'm going to give mine a healthy two gigs of ram that'll be 2048 megabytes and i'll click on next here we're creating the hard drive for our new computer which is kind of crazy and cool we have a few options but if this is your first time ever doing this the one default is fine create a virtual hard disk and now by default it's going to be 10 gigs in size so make sure you have some space available on your hard drive click on create and then we have different types you can choose from again going with defaults probably the best option for you right now if you're just starting out a vdi is specific to virtualbox if you're going to use other hypervisors like vmware's workstation using another file type will allow interoperability but vdi is fine if you're just going to be testing this out with virtualbox which again is more than enough so we'll click on next now this is pretty freaking cool right here so for your hard disk size we are going to say to the operating system to our new computer it's going to be 10 gigs but the hypervisor is smart and it won't actually take up 10 gigs on your hard drive unless it needs to it will dynamically adjust its size as long as you have the dynamically allocated option selected you can go with the fixed option which does increase your performance a bit but i always choose dynamically allocated and it works great so click on next and then our last thing with our hard drive our storage is we choose where it's going to live so again you can put this somewhere where it actually has space available and then choose your size i'm gonna butt mine up to about 20 gigs there we go and by the way most of these settings you can go back and change so don't fret too much about this so i'll click create and bam like we're almost done not quite yet but we're almost there i'm going to show you a couple things real quick go ahead and click your virtual machine and click on settings there are a lot of options and you can go crazy and geek out but for now you don't have to change much in fact you don't have to change anything if you don't want to but there is one thing i want to change from the get-go that i know will have the biggest bang on my performance and that's the number of cpus i give my new computer i'm gonna go one step down and go to system and from here i'll click on processor the tab right here most of us have multi-core cpus we can carve out some of those cpus to give to our new computer now one normally isn't that great so i'll bump it up just a few four's a good solid number almost overkill never try to go over half get in the danger zone there so always try to stay below that especially if you're gonna have more than one virtual machine which you can do which we are going to do and that's all i'll change for now i'll click ok and now all that's left to do is to start up our virtual machine i'll click my little arrow right here and click on start now first thing it says is hey we need a startup disk because right now we don't have any operating system on this virtual machine we've got the hardware but it's blank no os so it's basically going hey where's my installation disk what are we doing here today so we're gonna go find it i'll click that little folder icon right there and it'll be one of our isos that we just downloaded i got kali linux and ubuntu i'm gonna go cali first so click on add go to my downloads folder and click on cali linux and click open and choose and that's it i'll click on start and it will start now one thing real quick i just clicked inside this virtual machine and what it will do is allow me to use my mouse and my keyboard for my computer inside the virtual machine but what can happen is it can also be kind of hard to get out of it so they give you a little host key option to get out of there kind of like a abort abort button by default it's going to be the right control so if you have your left controller on your keyboard it'll be the right control it hits you that you'll hit you'll get your mouse back and be able to go to your base or host operating system and that's fine so go ahead and let it capture my movements here and what i'm going to do now is do a graphical install for kali linux hit enter and we're off to the races now with whatever operating system you install it will be slightly different but they're all pretty much the same you're going to go through select your languages and click on continue i'm in us yes american english is good it's what i speak so right now it's detecting all the hardware that my hypervisor brought up for all the fake hardware it's kind of cool i'm gonna name it which again will be voldemort click on continue i'll skip this my user account just name it network chuck continue username is good too and my password click continue time zone all that jazz just basic stuff you can walk through pretty quickly now again when in doubt default by default we have guided use entire disk what it's going to do is format the entire disk it has access to now don't freak out it's not going to destroy your host operating systems disk no no it's just the disk we've given access to this computer it's that 10 gig disk and yeah it's going to overwrite that entire disk and that's fine that's what we want so i'll click on continue and continue and continue and continue and it's going to ask you one more time are you sure you want to do this because you are going to overwrite the entire disk which is fine it's a fake virtual disk we created just for him i'll click on continue and it's installing coffee break now i say coffee break because this can take a bit of time depending on what you're installing so please go take a coffee break network chuck coffee go for it now often as you go through the installation you'll have more options what desktop environment you want to have and and such again default is best click on continue and it will keep going and yet again more stuff do i want to install the grub boot loader yes i do we're not going to cover that right now and then choose your hard disk you want that installed on the only one i have here and we're almost there i believe getting closer and it's done okay it's good i'm going to continue and it's going to restart and do all its stuff right here it comes and i'm gonna log in and boom just like that a virtual machine a computer inside a computer he thinks he's the only one using the hardware on this laptop he's not he doesn't know and i don't care if he doesn't know this is the way you want to hack this is the way you want to learn linux it's amazing now real quick three reasons why this is absolutely killer and game changing and awesome for you first this is a linux operating system a kali linux operating system with a ton of hacking tools built in and i'm running it on a windows laptop cool enough by itself but one of the other reasons i love this is that this computer this kali linux virtual machine it's isolated whatever i do on this guy will not affect my operating system here my windows operating system which is really good if you are hacking right ethically so for example if you're accessing try hack me's network to access their stuff or hack the box you're connecting to a network that may have other people on that same network who are also trying to hack i don't know about you but i feel a lot safer connecting to a hacking network if i'm using an isolated computer that can affect everything else i'm doing this is why i try hack me and hack the box recommend virtual machines like this now a couple more killer things you can do with virtualbox and your virtual machines your virtual computer your fake computer check this out i'm gonna pull up virtualbox once more and we can see there that our virtual machine's running voldemort's running run if i right click this guy i have a few options here of course i got settings the cool stuff is right here in the middle i can pause this virtual machine let's do it let's pause it it's like you're pausing the game it's freaking nuts you're kind of just freezing your computer kind of neat the idea here that is whatever you're doing will pause and it'll use less resources if you want to do something else at the moment and then i'll right click him and click on pause to resume pick up right where i left off that's freaking sick right that's amazing again let's right click our voldemort here guy guy here i can also reset him we'll just you know kind of restart but it'll just kind of like you're unplugging and replugging i can also close my virtual machine with a few cool options here one is saving the state let me show you real quick let me open up something here i'll jump into a command prompt go into nano and start typing something and i'm like huh i'm tired i'm gonna go to bed i'm just gonna i'm just gonna save this guy's state click on close save a state and then i'll close virtualbox done shut down go to bed whatever come back open up virtualbox and then i'll just click on start and let's see what happens restoring my virtual machine right where i freaking left off that's amazing right oh my gosh okay anyways i'm getting too hyped on virtual machines can you be too hyped on it i don't think so i'm okay and then one more thing if i right click voldemort go to close i can do a normal shutdown or i can just power them off which is like unplugging the virtual machines power cord and of course you can go to ah what happened i don't know great time to reset it let's just reset bam yeah let's reset him get a little preview box right there that's super cool that's gonna get me back in i don't know what happened there okay we're back and he's normal and of course you can shut him down like you normally would and do all your stuff in cali linux some other cool stuff that you can't do with your normal computer right now i'm going to shut him down real quick shut down guy he's powered off he's gone if i right click him when he's powered off i have some cool options here like clone what do you think clone does wild guess again when in doubt default next full clone it's making a copy of my virtual machine how cool is that so i can fire up one really go in there and mess some things up and then i've got another one i got a backup that's pretty cool now i'm starting him up again once more now let me kick your scenario let's say you're about to change something about to install something new maybe an update or you're about to do something crazy i don't know whatever it is it might break what you're doing and you're getting nervous you could clone your machine that's fine a bit heavy or you can take a snapshot take a little picture freeze frame something you can go back to if things break i'm gonna click the little dialog box right here next to voldemort and go to snapshots i can take a snapshot take a picture of his current state label it before i break him click ok and boom it saved that state so let's let's do this real quick i'm going to create a file on the desk or the folder on the desktop bam there it is that's the state of him right now if for whatever reason that folder murdered me i can say oh he he's broken let me shut him down put him in a dime out go to my snapshot here and click on restore and now i don't want to create a snapshot of what he is currently he's broken let's just restore him to what he was before and he should be good i'm going to click on his dialog box go back to details and jump in there let's click on start man virtualization is it's pure magic and there it is that folder on my desktop is gone that state's been restored so you see what i mean like virtual machines are like playing a video game they're magic you can play with new operating systems make all kinds of crazy changes do let's do crazy things they should be windows linux mac and it doesn't affect your host operating system it's crazy now this has been a long video but i just can't help myself let me show you a few more things real quick i'm going to jump into voldemort and click on his i'll right click him and click on settings a few more things i would change here real quick under general and then advanced shared clipboard if you want to copy and paste between your host machine and your guest os you can do that you can share the clipboard click on host a guest guest to host bi-directional again keeping in mind you got to be careful whatever you open to being shared between your host machine and your guest machine means some of that security goes away so if you want true isolation keep the stuff off but for convenience hey go bi-directional that's awesome drag and drop yeah let's do that bi-directional it's pretty freaking slick right now something else let's play the last thing i'll show you if you go down to network this is one of the killer settings and things and features about virtual machines this virtual machine right now is connected to the internet it has access to stuff but right now it's on its own little network it's using that or a network address translation but essentially what that means with this setting is that it's not on my network right now my home network if you're to scan my network might which you might do as a hacker using nmap you wouldn't discover this guy and if my little machine here were to become compromised and a hacker got access to it if they were to scan its network it wouldn't discover my home network so if i jump into my cali box right here and i open up a command prompt let me just check his ip address yeah it's on the 10.0.2.0 network that's not my home network now of course you can change this behavior if you want to have a regular ip address on your home network if that's what you really want you can change that to a bridged adapter and it'll change that behavior so now let me see if it made the change probably have to reboot let me just reboot it and now let's check the ip address yes it's on my home network now so you have options but again more convenience comes at a cost your security but getting back into voldemort if i go to his settings once more you can have more convenience like go into shared folder you can share a folder between your host machine and your guest machine you can share files back and forth but my advice if you're learning hacking or messing around with linux or whatever you're doing keep your machine as isolated as possible you can even run its own vpn client just on that virtual machine which basically means your host machine could be you know where you are like let's say mine is where i live dallas texas but my guest os my virtual machine could be in france this is my vpn settings so that's pretty secure the pc is isolated and it's connecting to a separate network somewhere else oh look at that while you're on a coffee break i installed ubuntu so right now i'm running kali linux ubuntu and of course my windows host os all in one computer that's amazing right i thought that is magical now this was just a taste of virtualization technology now if you're still watching this video congrats you just learned a ton about virtualization virtual machines and if you followed along and you deployed some virtual machines that's awesome what you just learned is something that we and it use all the time it's an essential skill whether you want to become a hacker or a system admin or a cloud engineer really anything any area of it requires this knowledge so with this you're one step closer to whatever your goal is and shoot even if you don't want to become an i.t person just knowing this is so cool for regular life but anyways that's virtualization i love it and if you love it too hit the like button that's what that means if you like virtualization you have to hit the like button and of course if you like the video it does the same thing and let me know below what you thought of this video do you have any tips for virtualization or virtual machines that i did not mention here comment below now just so you know virtual machines or vms are not the only way to accomplish what we're trying to do have isolated machines computers to do cool things we could also do that with docker we can do that with wsl2 you're probably thinking dang what is that great question i got some videos up here that you can check out and just so you know learning virtualization what a vm is is a prerequisite before stepping into those worlds and it's a big cool awesome world well guys that's all i got here whoo virtual machines are amazing how many times can i say that until you get it hopefully you get it by now so yeah that's all i got if you like what i'm doing here don't forget to subscribe and hit that notification bell to be notified when i go live or post new videos like this and if you want to support the mission of what i'm doing here creating free it training available to the masses then consider joining my network chuck membership link below but yeah that's all i got yep i'll catch you guys next time [Music] you
Info
Channel: NetworkChuck
Views: 2,926,589
Rating: 4.9491739 out of 5
Keywords: virtual machine, windows 10, install ubuntu, how to install, linux tutorial, virtual box, kali linux, virtualbox tutorial, install kali linux, virtual pc, install kali, installing kali linux, linux on windows, linux environment, install linux, how to install kali linux, virtual machine windows 10, virtual machine tutorial, virtual machine windows 10 on mac, virtual machine mac, install ubuntu alongside windows 10, install ubuntu on virtualbox
Id: wX75Z-4MEoM
Channel Id: undefined
Length: 27min 41sec (1661 seconds)
Published: Mon Jan 18 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.