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

CSS - Experiment - 02

The document discusses implementing hosted virtualization using VirtualBox. It defines virtualization, its benefits like efficient resource use and automated IT management. It then discusses installing VirtualBox and adding users to required groups to run virtual machines. The conclusion states the goal of learning to implement hosted virtualization using VirtualBox was achieved.

Uploaded by

lalitjajooce2021
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

CSS - Experiment - 02

The document discusses implementing hosted virtualization using VirtualBox. It defines virtualization, its benefits like efficient resource use and automated IT management. It then discusses installing VirtualBox and adding users to required groups to run virtual machines. The conclusion states the goal of learning to implement hosted virtualization using VirtualBox was achieved.

Uploaded by

lalitjajooce2021
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Experiment : 02

Title : To study and implement Hosted Virtualization using VirtualBox.

Objective: To know the concept of Virtualization along with their types, structures and
mechanisms. This experiment should demonstrate the creating and running Virtual machines
inside hosted hypervisors like VirtualBox and KVM with their comparison based on various
virtualization parameters.

Theory :

● What is Virtualization?

Virtualization is technology that you can use to create virtual representations of servers, storage,
networks, and other physical machines. Virtual software mimics the functions of physical
hardware to run multiple virtual machines simultaneously on a single physical machine.

● What are the benefits of virtualization?


1. Efficient resource use
2. Automated IT management
3. Faster disaster recovery

● Why is virtualization important?

By using virtualization, you can interact with any hardware resource with greater flexibility.
Physical servers consume electricity, take up storage space, and need maintenance. You are
often limited by physical proximity and network design if you want to access them. Virtualization
removes all these limitations by abstracting physical hardware functionality into software. You
can manage, maintain, and use your hardware infrastructure like an application on the web.

The techniques and features that Oracle VM VirtualBox provides are useful in the following
scenarios:

● Running multiple operating systems simultaneously. Oracle VM VirtualBox enables


you to run more than one OS at a time. This way, you can run software written for one
OS on another, such as Windows software on Linux or a Mac, without having to reboot
to use it. Since you can configure what kinds of virtual hardware should be presented to
each such OS, you can install an old OS such as DOS or OS/2 even if your real
computer's hardware is no longer supported by that OS.
● Easier software installations. Software vendors can use virtual machines to ship entire
software configurations. For example, installing a complete mail server solution on a real
machine can be a tedious task. With Oracle VM VirtualBox, such a complex setup, often
called an appliance, can be packed into a virtual machine. Installing and running a mail
server becomes as easy as importing such an appliance into Oracle VM VirtualBox.
● Testing and disaster recovery. Once installed, a virtual machine and its virtual hard
disks can be considered a container that can be arbitrarily frozen, woken up, copied,
backed up, and transported between hosts.
Using virtual machines enables you to build and test a multi-node networked service, for
example. Issues with networking, operating system, and software configuration can be
investigated easily.
In addition to that, with the use of another Oracle VM VirtualBox feature called
snapshots, one can save a particular state of a virtual machine and revert back to that
state, if necessary. This way, one can freely experiment with a computing environment. If
something goes wrong, such as problems after installing software or infecting the guest
with a virus, you can easily switch back to a previous snapshot and avoid the need of
frequent backups and restores.

● Infrastructure consolidation. Virtualization can significantly reduce hardware and


electricity costs. Most of the time, computers today only use a fraction of their potential
power and run with low average system loads. A lot of hardware resources as well as
electricity is thereby wasted. So, instead of running many such physical computers that
are only partially used, one can pack many virtual machines onto a few powerful hosts
and balance the loads between them.

● Installing VirtualBox

Step 1: Install KVM Packages

1. First, update the repositories: sudo apt update

2. Then, install essential KVM packages with the following command:


sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

This will start the installation of four KVM packages:


3. When prompted, type Y, press ENTER, and wait for the installation to finish.

Step 2: Authorize Users


1. Only members of the libvirt and kvm user groups can run virtual machines. Add a user to the
libvirt group by typing:

sudo adduser ‘username’ libvirt

Replace username with the actual username.

2. Now do the same for the kvm group: sudo adduser ‘[username]’ kvm

Step 3: Verify the Installation

1. Confirm the installation was successful by using the virsh command: virsh list --all

You can expect an output as seen below:

2. Or use the systemctl command to check the status of libvirtd:


sudo systemctl status libvirtd

If everything is functioning properly, the output returns an active (running) status.

3. Press Q to quit the status screen.

4. If the virtualization daemon is not active, activate it with the following command:

sudo systemctl enable --now libvirtd

Conclusion :
We learned how to implement Hosted Virtualization using VirtualBox.

You might also like