computer science

profilesaalecynthia123
itec625week6.pdf

Redmond Magazine

IN-DPTH (HTTP://RDMONDMAG.COM/ARTICL/LIT/FATUR.APX)

Containers vs. Virtual Machines

The rie of container that run mall component known a micro-ervice ha generated a lot of uzz in the trenche of enterprie IT over the pat two

ear ecaue of the potential model for how organization architect infratructure and uild application. Container make it eaier to help accelerate

the move to the DevOp model. Although container have een around for a while in the Linux world, the're new to Window, et to deut with thi

fall' Window erver 2016 releae. Man organization are looking at emracing container, epeciall thoe with uine imperative that require a

more agile approach to reponding to the whim of cutomer, partner, upplier and even emploee. Nearl ever major IT plaer ha latched onto

the open ource container movement driven  Docker Inc.

At the recent DockerCon 16 conference in ea�le, Wah., 4,000 clearl eager a�endee learned how containerized micro-ervice will et the tage for

how the generation of application are deigned, uilt, deploed, and managed, ideal for erving the need of organization and IV alike who want to

uild cloud-native app or ridge legac o�ware into thi new world.

Thee emerging micro-ervice application are o�en referred to a Mode 2 app, which conit of lightweight container running mall app or

networked micro-ervice. Thi new tle of application i expected to replace the heavweight monolithic app that toda run in virtual machine

(VM). Doe that mean container will replace VM? A�er a�ending the two-da DockerCon in late June, I can explore how container and

containerized application compare to VM running traditional application and how Window erver 2016 and a revamped Hper-V will raie thi

quetion.

Window Container Tpe 

Firt, let' take a quick look at the forthcoming Window erver Container. aicall, a container i an iolated pace where an application can run

without a�ecting the ret of the tem or other container. Unlike VM, which are all eentiall the ame, there are two tpe of container in

Window erver 2016:

Window erver Container: Running directl on top of the Window erver O, Window erver Container provide application iolation through

proce and namepace atraction. All Window erver Container hare the ame kernel network connection and ae �le tem with the

container hot.

Hper-V Container: More ecure than Window erver Container, Hper-V Container each run in a highl optimized VM. With Hper-V

Container the kernel of the container hot in't hared with the Hper-V Container. Intead, the container ue the VM' ae O. Thi provide

a more ecure environment a the container are iolated from the underling hot, ut have more overhead.

The Window erver Container themelve are compatile with Hper-V Container and other Window erver Container. The new Nano deploment

option for Window erver i intended a a platform for running container.

Container and VM Architecture 

Container have een called the next generation of virtualization ecaue the provide application atraction in much the ame wa that VM provide

hardware atraction. Intead of virtualizing the hardware like a VM, a container virtualize at the O level. Container run at a laer on top of the hot

O and the hare the O kernel. Container have much lower overhead than VM and a much maller footprint. You can ee the Window erver

Container and Hper-V Container architecture in Figure 1.

 (~/media/ECG/redmondmag/Images/2016/09/0916red_F2Docker_Figure1_hires.ashx) [Click on image for larger view.]

Figure 1. The Windows Container Architecture

A illutrated, the VM run on top of a hpervior that' intalled directl on the are-metal tem hardware. ach VM ha it own emulated hardware,

O and application. VM can e paued, topped and tarted. The can e moved etween virtualization hot without an end-uer downtime 

uing technologie uch a live migration or vMotion.

Container are quite di�erent. The container runtime i intalled on top of the hot O and ever containerized appli cation hare the ame ae

underling O. ach container i iolated from the other container. Unlike VM where each VM ha it own individual kernel and O, container hare

the ame kernel, network connection and ae �le tem a the underling O. You don't need a whole new and eparate O, memor and torage a

ou would for a VM. ecaue container don't have to emulate phical hardware and the entire O, the're far maller and more reource-e�cient than

VM.

The releae of Window erver 2016 will ring a new option of uilding app aed on micro-ervice that run in Docker and

other tandard container. Doe that portend the end of the VM?

 Michael Ote 09/06/2016

Close this Advertisement

(https://redmondmag.com/articles/2017/07/28/windows-subsystem-for-linux-coming-this-fall.aspx)

Windows Subsystem for Linux Coming This Fall (https://redmondmag.com/articles/2017/07/28/windows-subsystem-for- linux-coming-this-fall.aspx)

(https://redmondmag.com/articles/2017/07/28/microsoft-online-services-and-compliance-risks.aspx)

Microsoft Online Services and Compliance Risks: Some Tips, Tricks and Directions (https://redmondmag.com/articles/2017/07/28/microsoft- online-services-and-compliance-risks.aspx)

(https://redmondmag.com/articles/2017/07/28/improve-hyperv-checkpoints.aspx)

How Microsoft Can Improve Hyper-V Checkpoints (https://redmondmag.com/articles/2017/07/28/improve-hyperv-checkpoints.aspx)

PRINTAL  FORMAT  (HTTP://RDMONDMAG.COM/ARTICL/2016/09/01/CONTAINR-V-VIRTUAL-MACHIN.APX?P=1)

Recommended: IT ecurit a�le: I Microo� All You Need? (h�p://redmondmag.com/whitepaper/2017/03/redmond-redmond-in-depth-report-

2.apx?tc=page0)

Featured

Container and VM torage 

 now mot people are familiar with VM torage. With VM one or more virtual dik provide the torage for the VM. There are di�erent tpe of �xed

virtual dik. VM have dnamic, �xed and di�erential virtual dik. In each cae the're tored a a �le on the virtualization hot or on a hared torage

location. The VM ee virtual dik a di�erent O drive.

Container torage i quite di�erent. Container don't ue virtual hard drive. The're deigned to e tatele, eail created and dicarded. Container

ue a concept commonl called andoxing to iolate an dik write from the underling hot. Once a container ha een tarted, all write action

uch a �le tem modi�cation, regitr modi�cation or o�ware intallation are captured in thi andox laer (ee Figure 2).

 (~/media/ECG/redmondmag/Images/2016/09/0916red_F2Docker_Figure2_hires.ashx) [Click on image for larger view.]

Figure 2. Container Storage Overview

In the center of Figure 2 ou can ee a running container uilt from two eparate container image. The container would ee thee a eparate

directorie. Thee image are unchanged when the container run. All of the container change are captured in the andox and  default would e

dicarded when the container i topped.

That all ound great, ut what if ou want to perit the change made from a container? There are a couple of wa that torage change are

perited uing container. You can ave our container with it change a a new image or ou can mount an exiting director from the hot on the

container.

You can mount a volume uing the -v parameter of the Docker run command. Thi will enale all �le from the hot director to e availale in the

container. An �le created  the container or change to �le in the mounted volume will e tored on the hot. You can mount the ame hot volume

to multiple container uing: docker run -it -v c:\ource:c:\containerdir windowervercore cmd.

A ingle �le can e mounted  pecifing the �le name intead of the director name.

  1   2 (HTTP://RDMONDMAG.COM/ARTICL/2016/09/01/CONTAINR-V-VIRTUAL-MACHIN.APX?PAG=2)  

3 (HTTP://RDMONDMAG.COM/ARTICL/2016/09/01/CONTAINR-V-VIRTUAL-MACHIN.APX?PAG=3)

NXT » (HTTP://RDMONDMAG.COM/ARTICL/2016/09/01/CONTAINR-V-VIRTUAL-MACHIN.APX?PAG=2)

Close this Advertisement

Windows 10 Fall Release Promises More Intelligence and Creative Hooks -- … 1 comment • 2 months ago•

Michael H — Graph sounds awesome!Do we know if it intends to offer file versioning as well? Or just "bookmark" which file I have …

How To Prevent the Use of USB Media in Windows 10 -- Redmondmag.com 2 comments • a month ago•

Cesar Cabrera — For that specific requirement you need a DLP solution that allows you to create specific policies for …

The Verdict Is In on Windows 10 S: and it's not Good -- Redmondmag.com 1 comment • a month ago•

barcodezero — Windows 10 is SPYWARE which makes it the least secure version of Windows ever made and a stripped down …

The Verdict Is In on Windows 10 S -- Redmondmag.com 2 comments • a month ago•

Joe — MS is really stupid putting Win 10 S on a $1,000 laptop and expecting schools to buy it. No school (at-least with intelligent …

ALSO ON REDMOND MAGAZINE

0 Comments Redmond Magazine Login1

Share⤤ Sort by Best

LOG IN WITH

OR SIGN UP WITH DISQUS

Name

Start the discussion…

?

Be the first to comment.

Subscribe✉ Add Disqus to your siteAdd DisqusAddd Privacy�

Recommend

comments powered by Disqus (http://disqus.com)  

Close this Advertisement