Virtual Machines vs Containers

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone in this video we're going to talk about the difference between virtual machines and containers but before we talk about the difference between the two let's go back and talk about how things were before VMS and containers so the traditional way that a company or a business operates is by having applications running on servers and each server would just have one application running whether that application is running a website a database or email so it would be one application on one server and this was because the operating systems on these servers such as Linux and windows didn't really have the capability to run multiple applications securely on a single server so with each new application that a company or a business offered they would have to buy a new server for it to run on and on top of that the application wouldn't be able to take full advantage of the server's capability because modern servers today are so powerful that oftentimes the server is only running at 10 percent of its capacity so by running one application on one server turned out to be a big waste of money and also on the server's full potential so to fix this problem Engineers developed virtual machines virtual machines allows multiple applications to run on a single server by simulating hardware and software so for example if a company had three servers running one application each those three applications can be run on a single server by simulating those three servers and their applications by creating three virtual machines so now this one server is running three virtual or software-based machines it's running all of the different operating systems and also the applications such as databases web services and email and they're all running side by side on one machine so as you can see on this graphic to build virtual machines you start off with Hardware such as a server and then on top of the hardware there is software called a hypervisor a hypervisor is what allows one machine to run multiple virtual machines it's what allocates and controls the sharing of a machine's Hardware some common hypervisors are VMware esxi Citrix Zen server and Microsoft hyper-v and on top of the hypervisor are the virtual machines and each of these will have their own operating system such as Windows Linux and Unix and then on top of the operating systems there's the applications that these machines are going to be running so as you can see virtual machines solve the problem of wasting money on new servers but as great as they are they do have some drawbacks and one of them is that VMS can consume a lot of disk space and this is because each VM has its own dedicated operating system and because they have their own operating system VMS also consume a lot of RAM and CPU power from the server that could be used for other processes and VMS are slow to start up because since they have an entire operating system they do take time to boot up and with each VM it also requires a license for the operating system which costs even more money now let's talk about containers now containers are similar to VMS but the major difference is that where VMS simulate an entire machine containers only contain an application a container is an application that's been packaged with all the files configurations and dependencies necessary for it to run which basically means that it's bundled with everything that it needs to run on just about any Computing environment without having to add anything else to that computer so for example if a developer created a website and they wanted to distribute that website so it can be hosted on just about any other computer they can create a container for that website by bundling it with everything it takes for it to be hosted on another computer such as the libraries HTML code scripts web images and web server software then that container image can be distributed and hosted on just about any computer or server without adding any additional software or doing any configuration the container has everything it needs to run that website all in a convenient little package which is amazing and the leading software that is used to create manage and run containers is Docker Docker can run on Linux and windows machines so just like VMS to create containers you start off with Hardware such as a server and then on top of the hardware is an operating system such as Linux now instead of a hypervisor containers will use a container engine a container engine is what unpacks the container files and then hands them off to the core of the operating system which is the kernel so as I stated before the major difference between containers and virtual machines is that each VM contains an entire operating system which makes their file size larger which is why they are slower to boot up but on the other hand containers don't the containers share the underlying operating system that's on the server between them containers only contain an application which makes their file size much smaller and this is why containers are considered lightweight which also makes them lightning fast so while VMS can take minutes to boot up containers take milliseconds containers also consume less RAM and CPU power from the server than VMS now both VM files and container files are portable which means that you can move them easily to different machines but container files are a lot smaller which makes them Ultra portable now containers do have some disadvantages when compared to Virtual machines and one disadvantage is that the container file or image must be packaged to work with the same operating system of the server that it's running on so if the server's operating system is Linux then the container file must be Linux based if the operating system is Windows then the container must be Windows based but with virtual machines this isn't a problem a VM can run any operating system it wants another disadvantage is that since the containers share the underlying operating system between them that means that if the operating system on the server crashes then all the containers will go down so you can clearly see that both VMS and containers are amazing Technologies in fact some organizations use both of these Technologies on the same machine where they would have a server running VMS and inside those VMS they would be running containers utilizing maximum productivity but that being said Docker containers are clearly the future because of their size portability and speed hey guys are you tired of keeping track of your passwords does your computer look like this are you tired of forgetting your passwords well so was I so for the past three months I've been using RoboForm password manager RoboForm is the number one ranked password manager that makes your life easier by remembering passwords and logging you into websites automatically just remember your one master password and RoboForm remembers the rest it's that easy RoboForm automatically logs you into your favorite websites with one click so say goodbye to searching through text files notepads and Post-it notes of scribbled passwords RoboForm stores your passwords and logs you in with one click so there is no more typing RoboForm uses industry standard encryption for all your data so you can be absolutely sure that your information is secure and with over 20 years of experience and more than thirty thousand five star reviews RoboForm is the perfect solution for your password problems you can try RoboForm free for one of your devices or you can sync all of your passwords with all of your devices using RoboForm Everywhere and I have a discount Link in the description of this video so guys I want to thank you for watching this video please subscribe and I will see you in the next video
Info
Channel: PowerCert Animated Videos
Views: 451,812
Rating: undefined out of 5
Keywords: Virtual machines vs containers, virtualization, docker containers, what are containers, docker vs vm, docker vs virtual machine, virtual machines, containers vs virtual machines, docker tutorial, difference between docker and virtual machine
Id: eyNBf1sqdBQ
Channel Id: undefined
Length: 8min 57sec (537 seconds)
Published: Wed Dec 28 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.