3500 (Virtualization + Cloud)

Virtualization vs Containerization 


On a regular computer: 

  • Data on applications 

  • Applications on operating system 

  • Operating system on hardware 

  • Hardware (physical computer) on network 



Virtualization 


Virtualization in IT means creating something that looks like a computer but isn’t. 

It allows you to put more than one server on one piece of hardware. 


Before virtualization was invented, the average server in a data center was only running at about 17% utilization- meaning 83% of the hardware was not being used, wasting significant space and energy. 


Normally, you can’t have two operating systems running on the same hardware, because each operating system thinks it controls all of the hardware. 

They would interfere with each other and compete for memory.  

With virtualization, you can do this, as it divides hardware space for each OS. 


Virtualization abstracts hardware to run multiple OS. 

You can then virtualize and make copies of the OS to make this more efficient. 


Benefits of Server Virtualization: 

  • Improved hardware utilization 

  • Cost reduction 

  • Increased flexibility and scale by copying VMs 

  • Business agility:

    • Ability to back up and snap shot VMs so users can’t change them 

    • Multiple operating systems working at once 

    • Transferrable between hosts (because a VM is one file)


Seven Forms of Virtualization: 

  • Server virtualization 

  • Desktop virtualization

  • Storage virtualization

  • Network virtualization

  • Memory virtualization

  • Application virtualization

  • Data/OS virtualization 



Type 1 (Bare Metal) Virtualization

In a virtualized environment, instead of installing an operating system on hardware, you install a hypervisor on the hardware. 


Hypervisor- Software that actually virtualizes and makes copies of an OS. Allows you to create virtual machines, installing operating systems for each new one. You now have multiple computers/servers on the same hardware. 


Virtual Machine- The joint operating system and application(s) created by a hypervisor. An entire virtual machine (could be the size of an average person’s computer, which can contain over a million files) is saved as one file. 

Virtual machines are not tied to a specific host, and can be copied and pasted as files to other hardware to make it easier to update, monitor, and backup servers. This is EXTREMELY efficient and powerful. (But it may require changing the IP address and MAC address of the new pasted virtual machines). 

Zero Downtime Migration- Continuous service availability granted by being able to copy and paste VMs, the major advantage of virtualization.



The hypervisor allocates CPU, RAM, and storage to each VM independently.


So layout is 

  • Apps on OS in virtual machines 

  • Virtual machines on hypervisor 

  • Hypervisor on hardware 

Type 1 is used in data centers.  


Because of the hypervisor, they cannot talk to each other (security risk), and they cannot talk to the hardware (as mentioned will crash the computer). 



Type 2 (Hosted) Virtualization

Same concepts, but layout is: 

  • Data on Apps on OS in virtual machines 

  • Virtual machines on hypervisor application 

  • Hypervisor application on main OS 

  • Main OS on hardware 


Type 2 is not used on data center servers. It is for lab technicians and engineers who want to experiment with different operating systems besides their main one. 

Most of the time they are using the main OS, when they want to use another, they turn on their hypervisor and then use a virtual machine. This means there is less memory for the hypervisor to use, and the virtual machines all depend on the main OS. 

This makes Type 2 virtualization slower and riskier than Type 1.




Containerization


If one virtual machine has a Windows OS and is running accounting software that is so busy you need to set up another virtual machine to do the same thing, you now have two identical virtual machines. 

This can work, but it is excessive. If you just want to replicate the accounting software, you don’t need a whole new virtual machine. 


With containerization,

Instead of copying the virtual machine, 

You just copy the installed, running application (accounting software) into a container. 

With the container you can treat applications as individual files. 


Containerization abstracts the OS to run multiple applications. 

You virtualize and make copies of applications. 


This is often faster for specific and simpler tasks like the one mentioned above. 


Container Engine- Software that allows you to read a container and see exactly how the application is supposed to be installed and used on the main operating system.  

Docker is the most famous container engine. There are versions specialized for different OS. 


This is critical for avoiding having to install software. So much faster. 


Orchestration- When, as an admin, you say what environments need to look like. 

If you need multiple people using the same accounting software, you are deciding what the application is actually doing. 

  • Kubernetes (K8s) is the most famous open-source container orchestration tool. 


Remote Desktop- Entering commands on your computer, while actually controlling another. 

What we do in the labs- I am using a Mac, but actually controlling a Windows desktop. 

A pretty revolutionary technology. 


Virtual Desktop Infrastructure (VDI)- When virtual machines act as hosts for people to use. 

One of the seven forms of virtualization. My computers at work use this. 

This means you do not have to actually get new computers when you open up an office, you just need to 



Virtualization and Containerization are alternatives but they are not mutually exclusive. Businesses use both virtualization and containers. You can create a customized VM with requested storage, and then request specific software that gets sent and downloaded onto the VM in containers. Using both you can build entire files using copying and pasting.







NIST Definition of Cloud Computing- The most important document in cloud computing. It is 14 years old but the standards it sets are still just as important today. Last two pages: 


Cloud Computing is providing IT services (servers, storage, software, etc) as a service rather than owning and operating them yourself. 

  • Gmail is a classic example- Google is responsible for running it, but you have access to it. Building your own email server would be ridiculously expensive. 


NIST- Cloud Computing is a model for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources that can be rapidly provisioned and released with minimal management effort or service provider interaction. This cloud model is composed of 5 essential characteristics, 3 service models, and 4 deployment models.


Five Essential Characteristics:


On-demand self-service. A consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with each service provider. You can start using the cloud totally by yourself. 


Broad network access. Capabilities are available over the network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, tablets, laptops, and workstations). Cloud is available through various means. 


Resource pooling. The provider’s computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to consumer demand. There is a sense of location independence in that the customer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter). Cloud providers can use different means to actually provide and back up the IT resources. 


Rapid elasticity. Capabilities can be elastically provisioned and released, in some cases automatically, to scale rapidly outward and inward commensurate with demand. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be appropriated in any quantity at any time. The cloud can be expanded/shrunk if necessary. 


Measured service. Cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g.,storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency for both the provider and consumer of the utilized service to determine costs. You only get billed for the cloud services you use. 



Three Service Models:


Pretext: A cloud infrastructure is the collection of hardware and software that enables the five essential characteristics of cloud computing. The cloud infrastructure can be viewed as containing both a physical layer and an abstraction layer. 

The physical layer consists of the hardware resources that are necessary to support the cloud services being provided, and typically includes server, storage and network components. 

The abstraction layer consists of the software deployed across the physical layer, which manifests the essential cloud characteristics. Conceptually the abstraction layer sits above the physical layer. 


1- Software as a Service (SaaS). The capability provided to the consumer is to use the provider’s applications running on a cloud infrastructure. The applications are accessible from various client devices through either a thin client interface, such as a web browser (e.g., web-based email), or a program interface. The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user- specific application configuration settings.


2- Platform as a Service (PaaS). The capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages, libraries, services, and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, or storage, but has control over the deployed applications and possibly configuration settings for the application-hosting environment.


3- Infrastructure as a Service (IaaS). The capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, and deployed applications; and possibly limited control of select networking components (e.g., host firewalls). 


NIST SP 800-145 Framework 

In each service model, a green tab implies the user is responsible for that resource and an orange tab implies the cloud provider is responsible for it. 

In order of most to least responsibility for the user: 

On-Premises → IaaS → PaaS → SaaS. 

You own everything when on-premises and you own nothing in SaaS. With IaaS you effectively own a VM (O/S, middleware, runtime, data, apps) and platforms provide the physical base. And with PaaS you only own your personal software (data and applications only) and platforms provide everything else.



Four Deployment Models:


Private cloud. The cloud infrastructure is provisioned for exclusive use by a single organization comprising multiple consumers (e.g., business units). It may be owned, managed, and operated by the organization, a third party, or some combination of them, and it may exist on or off premises. 

If you have all five essential cloud characteristics, use one of the three service models, and keep use within your organization, then you have a private cloud. 


Community cloud. The cloud infrastructure is provisioned for exclusive use by a specific community of consumers from organizations that have shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be owned, managed, and operated by one or more of the organizations in the community, a third party, or some combination of them, and it may exist on or off premises. 

A mix of public and private in which a broad community- but not a specific legal entity- is using the cloud infrastructure (like doctors having an insurance record database). The people using it have a shared interest but are not all part of the same organization. 


Public cloud. The cloud infrastructure is provisioned for open use by the general public. It may be owned, managed, and operated by a business, academic, or government organization, or some combination of them. It exists on the premises of the cloud provider.

Google, Amazon, Microsoft, and their services are a public cloud. 


Hybrid cloud. The cloud infrastructure is a composition of two or more distinct cloud infrastructures (private, community, or public) that remain unique entities, but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load balancing between clouds).

Ambiguous meaning. Could mean a lot of different things. Salesforce works this way. But technically so does a fully on-premise data center that is connected to the cloud. 


The NIST Document had to be created by the US government to define what a cloud is. Otherwise anyone was creating a “cloud” for themselves, like the internet.