Back to Learnings

Cloud & Virtualization Fundamentals

Cloud & Virtualization Fundamentals: A Simple Guide

This guide breaks down the core concepts of cloud computing and virtualization, explaining the technology that powers much of the modern internet.

1. Virtualization: Creating Virtual Computers

At the heart of cloud computing is virtualization.

  • What it is: Virtualization is the process of creating a virtual, or "pretend," version of something, like a computer, a server, or a storage device. It allows you to run multiple operating systems and applications on a single physical machine.

  • The Key Tool: The Hypervisor

    • A hypervisor is specialized software that creates and manages virtual machines (VMs).
    • A VM is a complete, self-contained computer that runs inside another computer. It has its own virtual CPU, memory, and storage, but it's all just a clever division of the physical hardware's resources.

Two Types of Hypervisors

There are two main kinds of hypervisors, and the difference is where they are installed.

a. Type 1: Native (or "Bare-Metal") Hypervisor

  • How it works: This hypervisor is installed directly onto the physical hardware of the computer, just like a regular operating system. The VMs then run on top of the hypervisor.

  • Analogy: A Type 1 hypervisor is like building a house directly on a solid foundation (the hardware). It's very efficient and stable.

  • Where it's used: This is the standard for businesses and data centers because it's fast and powerful.

  • Examples: VMware vSphere/ESXi, Microsoft Hyper-V.

b. Type 2: Hosted Hypervisor

  • How it works: This hypervisor runs as an application on top of an existing operating system (like Windows or macOS). You install it just like any other program.

  • Analogy: A Type 2 hypervisor is like running an app on your phone or computer. The app (the hypervisor) creates and manages the VMs inside it.

  • Where it's used: Perfect for individual users, developers, and for testing purposes, like running a Linux virtual machine on your Windows laptop.

  • Examples: Oracle VirtualBox, VMware Workstation.

2. Cloud Storage: Your Files on the Internet

Cloud storage is a model where you store your data on remote servers that you access through the internet. It's like having a digital storage locker.

Three Varieties of Cloud Storage

a. Cloud Storage Applications

  • What they are: These are services that give you space on their servers to store your files.

  • How they work: You upload your files, and the service takes care of storing and securing them. You can then access these files from any device with an internet connection.

  • Example: Google Drive, Dropbox, and Microsoft OneDrive. You can open a document on your laptop, make changes, and then see those same changes on your phone because the file lives in the cloud.

b. File Synchronization

  • What it is: This is the process that keeps your files identical across all your devices.

  • How it works: Cloud storage apps create a special folder on your computer. Anything you put in that folder is automatically uploaded to the cloud. When you install the app on another device, it downloads the files to a similar folder, and any changes you make on one device are automatically synced to all the others.

  • Example: You save a photo to your Dropbox folder on your PC. A few moments later, that same photo appears in the Dropbox app on your phone, ready to be viewed.

c. Content Delivery Networks (CDNs)

  • What they are: A CDN is a network of servers distributed all around the world. These servers store copies of website content, like images, videos, and code.

  • How they work: When you visit a website that uses a CDN, your browser downloads the content from the server that is geographically closest to you.

  • Why it's important: This dramatically reduces loading times. Instead of fetching a video from a server in California, a user in the Philippines can get it from a server in Singapore, making the website feel much faster.

  • Example: Netflix and YouTube use CDNs to stream videos smoothly to millions of users worldwide.

3. Cloud Deployment Models: How the Cloud is Built

A deployment model defines who owns the cloud infrastructure and who has access to it.

a. Public Cloud

  • What it is: The cloud infrastructure is owned by a third-party provider (like Amazon, Google, or Microsoft) and is shared by many different organizations and users over the internet.

  • Tenancy Model: This is a multitenant environment. Multiple customers (tenants) share the same physical hardware resources, but their data is kept logically separate and secure from each other.

  • Pros: Very cost-effective. You pay only for what you use. No need to buy expensive servers upfront.

  • Cons: Less control. The provider controls maintenance, updates, and security policies.

  • Example: AWS, Google Cloud, Microsoft Azure.

b. Private Cloud

  • What it is: The cloud infrastructure is dedicated to a single organization. It can be hosted on the organization's own premises or by a third-party provider, but it's not shared with other organizations.

  • Pros: More control and security. The organization can customize everything to its needs.

  • Cons: More expensive. The organization has to pay for the entire infrastructure, even if it's not fully utilized.

  • Example: A bank hosting its own cloud infrastructure in its data center.

c. Hybrid Cloud

  • What it is: A combination of public and private clouds. Some data and applications are kept on a private cloud, while others are in the public cloud.

  • Pros: Flexibility. You can keep sensitive data private while using the public cloud's cost efficiency for less sensitive operations.

  • Cons: More complex to manage.

  • Example: A company keeps its financial records on a private cloud but uses AWS for its web-facing application.

4. Cloud Computing Service Models

a. Infrastructure as a Service (IaaS)

  • What it is: You rent raw computing resources (servers, storage, networking) from the cloud provider. You manage the operating system, middleware, and applications yourself.

  • Analogy: It's like renting empty office space. You get the building, utilities, and internet connection, but you furnish it and decide what happens inside.

  • Example: AWS EC2 (Elastic Compute Cloud) lets you rent virtual servers by the hour.

b. Platform as a Service (PaaS)

  • What it is: The cloud provider gives you a complete development and deployment environment in the cloud. You focus on developing your application; the provider handles the infrastructure and tools.

  • Analogy: It's like renting a fully furnished office. Everything is set up for you to start working immediately.

  • Example: Google App Engine allows developers to build and deploy applications without managing the underlying servers.

c. Software as a Service (SaaS)

  • What it is: The cloud provider hosts and manages the entire application. You just use it through a web browser. No installation required.

  • Analogy: It's like using a service you can access anywhere. You don't own the office; you just show up and use it.

  • Example: Gmail, Microsoft Office 365, Salesforce CRM.

5. Security in the Cloud

Cloud security is a shared responsibility:

  • Provider's Responsibility: Securing the infrastructure, data centers, and networks.

  • Your Responsibility: Securing your data, managing access controls, and using the service securely.

  • Data Loss Prevention (DLP): Helps prevent sensitive data from being leaked or stolen by enforcing encryption and data loss prevention (DLP) policies.