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, then starting to use them will change your life. And thatās what weāre doing in this guide. 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. Itās 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 going to do that now. So letās go.
This guide 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.
What is a Virtual Machine?
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 if weāre in The Matrix right now. Iāll explain, not The Matrix part though.
For example, letās talk about your computer. Your computer might be a laptop or a 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 it, 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 guides 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. 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āācause 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.
How Does It Work? The Hypervisor.
But how do we do it? With the 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 to 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 want 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 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 this 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 has been around for a minute, but it doesnāt make it 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, 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.
Type 1 vs. Type 2 Hypervisors
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 VMs 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 be installed straight onto the hardware. And in this case, it wouldnāt be something like VirtualBox; it would be something like VMware. VMwareās ESXi is what I have running in my house.
A 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 in one of those big servers: a Dell server, an 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; it has to share it with them. Whereas the hypervisor over here, Type 1, he controls the show. Heās got full god-like control of all the hardware resources. So keep that in mind as you go forth in IT.
Why Use a Virtual Machine?
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 TryHackMe 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 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. āCause 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.
Setting Up a Virtual Machine: What You Need
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 core, 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 4 GB 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 to spare? 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. Iām not sure why I made a list. Thatās pretty much all you need. Weāre good.
Enabling Virtualization (For 64-bit OS)
Now, before you 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 the 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 going to 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. And what this will do is get me into my BIOS. Itās the operating system before your operating system. When your computer boots for you, it may be F12, F8, F10; youāll see it when it comes up. 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 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 then mosey on over to Save and Exit, and Yes, and reset. And Iām ready to go.
Downloading an Operating System (OS Image)
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, going to go download it, and Iām going to download the Kali Linux 64-bit installer. Now notice it is 4 gigs. It includes everything, all the cool applications you want to use to hack things. So it might take a bit. Iām going to go and download mine now. Iāve got gigabit internet, so itās going to take about 3 minutes.
Iām also going to go download the latest version of Ubuntu. 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. Do 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.
Downloading and Installing VirtualBox
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 VirtualBox download is ready. Iām going to 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 a single thing, just click on Next and Yes. Itās going to 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 get this party started.
Installing the Extension Pack
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 going to get back to our web browser, and right where we downloaded VirtualBox, if you scroll down just a bit, weāll see 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.
Creating Your First Virtual Machine
Now weāre finally ready. From here it says, āHey, welcome.ā Weāre going to click on New. So click on that weird-looking icon there: New.
Now, because Iām running a hacking OS, 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 macOS and Microsoft Windows. And 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 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 guest 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 is to 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 2 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 now.ā By default, itās going to be 10 gigs in size, so make sure you have some space available on your hard drive. We click on Create.
And then we have different types we can choose from. Again, going with default is probably the best option for you right now. 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 sizeā 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āre going to put this somewhere where it actually has space available, and then choose your size. Iām going to bump 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.
Tweaking VM Settings (CPU Allocation)
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 going to 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, and 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 is 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 going to 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.
Installing the Operating System
And now all thatās left to do is to start up our virtual machine. Iāll click on my little arrow right here and click on Start.
Now, first thing it says is, āHey, we need a startup disc.ā āCause 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, um, install disc? What are we doing here today?ā So weāre going to 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 going to go Kali first. So click on Add, go to my Downloads folder, and click on Kali 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 it will allow me to use my mouse and my keyboard for my computer inside the VM. 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 an abort button. By default, itās going to be the Right Control key. So if you have your Left Control on your keyboard, itāll be the Right Control that youāll hit to get your mouse back and be able to go to your base or host operating system. And thatās fine.
So weāll go 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. Going to name it, which again will be Voldemort. Click on Continue. Iāll skip this, my user account, just name it, NetworkChuck, continue. Username is good too, and my password, for 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 systemās disk. No, no, no. Itās just the disk weāve given access to this computer. Itās that 20-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?ā āCause 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. NetworkChuck 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 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 one, 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 click Continue, and itās going to restart and do all its stuff. Right here it comes. And Iām going to 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.
Why This is a Game-Changer
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 TryHackMeā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āt affect everything else Iām doing. This is why TryHackMe and Hack The Box recommend virtual machines like this.
Cool VM Features: Pause, Save State, Snapshots
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 going to pull up VirtualBox once more, and we can see that our virtual machineās running. Voldemortās running. 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 him. Itās like youāre pausing a game. Itās freaking nuts. Youāre kind of just freezing your computer. Kind of neat. The idea here is that 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. I can also reset him. Weāll just⦠you know, kind of like restart, but itāll just kind of like youāre unplugging, re-plugging. 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. That Iām like, āHuh, Iām tired, I want to go to bed.ā Iām just going to⦠Iām just going to save this guyās state. Click on Close > Save the 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. Restore my virtual machine where we 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 shut down, or I can just power them off, which is like unplugging the virtual machineās 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 going to 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 Kali 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. Let me give you a 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, so then you can go back to it if things break.
Iām going to click the little dialogue 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 do this real quick. Iām going to create a file on the desktopāor a 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ās broken.ā Let me shut him down, put him in timeout, go to my Snapshot here, and click on Restore. And now I 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 just do crazy things. This could be Windows, Linux, Mac, and it doesnāt affect your host operating system. Itās crazy.
Advanced Settings & Isolation
Now this has been a long guide, 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āor 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 to 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. This is 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 NAT (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 were to scan my networkālike what 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 Kali 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.x network. Thatās not my home network.
Now, of course, you can change this behavior if you want it 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 will 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 going to Shared Folders. You can share a folder between your host machine and your guest machine, and 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, due to my VPN settings. So thatās pretty secure: the PC is isolated, and itās connecting to a separate network somewhere else.
Running Multiple VMs
Oh, look at that. While you were on a coffee break, I installed Ubuntu. So right now Iām running Kali Linux, Ubuntu, and of course my Windows host OS, all on one computer. Thatās amazing, right? I⦠that is magical.
Conclusion
Now, this was just a taste of virtualization technology. Now if youāre still watching this⦠guide, congrats, you just learned a ton about virtualization, virtual machines. And if you followed along, you deployed some virtual machines. Thatās awesome.
What you just learned is something that we in 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 IT person, just knowing this is so cool for regular life.
But anyways, thatās virtualization. I love it. And if you love it too⦠well, let me know what you thought of this guide. 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 guides 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. Woo! 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.