Question

In: Computer Science

What problems would be solved by moving from virtual machines to containers?

What problems would be solved by moving from virtual machines to containers?

Solutions

Expert Solution

A virtual machine was first defined by Popek and Goldberg as “an efficient, isolated duplicate of a real machine.” Even earlier than that formal definition of VMs, a form of virtualization for mainframes was invented and used internally in the 1960s by engineers at IBM. VMs using a hypervisor, which creates and manages VMs on a physical machine became commercially available in 1972.

Virtual machines provide an abstraction of the physical machine that includes BIOS, network adapters, disk and CPU. Every virtual machine running on a physical server runs a separate instance of the operating system. In fact, virtual machines deployed to a server can run different versions of the operating system or even different operating systems. A hypervisor creates and runs the different virtual machines.

Containers are comparatively newer than virtual machines, with implementation becoming more common only in the past eight years. The idea originated in 1979 with UNIX chroot, which provided isolated disk space for each process in a UNIX operating system. In the early 2000s, early container technology FreeBSD Jails was introduced. Innovation was incremental over time until 2008 when the LXC Project released the first Linux container manager.

With containers, the operating system, not the physical hardware, is virtualized. Applications are run in containers as microservices that provide the entire runtime image, including libraries and any other dependencies.

Instead of using a separate hypervisor to provide virtualization, containers like Docker rely on the functionality of the underlying OS kernel to restrict an application to certain features and file systems. In containers, applications share the kernel but have separate user spaces.

When to use virtual machines over containers

Because VMs and containers meet different needs, there’s a place for both within a company. In fact, they shouldn’t be evaluated as alternatives to each other. Instead, enterprises need to recognize that they address the issues of different user bases who have different concerns.

Use VMs to address issues at the hardware level and in the data center, and are appropriate when you need to:

  • run multiple operating systems, such as when testing prior to an upgrade
  • make it easier and faster to bring new servers online

Containers help application teams or DevOps teams package software and improve the release process. Containers make it possible to:

  • develop and test more effectively by mirroring production environments
  • package a piece of software to ensure consistency across multiple deployments
  • deploy microservices providing small, discrete services.

Related Solutions

What are the problems that occur with concrete that can be solved by nanotechnology?
What are the problems that occur with concrete that can be solved by nanotechnology?
Discuss the impact of Storage on Virtual Machines
Discuss the impact of Storage on Virtual Machines
Assume Tianqi Distributors and Aseel Shipping are the only two firm moving containers from Asia to...
Assume Tianqi Distributors and Aseel Shipping are the only two firm moving containers from Asia to Europe. The payoff matrix below shows their annual profits in millions of euros that each firm could earn at different capacities. Aseel Shipping’s profit is on right hand side number in each cell and Tianqi Distributors’ profit is on the left-hand side of each cell. At their current capacities (with no expansion) Aseel Shipping is earning 40 million euros and Tianqi Distributors is earning...
Discuss about different types of virtual machines and their deployment.
Discuss about different types of virtual machines and their deployment.
28. Fluid Momentum problems are solved with the aid of two diagrams of such problems. Explain,...
28. Fluid Momentum problems are solved with the aid of two diagrams of such problems. Explain, list or define items which would be included on each of the two diagrams required, and describe or show features common to both diagrams. Why are these two drawings typically kept separate? 29. Propellers and turbines are similar in that both act as screws. Attribute each of the following to Props, Turbines, or Both: a. __________Average velocity through the blades, (V1 + V2)/2 b....
What can go wrong in an international pollution market? How could these problems be solved?
What can go wrong in an international pollution market? How could these problems be solved?
1 What is a pure virtual function? Why would you define a pure virtual function? Give...
1 What is a pure virtual function? Why would you define a pure virtual function? Give an example of a pure virtual function. 2 When a function has an object parameter that it doesn't modify, what is the best way to declare the parameter (in the function signature), and why? 3 Show an example using a function with a string object parameter. a) When a class has objects as data members, why should its constructors use initialization lists (member and...
Briefly explain the concepts of the virtual machines and physical server are connected together
Please briefly explain the concepts of the virtual machines and physical server are connected together, would there router swtiches invovled?
Need examples of problems and proofs being solved surrounding group cohomology
Need examples of problems and proofs being solved surrounding group cohomology
Data centers today are populated with not only physical hardware but systems hosting virtual machines and...
Data centers today are populated with not only physical hardware but systems hosting virtual machines and containers. These systems communicate locally and around the globe over networks. Discuss 2 different examples of threats to various parts of heterogeneous architectures and how they might manifest. Do not forget about the hardware, operating systems, applications, networks, and other integral parts. Discuss the threats in your classmates’ posts.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT