[No audio]
Virtual machine management? Why am I including
the virtual machine management in Linux training?
Well, that's a very good question. The reason I'm
including this is because 80% of the corporate
environment nowadays, they run on virtual
environment. So whether virtual environment is
running under VMware, or Oracle virtualization, or
Red Hat virtualization, or even if it's Microsoft
virtualization, you will see that most of the
machines that you're going to be building Linux on
will run on virtual platform. That is why I'm
including this as part of this training, so you
will know how you could change, add or remove
resources from a virtual machine that you are
setting it up. So again, the virtual machine
screen looks like this, you already familiar with
this, you already know how to configure or spin up
a new virtual machine. And if you want to add any
more resources to it, when I say resources, what I
mean is that you want to add more CPU, you will
add more memory, you will add more disk, this is
part of your job, when you will be doing system
administration. Again, think for a second, this
will be part of your job to add or remove
resources. So that is why it is important for us
to go over this virtual machine management. Now as
an example, you build a virtual machine and you
install Linux operating system on it. Awesome,
you've done your perfect job. But now, a month
later, two months later, a user comes back to you
and says, Hey, my machine is running hot all the
time. It's needs more resources, can we please get
more memory, more CPU, or has less disk, can we
please get more disk? So what do you do? If it's a
physical machine, then how do you add it? Well,
it's very tough nowadays, because you have to pull
the whole machine out from the rack, take
of the top off, add more memory physical memory or
add more CPU, sometimes it's not even available to
add more memory dims to a server. So if it's not
available do you have to add more server or buy a
new server. In virtual machine, that's the beauty
of virtual machine that you could add all those
stuff on the fly. So we will take our example of
our own virtual machine environment, our Oracle, and
we'll go over a few of the Settings that you could
change. Right now our virtual machine, the one
that runs Linux is Powered Off. So sometimes,
depending on the operating system, you could add
those resources on the fly, meaning hot add or hot
remove. So we go to a Setting. The first thing we
have in this Setting is the Name, if you want to
change the name of your virtual machine. This Name
is not the hostname of the virtual machine.
[No audio]
Again, what did I say this is not the name of the
hostname of virtual machine. This is just a name
that shows up right here.
This is the name. So if you want to change the
chamber change to something different, you could
change it. There's some other Advanced option that
if you want to create snapshots. Snapshots are
like a kind of backup, but it's not considered
backup. But if you are deploying a code in your
virtual machine, your Linux machine, and the
code doesn't work, you can always revert back to
your snapshot. So the location of the snapshot is
specified. If you do not like this location, you
could change it. Some other stuff you can look
into it in more detail Drag'n'Drop means if you
want to copy something from your desktop while you
have a virtual machine running and you want to
drag and drop inside of your virtual machine.
Right now it's Disabled. you could have it Host To
Guest or Guest To Host or Bidirectional, whichever
way you like you could have changed. So for now
I'll have it Bidirectional, so this way when I
start it up, if I want to copy something from my
desktop to my virtual machine, I could do that.
Then I have a Description here, what this virtual
machine is done, I could put some description like,
This VM was created by Imran Afzal
ZiL on so and so date. Then do you want the
machine to be encrypted? Meaning all the
transaction between your host and your virtual
machine, and each transaction going back and forth
do you want to encrypt it. So what is a host? Host is
your machine or your laptop where you are running
this Oracle VirtualBox, and virtual machine is
something that you have built on top of this
VirtualBox, and in our example, this is our
virtual machine. So this first setting, General
setting, then we have System. If you want to
change the memory of your system, then you could
change it. Right now you see the memory of your,
of our system is about 1024 MB, which is
equivalent to one gigabyte. If you want to change
it to two gig, three gig, you could simply put that
number here or click on these scroll up and down,
it will add it. The Boot Order of the machine is
going to go look for Floppy, followed by Optical,
then Hard Disk, and Network. If you want to go
straight to the Hard Disk, skipping CD or Floppy,
you could uncheck it. Same thing if you have your
hard computer, meaning when you have a physical
computer, you go to a BIOS and you do all that
setting, so you could set it up here . And some
other Extended Features, which we'll look
into it in more detail. Processor, right now we
have one processor running. Your users saying I
need two processor or my application requirement
is I need eight processor. You could go ahead and
change right here. And Acceleration, some of the
information, Hardware Virtualization, Acceleration,
you could check it to make it enhance which we
already have check. Next setting we have a Display.
The Video Memory we have right now 16 megabyte.
When you have, when we go to a machine and start,
and the images that come up, the graphical
interface or even terminal, sometimes you have the
option to increase the resolution. So if you have
limited Video Memory, you cannot increase those
resolution. So you could change the memory here.
Remote Display, same thing with all all of this
related to the display information and
configuration of the virtual machine. Then go to
Storage. Right now our storage is attached as IDE,
Empty, which is this disk is empty right now,
Controller is SATA, and our disk space that is
inside of our virtual machine is right here. And
it's telling us the virtual disk size is 10
gigabyte. And the Actual Size is four gigabyte.
What does it mean? It means that even though you
have allocated 10 gigabytes of disk space, right
now, the actual size that has been used is only
four gig. So what happened to the remaining six
gig? Well remaining six gig is not actually
completely allocated to your machine. However, if
your machine does need more disk, it will
automatically get it from your laptop or your
desktop storage. Audio is, if you have any external
audio anything or you want to use a Windows DirectSound
since I have Windows operating system
running, you could change that here. Network, we
have only one network adapter at this point. And
we change the network adapter to a different way
we want, we have Internal Network, which is to
communicate between our host which is our laptop,
or an old machine, same thing, Host-only Adapter,
and there is a Bridged Adapter. What Bridged
Adapter does, it's going to take IP address from
your own computer, and then it will communicate to
the outside world. Right now if you just connect
Host-only you cannot go outside on the internet.
If you want to go to outside internet, you select
Bridged Adapter. And then you click OK. So Adapter
2, we don't have it, Adapter 3 and 4, if
you want to assign more NIC adapters to your
virtual machine, you could go in and check this
mark. Serial Ports, any of the ports that you want
to connect, you will have it. USB, if you want to
attach a USB to your laptop that will be read by
your virtual machine, you enable this. Any Shared
Folder that you want to attach to this virtual
machine, and User Interface, how does it look you
want it to show in Full-screen, Seamless, or Show at
the Top of the Screen or any way that you like
right here it shows you when you have virtual
machine. These three few operational keys are
shown. If you don't want them to be shown you can
uncheck it. So we'll cancel it since we don't want
to add any resources. So this is all about
management of your virtual machine. And believe me
most of the time all virtual machine setup is done
just like that. You pretty much do right click on
the virtual machine and you do edit Setting or
setting depending on your virtual environment and
you could change the resources. This video is
important especially for those who wants to get a
job in Linux, or a job in system administration,
you will be asked sometimes the virtual related
questions because as I said in the beginning, 80%
of enterprise companies or organizations are running
their compute environment on virtual platform. So
I hope this lesson serves this purpose and you
enjoyed it and just get yourself familiarized with it.
[No audio]