0% found this document useful (0 votes)
3 views

Tutorial 1 Revision cloud basics

The document compares traditional and virtual architecture, highlighting how virtualization allows multiple users to operate on shared hardware through hypervisors. It discusses the challenges of virtual machines, the differences between host and guest operating systems, and the types of hypervisors. Additionally, it outlines the benefits of private cloud computing, the advantages of running multiple servers on a single machine, and the role of virtualization in scalability and cost efficiency for organizations.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Tutorial 1 Revision cloud basics

The document compares traditional and virtual architecture, highlighting how virtualization allows multiple users to operate on shared hardware through hypervisors. It discusses the challenges of virtual machines, the differences between host and guest operating systems, and the types of hypervisors. Additionally, it outlines the benefits of private cloud computing, the advantages of running multiple servers on a single machine, and the role of virtualization in scalability and cost efficiency for organizations.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

What is Traditional vs.

Virtual Architecture
The cloud is a multi-tenant environment where multiple people
run services on the same server hardware. To achieve a shared
environment, cloud providers use virtualization technology.
Virtualization is achieved using a hypervisor, which splits CPU,
RAM, and storage resources between multiple virtual machines
(VMs). Each user on the hypervisor gets their own operating
system environment.
It should be noted that none of the individual VMs interact with
one another, but they all benefit from the same hardware. This
means cloud platforms like AWS can maximize resource
utilization per server with multiple tenants, enabling lower
prices for enterprises through economies of scale.

1
1. What are the significant challenges of using virtual
machines? List any four of them and explain how to
mitigate them.

Virtualization can introduce significant CPU and memory


overhead since the hypervisor must emulate hardware and
manage resources. This can lead to performance bottlenecks,
especially in I/O-intensive applications. Other challenges are
in the security domain, which includes data breaches, data
loss, insecure APIs, insufficient identity and access
management, and compliance issues. These risks arise from
shared infrastructure, lack of visibility, and vulnerabilities in
cloud configurations.

2. What are the host operating system (Host OS) and guest
operating system (Guest OS)? How do they differ?

Host Operating System (Host OS) and Guest Operating


System (Guest OS) are commonly used in virtualization.

Host Operating System (Host OS)

The Host OS is the operating system installed directly on the

2
physical hardware of a computer. It manages the hardware
resources and provides the environment in which
applications and, in the case of virtualization, virtual
machines (VMs) operate.

Key Features:

 Controls and manages physical hardware (CPU, memory,


disk, etc.).
 Supports virtualization software (e.g., VMware, VirtualBox,
Hyper-V, or KVM).
 Runs the hypervisor, which facilitates the creation and
management of virtual machines.

Examples:

Windows, Linux (e.g., Ubuntu, CentOS), MacOS. Guest


Operating System (Guest OS)

The Guest OS is installed within a virtual machine (VM). It operates


as if running on physical hardware, but it uses the virtual hardware
provided by the virtualization platform.

Key Features:

 Runs independently inside the VM.


 Relies on virtualized resources provided by the Host OS
through the hypervisor.
 It can be a different OS than the host OS.

Examples: the Host OS is Windows, the Guest OS can be Linux,


another version of Windows, or any compatible OS.

Differences between Host OS and Guest OS

Feature Host Operating System Guest Operating System


Manages physical hardware and Runs inside a VM for specific tasks or
Purpose
hosts VMs. environments.

3
Resource Directly accesses physical Accesses hardware through virtualized
Access hardware. interfaces.
Independent, installed on physical Dependent on Host OS and hypervisor for
Dependency
hardware. operation.
Usage General purpose, virtualization, Testing, development, and running multiple
Scenario and other tasks. OS environments.
Linux on Windows Host or Windows on
Examples Windows, Linux, macOS.
Linux Host.

Example Scenario:

1. A developer uses Ubuntu Linux as the Host OS on their


laptop. They create a virtual machine using VirtualBox or VMware,
installing Windows 10 as the Guest OS to test software.

The Host OS provides the foundation for virtualization, while the


Guest OS operates within this virtualized environment for specific
purposes.

3. How can you enable two VMs to communicate with


each other in VirtualBox without external internet access?

To enable two virtual machines (VMs) to communicate with


each other in VirtualBox without using external internet
access, you can configure their network adapters to use
Internal Networking.

It involves setting and configuring the Network Adapter in the


VM as an Internal Network by selecting the name given for a
private network. The next step is to assign IP Addresses in the
network setting. The Internal Networking does not use a DHCP
server by default. Assign a static IP address manually within
the same subnet.

For example:

VM1: 192.168.1.1/24
VM2: 192.168.1.2/24
4
In Windows, go to Network and Sharing Center > Change
adapter settings and modify the IP settings.

1. Verify Connectivity:
Use the ping command to test connectivity between the
VMs.
ping 192.168.1.2 # From VM1 to VM2
ping 192.168.1.1 # From VM2 to VM1

Advantages of Using Internal Networking

 Isolated Network: The VMs are entirely isolated from the


host and external networks, enhancing security.
 No Internet Dependency: Communication happens solely
within the VMs.
 Ideal for Testing: Perfect for testing services or protocols
between VMs without outside interference.

By setting this up, the VMs can communicate directly with


each other while remaining isolated from the host machine and
the external internet.

4. What is the difference between Type 1 and Type 2 hypervisors


in server virtualization?

The primary difference between Type 1 and Type 2 hypervisors is


their interaction with hardware and host operating systems,
impacting their performance, resource utilization, and typical use
cases.

Type1 hypervisors are better suited for high-performance


enterprise environments, while Type 2 hypervisors are more
appropriate for smaller-scale applications and development tasks
where simplicity is key.

Type 1

5
A Type 1 hypervisor runs directly on the physical hardware, acting
as the primary operating system. It manages the hardware
resources and creates virtual machines (VMs) without requiring a
host OS. It provides high performance and stability isolated from
traditional OS vulnerabilities, making it ideal for critical enterprise
applications.
Examples are VMware ESXi, Microsoft Hyper-V (bare-metal
version), Citrix XenServer, KVM (when used on a Linux-based host
as part of the kernel). Use Cases are in Enterprise data centers,
Cloud infrastructure, and High-performance virtualized servers
and are optimized for large-scale environments with minimal
overhead.

Type 2

A Type 2 hypervisor runs on top of an existing host operating


system like Windows, macOS, or Linux.
It relies on the host OS for hardware interaction, which can
introduce additional overhead.
It is user-friendly and accessible for personal or smaller-scale use
cases.
It is also compatible with various host OSs, making it ideal for
development and testing.

Examples are VMware Workstation/Player, Oracle VirtualBox,


Parallels Desktop, QEMU (in hosted mode).

The use cases are


(1) Personal use for running multiple OSs on a single device,
(2) Development and testing environments, and
(3) Scenarios where ease of setup is prioritized over raw
performance.

Key Differences

Scope Type 1 Hypervisor Type 2 Hypervisor


Runs directly on the hardware (bare Runs on a host operating system.
Layer
metal).

6
Performance Higher performance, lower latency. Slightly lower due to host OS overhead.
Resource Efficient with direct hardware Less efficient due to intermediate host
Efficiency management. OS.
Complexity Requires more setup and expertise. Easier to install and use.
Large-scale servers, cloud Personal, testing, or development.
Use Cases
environments.

5. What motivates organizations to adopt private cloud


computing? How does virtualization enhance private
cloud computing?

Organizations are adopting private cloud computing due to its unique


combination of control, security, and flexibility.

They adopt private cloud computing to gain greater control, meet


compliance standards, ensure data security, and optimize resource
utilization.

Virtualization enhances private cloud environments by enabling efficient


resource management, scalability, and automation.

Private cloud computing and virtualization empower organizations to


achieve a secure, cost-effective, and agile IT infrastructure.

Using virtualization, organizations can consolidate multiple servers onto a


single physical machine, significantly improving resource utilization, cost
efficiency, and operational flexibility. The motivations are:

1. Enhanced Data Security and Privacy:


o Private clouds are dedicated to a single organization,
ensuring that sensitive data remains within control. This
is crucial for industries with strict compliance
requirements, such as healthcare, finance, and
government.
2. Customization and Control:
o Organizations can tailor private cloud environments to
meet specific needs, including hardware configurations,
7
software stacks, and security policies, which is difficult
with public clouds.
3. Compliance and Regulatory Requirements:
o Many regulations mandate strict data handling and storage
practices. Private clouds make it easier to meet these
requirements since the organization retains complete
control over the infrastructure.
4. Cost Efficiency for Large-Scale Use:
o For organizations with consistent, high-demand workloads,
private clouds can be more cost-effective in the long run
compared to public cloud services.
5. Performance and Reliability:
o Dedicated resources in a private cloud eliminate the "noisy
neighbor" problem seen in public clouds, ensuring
consistent performance.
6. Integration with Legacy Systems:
o Many organizations need to integrate modern cloud
capabilities with existing on-premises systems. Private
clouds provide the flexibility to bridge legacy and modern
infrastructure.

Virtualization in private cloud computing has the following benefits.

1. Resource Utilization and Optimization:


o Virtualization allows physical servers to run multiple virtual
machines (VMs), maximizing hardware utilization and
reducing the need for dedicated physical servers for each
workload.
2. Scalability and Flexibility:
o Virtualization enables dynamic allocation of resources.
Organizations can quickly scale up or down based on
demand without purchasing or decommissioning
physical hardware.
3. Isolation and multi-tenancy:
o VMs created through virtualization operate in isolated
environments, ensuring that workloads do not interfere
with each other. This isolation enhances security and
reliability.
4. Simplified Management:

8
o Virtualized environments are easier to manage using
centralized tools that control VMs, storage, and network
configurations. This streamlines private cloud
operations.
5. Disaster Recovery and Backup:

o Virtualization facilitates snapshotting and cloning of


VMs, enabling quick recovery of workloads in case of
hardware failure or other disruptions.
6. Cost Efficiency:
o By consolidating workloads on fewer physical servers,
virtualization reduces hardware, energy, and maintenance
costs, making private cloud adoption more affordable.
7. Support for Automation:
o Virtualization technologies integrate well with cloud
automation tools, enabling auto-scaling, load balancing,
and self-service provisioning in private cloud
environments.

6. What are the benefits of running all these servers


on a single machine? Name the tool required to
implement this process.

Running multiple servers on a single machine offers several benefits, primarily


enabled by virtualization or containerization technologies.

Benefits

1. Cost Efficiency:
oReduces the need to purchase multiple physical
servers, lowering hardware costs.
o Decreases power consumption, cooling
requirements, and physical space needs.
2. Resource Optimization:
o Maximizes the utilization of a single machine's
CPU, memory, and storage by allocating these
resources dynamically to different servers.
3. Simplified Management:
o Centralized management of multiple servers on

9
one physical machine simplifies maintenance
and monitoring.
4. Flexibility and Scalability:
o Servers can be added, removed, or
reconfigured quickly without altering the
physical infrastructure.
5. Isolation:
o Virtual servers or containers operate in isolated
environments, ensuring that a failure or
change in one does not affect others.
6. Disaster Recovery and Backup:
o Virtual machines (VMs) and containers can be
easily backed up, cloned, or migrated to
another machine, facilitating disaster
recovery.
7. Testing and Development:
oDevelopers can run multiple test environments
or applications on one machine, mimicking
different production scenarios without requiring
multiple physical servers.
8. Environment Consistency:
o Ensures uniformity across development, testing,
and production environments, reducing
configuration issues.

The tool Required to Implement Virtualization is Hypervisor.


Examples are VMware ESXi, Microsoft Hyper-V, Oracle
VirtualBox, and KVM (Kernel-based Virtual Machine). These
tools create virtual machines (VMs), each running its
operating system.

7. Does virtualization support scalability? How?

Virtual environments can be easily scaled up or down by adding


or removing virtual machines, enabling organizations to respond
quickly to changing demands without significant hardware
adjustments.

10
8. How is virtualization valuable in a small start-up
organization?

Virtualization is beneficial for a small start-up organization


because it allows them to efficiently manage their IT
infrastructure with minimal hardware, significantly reducing costs
while providing flexibility to scale their operations quickly as the
business grows, simplifying management tasks and improving
disaster recovery capabilities.
*****

11
12

You might also like