1 00:00:02,100 --> 00:00:04,230 What is a virtual machine? 2 00:00:05,420 --> 00:00:10,700 It is something I mentioned in the previous videos, but it is important for us to fully understand 3 00:00:10,700 --> 00:00:11,600 what it is. 4 00:00:12,740 --> 00:00:19,850 I can just give you a definition and say virtual machine is a machine within our physical computer that 5 00:00:19,850 --> 00:00:21,860 is using its hardware resources. 6 00:00:23,110 --> 00:00:28,090 But for most of you, this will be a new term that you haven't encountered before, so I would like 7 00:00:28,090 --> 00:00:33,100 to explain it further, more for you as well as mentioned, why are we going to use it? 8 00:00:34,220 --> 00:00:35,330 Let me start like this. 9 00:00:36,130 --> 00:00:43,490 All of us are running an operating system and ninety nine point nine percent of us are running one of 10 00:00:43,490 --> 00:00:45,650 the three main operating systems. 11 00:00:46,710 --> 00:00:48,540 You either have windows. 12 00:00:49,550 --> 00:00:56,040 Mac OS or Linux, most of you will have either Windows or Mac OS. 13 00:00:56,540 --> 00:01:01,870 I doubt anyone will be running Linux, but nonetheless, these are the three main ones. 14 00:01:02,360 --> 00:01:08,620 And what if we wanted to, for example, run two different operating systems on the same machine? 15 00:01:11,170 --> 00:01:18,070 For example, let's say you have windows installed on your machine and you want to install Linux or 16 00:01:18,190 --> 00:01:25,030 even better in case you want to install five operating systems running on different virtual machines. 17 00:01:26,130 --> 00:01:26,850 Can you do that? 18 00:01:28,000 --> 00:01:30,220 You can how would that work? 19 00:01:30,640 --> 00:01:32,860 Well, picture it like this. 20 00:01:33,840 --> 00:01:37,950 Imagine this rectangle representing our computer. 21 00:01:38,970 --> 00:01:46,170 And we already know that any computer will have one of the three main operating systems, Windows, 22 00:01:46,590 --> 00:01:48,240 Mac OS or Linux. 23 00:01:49,640 --> 00:01:54,710 But operating system is not the only thing that is defining our machine. 24 00:01:55,580 --> 00:01:58,620 Our machine also has its computer parts. 25 00:01:59,150 --> 00:02:07,550 We have hard disk processor, RAM memory motherboard and many more computer parts that with the operating 26 00:02:07,550 --> 00:02:09,680 system, make our machine work. 27 00:02:10,350 --> 00:02:13,960 These computer parts are also known as hardware. 28 00:02:14,780 --> 00:02:17,630 But wait a second, Alexa, why are you telling us this? 29 00:02:18,410 --> 00:02:23,720 Thought this was a lecture on explaining how machines work and not on hardware components. 30 00:02:24,980 --> 00:02:26,150 Hang on just a second. 31 00:02:26,550 --> 00:02:28,220 We're slowly getting there. 32 00:02:29,520 --> 00:02:36,420 Picture a virtual machine to build a smaller rectangle within our physical machine, which is this larger 33 00:02:36,450 --> 00:02:37,110 rectangle. 34 00:02:38,550 --> 00:02:43,930 And let's imagine that our physical machine is running Windows operating system. 35 00:02:44,820 --> 00:02:50,460 But if you took a look at this course content, you would notice that we're going to be doing all of 36 00:02:50,460 --> 00:02:53,670 our hacking stuff, mostly over Linux. 37 00:02:54,670 --> 00:02:58,660 Does that mean that we must delete our Windows and install Linux? 38 00:02:59,500 --> 00:03:02,940 No, we will install Linux as a virtual machine. 39 00:03:03,970 --> 00:03:05,530 And for this machine to work. 40 00:03:06,640 --> 00:03:09,640 It will need to have access to our hardware components. 41 00:03:10,760 --> 00:03:11,600 What does this mean? 42 00:03:12,170 --> 00:03:19,060 Well, since Virtual Machine will act as a machine of its own, it must have its own computer parts 43 00:03:20,000 --> 00:03:27,350 and what we will do is we're going to borrow our physical machine, CPU power, ram memory, hard disk 44 00:03:27,350 --> 00:03:33,110 memory to our virtual machine so it can run just like our physical machine. 45 00:03:34,080 --> 00:03:41,760 In other words, we are splitting the power of our physical machine into two different machines or more 46 00:03:41,940 --> 00:03:45,750 if we decide that we want to create multiple virtual machines. 47 00:03:47,100 --> 00:03:51,690 Does that mean that they will be slower since they will be splitting the resources? 48 00:03:52,410 --> 00:03:56,020 Well, technically, yes, but it will not be noticeable for us. 49 00:03:56,370 --> 00:04:03,120 However, the more powerful your PC is, more virtual machines, it will be able to run effectively. 50 00:04:04,070 --> 00:04:10,250 Another important thing is that once you shut down your virtual machine, all of the hardware resources 51 00:04:10,400 --> 00:04:14,420 used by it will get feedback for your physical machine to use. 52 00:04:15,170 --> 00:04:15,960 OK, good. 53 00:04:15,980 --> 00:04:19,940 And what are the other benefits that we have if we create a virtual machine? 54 00:04:20,660 --> 00:04:27,200 Well, since we are hackers and we will be doing a lot of things and running a lot of programs on that 55 00:04:27,200 --> 00:04:33,530 virtual machine, we want to make sure we are doing it first in a safe environment, at least while 56 00:04:33,530 --> 00:04:33,920 we learn. 57 00:04:34,820 --> 00:04:40,670 The good thing about virtual machines is that if, for example, our machine starts getting some annoying 58 00:04:40,670 --> 00:04:48,560 error or we get locked out of our files, or another case would be that we delete the file that we shouldn't 59 00:04:48,560 --> 00:04:51,710 have deleted and it crashes our virtual machine. 60 00:04:52,720 --> 00:04:59,740 What if we simply just get infected by a malware or virus by accident or another possible scenario would 61 00:04:59,740 --> 00:05:04,720 be that we just installed the wrong version of operating system, which we don't need. 62 00:05:05,770 --> 00:05:07,570 Will any of this present a problem? 63 00:05:08,740 --> 00:05:15,460 Don't worry, with two clicks, we can delete entire virtual machine, all of its files, and it will 64 00:05:15,460 --> 00:05:22,000 have no effect on our physical machine, then we can proceed to create a new one for as many times as 65 00:05:22,000 --> 00:05:22,480 we want. 66 00:05:23,580 --> 00:05:28,050 We can also create something called a snapshot, which will allow us to save the current state of a 67 00:05:28,050 --> 00:05:34,340 virtual machine, and with it we can reverted back to that state whenever we want. 68 00:05:35,010 --> 00:05:42,360 It can be useful if we, for example, ran into some error or we get infected with the virus, we can 69 00:05:42,360 --> 00:05:47,220 simply just reverted back and our virtual machine will act as none of that happened. 70 00:05:48,260 --> 00:05:49,270 Sounds cool, right? 71 00:05:50,560 --> 00:05:57,310 Now that we know how virtual machines work and why are we going to use one, you must be wondering how 72 00:05:57,310 --> 00:05:59,200 can we create a virtual machine? 73 00:05:59,750 --> 00:06:01,630 Actually, it is pretty easy. 74 00:06:02,140 --> 00:06:04,090 All we need are two things. 75 00:06:04,810 --> 00:06:09,190 We need an operating system that we want to install in that virtual machine. 76 00:06:09,800 --> 00:06:13,870 And we also need something called virtualization software. 77 00:06:14,820 --> 00:06:21,270 Now, what is that, even though it sounds harsh saying virtualization software, what it essentially 78 00:06:21,270 --> 00:06:28,110 is, is a program that will allow our physical machine to borrow hardware components to our virtual 79 00:06:28,110 --> 00:06:34,590 machine, or we can also define it as a program that will allow us to run multiple operating systems 80 00:06:34,770 --> 00:06:35,820 on a single host. 81 00:06:36,870 --> 00:06:43,260 So with these two, we can create our virtual machine and in the next few lectures, we're going to 82 00:06:43,260 --> 00:06:45,390 see exactly how we can do that.