1 00:00:00,000 --> 00:00:01,920 [No audio] 2 00:00:01,920 --> 00:00:06,570 Virtual machine management? Why am I including 3 00:00:06,600 --> 00:00:10,440 the virtual machine management in Linux training? 4 00:00:10,950 --> 00:00:13,740 Well, that's a very good question. The reason I'm 5 00:00:13,740 --> 00:00:17,850 including this is because 80% of the corporate 6 00:00:17,850 --> 00:00:21,810 environment nowadays, they run on virtual 7 00:00:21,810 --> 00:00:25,200 environment. So whether virtual environment is 8 00:00:25,200 --> 00:00:29,880 running under VMware, or Oracle virtualization, or 9 00:00:29,880 --> 00:00:33,060 Red Hat virtualization, or even if it's Microsoft 10 00:00:33,060 --> 00:00:36,780 virtualization, you will see that most of the 11 00:00:36,810 --> 00:00:39,870 machines that you're going to be building Linux on 12 00:00:40,080 --> 00:00:44,490 will run on virtual platform. That is why I'm 13 00:00:44,490 --> 00:00:47,130 including this as part of this training, so you 14 00:00:47,130 --> 00:00:50,730 will know how you could change, add or remove 15 00:00:50,730 --> 00:00:53,910 resources from a virtual machine that you are 16 00:00:53,910 --> 00:00:57,270 setting it up. So again, the virtual machine 17 00:00:57,270 --> 00:01:01,080 screen looks like this, you already familiar with 18 00:01:01,080 --> 00:01:04,800 this, you already know how to configure or spin up 19 00:01:04,830 --> 00:01:09,690 a new virtual machine. And if you want to add any 20 00:01:09,690 --> 00:01:13,680 more resources to it, when I say resources, what I 21 00:01:13,680 --> 00:01:18,480 mean is that you want to add more CPU, you will 22 00:01:18,480 --> 00:01:21,660 add more memory, you will add more disk, this is 23 00:01:21,660 --> 00:01:25,410 part of your job, when you will be doing system 24 00:01:25,410 --> 00:01:29,820 administration. Again, think for a second, this 25 00:01:29,820 --> 00:01:33,570 will be part of your job to add or remove 26 00:01:33,570 --> 00:01:37,950 resources. So that is why it is important for us 27 00:01:37,950 --> 00:01:41,550 to go over this virtual machine management. Now as 28 00:01:41,550 --> 00:01:44,490 an example, you build a virtual machine and you 29 00:01:44,490 --> 00:01:46,830 install Linux operating system on it. Awesome, 30 00:01:46,830 --> 00:01:50,040 you've done your perfect job. But now, a month 31 00:01:50,040 --> 00:01:52,710 later, two months later, a user comes back to you 32 00:01:52,710 --> 00:01:55,470 and says, Hey, my machine is running hot all the 33 00:01:55,470 --> 00:01:58,680 time. It's needs more resources, can we please get 34 00:01:58,680 --> 00:02:02,340 more memory, more CPU, or has less disk, can we 35 00:02:02,340 --> 00:02:05,850 please get more disk? So what do you do? If it's a 36 00:02:05,850 --> 00:02:08,520 physical machine, then how do you add it? Well, 37 00:02:08,520 --> 00:02:11,250 it's very tough nowadays, because you have to pull 38 00:02:11,250 --> 00:02:14,820 the whole machine out from the rack, take 39 00:02:14,820 --> 00:02:17,760 of the top off, add more memory physical memory or 40 00:02:17,760 --> 00:02:21,150 add more CPU, sometimes it's not even available to 41 00:02:21,150 --> 00:02:24,870 add more memory dims to a server. So if it's not 42 00:02:24,900 --> 00:02:27,000 available do you have to add more server or buy a 43 00:02:27,000 --> 00:02:29,670 new server. In virtual machine, that's the beauty 44 00:02:29,670 --> 00:02:31,500 of virtual machine that you could add all those 45 00:02:31,500 --> 00:02:35,280 stuff on the fly. So we will take our example of 46 00:02:35,280 --> 00:02:38,760 our own virtual machine environment, our Oracle, and 47 00:02:38,760 --> 00:02:40,740 we'll go over a few of the Settings that you could 48 00:02:40,740 --> 00:02:43,530 change. Right now our virtual machine, the one 49 00:02:43,530 --> 00:02:47,040 that runs Linux is Powered Off. So sometimes, 50 00:02:47,070 --> 00:02:49,920 depending on the operating system, you could add 51 00:02:49,950 --> 00:02:54,210 those resources on the fly, meaning hot add or hot 52 00:02:54,210 --> 00:02:59,850 remove. So we go to a Setting. The first thing we 53 00:02:59,850 --> 00:03:02,700 have in this Setting is the Name, if you want to 54 00:03:02,700 --> 00:03:06,300 change the name of your virtual machine. This Name 55 00:03:06,330 --> 00:03:10,290 is not the hostname of the virtual machine. 56 00:03:10,290 --> 00:03:12,870 [No audio] 57 00:03:12,870 --> 00:03:16,890 Again, what did I say this is not the name of the 58 00:03:16,890 --> 00:03:19,260 hostname of virtual machine. This is just a name 59 00:03:19,260 --> 00:03:21,720 that shows up right here. 60 00:03:21,900 --> 00:03:23,490 This is the name. So if you want to change the 61 00:03:23,490 --> 00:03:25,350 chamber change to something different, you could 62 00:03:25,350 --> 00:03:28,230 change it. There's some other Advanced option that 63 00:03:28,230 --> 00:03:31,230 if you want to create snapshots. Snapshots are 64 00:03:31,350 --> 00:03:33,720 like a kind of backup, but it's not considered 65 00:03:33,720 --> 00:03:36,630 backup. But if you are deploying a code in your 66 00:03:36,630 --> 00:03:39,000 virtual machine, your Linux machine, and the 67 00:03:39,000 --> 00:03:41,760 code doesn't work, you can always revert back to 68 00:03:41,760 --> 00:03:44,250 your snapshot. So the location of the snapshot is 69 00:03:44,250 --> 00:03:47,160 specified. If you do not like this location, you 70 00:03:47,160 --> 00:03:50,580 could change it. Some other stuff you can look 71 00:03:50,580 --> 00:03:53,850 into it in more detail Drag'n'Drop means if you 72 00:03:53,850 --> 00:03:57,630 want to copy something from your desktop while you 73 00:03:57,630 --> 00:04:00,030 have a virtual machine running and you want to 74 00:04:00,030 --> 00:04:03,840 drag and drop inside of your virtual machine. 75 00:04:03,840 --> 00:04:06,570 Right now it's Disabled. you could have it Host To 76 00:04:06,570 --> 00:04:09,450 Guest or Guest To Host or Bidirectional, whichever 77 00:04:09,450 --> 00:04:12,450 way you like you could have changed. So for now 78 00:04:12,450 --> 00:04:14,370 I'll have it Bidirectional, so this way when I 79 00:04:14,370 --> 00:04:17,010 start it up, if I want to copy something from my 80 00:04:17,010 --> 00:04:20,370 desktop to my virtual machine, I could do that. 81 00:04:20,790 --> 00:04:23,940 Then I have a Description here, what this virtual 82 00:04:23,940 --> 00:04:26,760 machine is done, I could put some description like, 83 00:04:26,850 --> 00:04:34,521 This VM was created by Imran Afzal 84 00:04:34,521 --> 00:04:40,500 ZiL on so and so date. Then do you want the 85 00:04:40,500 --> 00:04:43,290 machine to be encrypted? Meaning all the 86 00:04:43,290 --> 00:04:46,050 transaction between your host and your virtual 87 00:04:46,050 --> 00:04:48,270 machine, and each transaction going back and forth 88 00:04:48,270 --> 00:04:52,620 do you want to encrypt it. So what is a host? Host is 89 00:04:52,620 --> 00:04:55,710 your machine or your laptop where you are running 90 00:04:55,710 --> 00:04:59,430 this Oracle VirtualBox, and virtual machine is 91 00:04:59,430 --> 00:05:01,950 something that you have built on top of this 92 00:05:01,950 --> 00:05:04,440 VirtualBox, and in our example, this is our 93 00:05:04,440 --> 00:05:07,560 virtual machine. So this first setting, General 94 00:05:07,560 --> 00:05:10,380 setting, then we have System. If you want to 95 00:05:10,410 --> 00:05:13,440 change the memory of your system, then you could 96 00:05:13,440 --> 00:05:16,530 change it. Right now you see the memory of your, 97 00:05:16,530 --> 00:05:22,470 of our system is about 1024 MB, which is 98 00:05:22,500 --> 00:05:25,140 equivalent to one gigabyte. If you want to change 99 00:05:25,140 --> 00:05:27,480 it to two gig, three gig, you could simply put that 100 00:05:27,480 --> 00:05:31,170 number here or click on these scroll up and down, 101 00:05:31,200 --> 00:05:34,620 it will add it. The Boot Order of the machine is 102 00:05:34,620 --> 00:05:37,740 going to go look for Floppy, followed by Optical, 103 00:05:38,070 --> 00:05:41,520 then Hard Disk, and Network. If you want to go 104 00:05:41,520 --> 00:05:45,750 straight to the Hard Disk, skipping CD or Floppy, 105 00:05:45,750 --> 00:05:48,570 you could uncheck it. Same thing if you have your 106 00:05:48,570 --> 00:05:51,690 hard computer, meaning when you have a physical 107 00:05:51,690 --> 00:05:54,540 computer, you go to a BIOS and you do all that 108 00:05:54,540 --> 00:05:57,360 setting, so you could set it up here . And some 109 00:05:57,390 --> 00:06:01,170 other Extended Features, which we'll look 110 00:06:01,170 --> 00:06:04,590 into it in more detail. Processor, right now we 111 00:06:04,590 --> 00:06:07,440 have one processor running. Your users saying I 112 00:06:07,440 --> 00:06:10,020 need two processor or my application requirement 113 00:06:10,020 --> 00:06:13,200 is I need eight processor. You could go ahead and 114 00:06:13,200 --> 00:06:16,470 change right here. And Acceleration, some of the 115 00:06:16,470 --> 00:06:19,320 information, Hardware Virtualization, Acceleration, 116 00:06:19,320 --> 00:06:21,840 you could check it to make it enhance which we 117 00:06:21,840 --> 00:06:25,170 already have check. Next setting we have a Display. 118 00:06:25,470 --> 00:06:28,620 The Video Memory we have right now 16 megabyte. 119 00:06:29,280 --> 00:06:32,940 When you have, when we go to a machine and start, 120 00:06:32,940 --> 00:06:36,660 and the images that come up, the graphical 121 00:06:36,660 --> 00:06:39,930 interface or even terminal, sometimes you have the 122 00:06:39,960 --> 00:06:43,920 option to increase the resolution. So if you have 123 00:06:44,130 --> 00:06:47,190 limited Video Memory, you cannot increase those 124 00:06:47,190 --> 00:06:49,770 resolution. So you could change the memory here. 125 00:06:50,790 --> 00:06:54,420 Remote Display, same thing with all all of this 126 00:06:54,450 --> 00:06:57,720 related to the display information and 127 00:06:57,720 --> 00:06:59,880 configuration of the virtual machine. Then go to 128 00:06:59,880 --> 00:07:05,340 Storage. Right now our storage is attached as IDE, 129 00:07:06,000 --> 00:07:08,760 Empty, which is this disk is empty right now, 130 00:07:08,790 --> 00:07:14,040 Controller is SATA, and our disk space that is 131 00:07:14,040 --> 00:07:16,560 inside of our virtual machine is right here. And 132 00:07:16,560 --> 00:07:19,260 it's telling us the virtual disk size is 10 133 00:07:19,260 --> 00:07:23,130 gigabyte. And the Actual Size is four gigabyte. 134 00:07:23,310 --> 00:07:26,790 What does it mean? It means that even though you 135 00:07:26,790 --> 00:07:30,480 have allocated 10 gigabytes of disk space, right 136 00:07:30,480 --> 00:07:33,180 now, the actual size that has been used is only 137 00:07:33,180 --> 00:07:36,120 four gig. So what happened to the remaining six 138 00:07:36,120 --> 00:07:39,630 gig? Well remaining six gig is not actually 139 00:07:39,630 --> 00:07:43,200 completely allocated to your machine. However, if 140 00:07:43,200 --> 00:07:46,710 your machine does need more disk, it will 141 00:07:46,710 --> 00:07:49,740 automatically get it from your laptop or your 142 00:07:49,740 --> 00:07:55,620 desktop storage. Audio is, if you have any external 143 00:07:55,620 --> 00:07:59,073 audio anything or you want to use a Windows DirectSound 144 00:07:59,073 --> 00:08:00,690 since I have Windows operating system 145 00:08:00,690 --> 00:08:04,080 running, you could change that here. Network, we 146 00:08:04,080 --> 00:08:07,110 have only one network adapter at this point. And 147 00:08:07,110 --> 00:08:10,590 we change the network adapter to a different way 148 00:08:10,590 --> 00:08:13,770 we want, we have Internal Network, which is to 149 00:08:13,770 --> 00:08:16,950 communicate between our host which is our laptop, 150 00:08:17,340 --> 00:08:20,100 or an old machine, same thing, Host-only Adapter, 151 00:08:20,220 --> 00:08:22,620 and there is a Bridged Adapter. What Bridged 152 00:08:22,620 --> 00:08:26,430 Adapter does, it's going to take IP address from 153 00:08:26,430 --> 00:08:29,820 your own computer, and then it will communicate to 154 00:08:29,820 --> 00:08:33,000 the outside world. Right now if you just connect 155 00:08:33,000 --> 00:08:36,419 Host-only you cannot go outside on the internet. 156 00:08:36,659 --> 00:08:38,610 If you want to go to outside internet, you select 157 00:08:38,610 --> 00:08:43,740 Bridged Adapter. And then you click OK. So Adapter 158 00:08:43,740 --> 00:08:47,070 2, we don't have it, Adapter 3 and 4, if 159 00:08:47,070 --> 00:08:51,360 you want to assign more NIC adapters to your 160 00:08:51,510 --> 00:08:54,480 virtual machine, you could go in and check this 161 00:08:54,480 --> 00:08:57,570 mark. Serial Ports, any of the ports that you want 162 00:08:57,570 --> 00:09:00,810 to connect, you will have it. USB, if you want to 163 00:09:00,840 --> 00:09:04,830 attach a USB to your laptop that will be read by 164 00:09:04,830 --> 00:09:08,370 your virtual machine, you enable this. Any Shared 165 00:09:08,370 --> 00:09:11,070 Folder that you want to attach to this virtual 166 00:09:11,070 --> 00:09:13,890 machine, and User Interface, how does it look you 167 00:09:13,890 --> 00:09:16,980 want it to show in Full-screen, Seamless, or Show at 168 00:09:16,980 --> 00:09:20,190 the Top of the Screen or any way that you like 169 00:09:20,250 --> 00:09:22,200 right here it shows you when you have virtual 170 00:09:22,200 --> 00:09:26,670 machine. These three few operational keys are 171 00:09:26,670 --> 00:09:29,190 shown. If you don't want them to be shown you can 172 00:09:29,220 --> 00:09:32,790 uncheck it. So we'll cancel it since we don't want 173 00:09:32,790 --> 00:09:35,730 to add any resources. So this is all about 174 00:09:35,730 --> 00:09:39,690 management of your virtual machine. And believe me 175 00:09:39,690 --> 00:09:43,380 most of the time all virtual machine setup is done 176 00:09:43,440 --> 00:09:46,500 just like that. You pretty much do right click on 177 00:09:46,500 --> 00:09:49,860 the virtual machine and you do edit Setting or 178 00:09:49,890 --> 00:09:52,320 setting depending on your virtual environment and 179 00:09:52,320 --> 00:09:55,440 you could change the resources. This video is 180 00:09:55,500 --> 00:09:58,020 important especially for those who wants to get a 181 00:09:58,020 --> 00:10:01,710 job in Linux, or a job in system administration, 182 00:10:02,280 --> 00:10:05,490 you will be asked sometimes the virtual related 183 00:10:05,520 --> 00:10:09,420 questions because as I said in the beginning, 80% 184 00:10:09,450 --> 00:10:14,430 of enterprise companies or organizations are running 185 00:10:14,430 --> 00:10:19,440 their compute environment on virtual platform. So 186 00:10:19,440 --> 00:10:22,830 I hope this lesson serves this purpose and you 187 00:10:22,830 --> 00:10:26,250 enjoyed it and just get yourself familiarized with it. 188 00:10:26,250 --> 00:10:27,520 [No audio]