0% found this document useful (0 votes)
2 views2 pages

Create Virtual Machines on Ubuntu

The document outlines an experiment for MCA students at Bharatiya Vidya Bhavan's Sardar Patel Institute of Technology, focusing on creating and running virtual machines using Ubuntu and hosted hypervisors like VirtualBox, KVM, and QEMU. It details the objectives, concepts, steps for installation, and common issues faced during the process. The document also includes a link to a video tutorial for Windows users to utilize WSL for similar tasks.

Uploaded by

shantanujoshi445
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Create Virtual Machines on Ubuntu

The document outlines an experiment for MCA students at Bharatiya Vidya Bhavan's Sardar Patel Institute of Technology, focusing on creating and running virtual machines using Ubuntu and hosted hypervisors like VirtualBox, KVM, and QEMU. It details the objectives, concepts, steps for installation, and common issues faced during the process. The document also includes a link to a video tutorial for Windows users to utilize WSL for similar tasks.

Uploaded by

shantanujoshi445
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Bharatiya Vidya Bhavans’

Sardar Patel Institute of Technology


Munshinagar, Andheri(W), Mumbai-400058
(Autonomous College Affiliated to University of Mumbai)

Academic Year: 2025 26 Semester: III Class: MCA


Course Code: MC520 Course Name: Cloud Computing

Experiment No.1 CO Mapping – OECS1.2


Date: 18/08/2025

Aim: Ubuntu: Creating and Running Virtual Machines on Hosted Hypervisors (Virtual Box,
KVM, QEMU)

Objective: To learn and implement the process of creating, configuring, and running virtual
machines in Ubuntu using hosted hypervisors such as VirtualBox, KVM, and QEMU,
enabling efficient virtualization for testing, development, and deployment purposes.

Concept:

Hosted hypervisors are virtualization platforms that run as applications on top of an existing
operating system, enabling the creation and management of virtual machines (VMs). Tools
like VirtualBox, KVM, and QEMU allow a single physical computer to simulate multiple
independent computing environments, each with its own virtual CPU, memory, storage, and
network interfaces.

In this setup, the hypervisor intercepts and manages hardware access requests from guest
operating systems, allowing them to share host resources securely and efficiently. Virtual
machines can be configured with varying hardware specifications, boot from ISO images, and
connect to different network modes such as NAT, bridged, or host-only. This approach is
widely used for software testing, development, training, and running multiple OSes without
altering the host system.

Steps:

1. Install wsl
a. wsl --install
b. wsl --set-default-version 2
2. Update and install the necessary packages
a. sudo apt update && sudo apt upgrade -y
b. sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils -y

Name : Shantanu Joshi UCID: 2024510023


3. Add user to the KVM group
a. sudo usermod -aG kvm $USER
4. Restart machine
5. Install virt-manager
a. sudo apt install virt-manager -y
6. Boot the ISO image using virt-manager
7. Run the installed ubuntu on virt-manager

8. Allocate space to virtual hard-drive


a. qemu-img create -f qcow2 ubuntu.qcow2 30G [modify here to increase or
decrease the space]
9. Boot the ISO image
a. qemu-system-x86_64 -accel kvm -vga virtio -m 8G -smp 4 -drive
file=ubuntu.qcow2,format=qcow2 -cdrom /mnt/[path-to-ubuntu-iso] -boot d
10. Run the installed ubuntu
a. qemu-system-x86_64 -accel kvm -vga virtio -m 8G -smp 4 -drive
file=ubuntu.qcow2,format=qcow2

The video that was provided was performed on ubuntu as the base machine, for windows
users we can install WSL and use qemu by following the video tutorial given below:

[Link]

Observation:

Some problems that I faced:

While installing Ubuntu using QEMU in WSL through virt-manager, I faced a few problems.
One major issue was with storage; virt-manager showed an error saying “A storage path must
be specified” because no default storage pool was configured. I solved this by creating a
custom directory in /mnt/c/VMs and selecting it as the storage path. I also encountered path
errors when I forgot to add the leading /, which resulted in “No such file or directory”;
correcting the path fixed this. Another problem was locating the Ubuntu ISO, as it required
navigating to the correct Windows path under /mnt/c/Users/<username>/Downloads. After
placing the ISO in the right directory and selecting it in virt-manager, the installation
proceeded smoothly and completed successfully.

Name : Shantanu Joshi UCID: 2024510023

You might also like