PRACTICAL 01

Installation & Configuration of Type-2 Hypervisor (Oracle VirtualBox)

Aim: Install and configure Oracle VirtualBox and create a virtual machine using Ubuntu Linux.

STEP 01 Download Oracle VirtualBox
  1. Open a web browser
  2. Visit https://www.virtualbox.org
  3. Click Downloads
  4. Select Windows Hosts
  5. Download the VirtualBox installer
  6. Download the matching Extension Pack
STEP 02 Install Oracle VirtualBox
  1. Double-click the installer file
  2. Click Next
  3. Keep default settings
  4. Click Yes when network warning appears
  5. Click Install
  6. Click Finish
STEP 03 Install Extension Pack
  1. Double-click the Extension Pack file
  2. Click Install
  3. Accept the license agreement
  4. Click OK
STEP 04 Enable Virtualization in BIOS
  1. Open Settings → System → Recovery
  2. Click Restart Now under Advanced Startup
  3. Select Troubleshoot → Advanced Options
  4. Select UEFI Firmware Settings → Restart
  5. In BIOS: Config → CPU → Intel/AMD Virtualization Technology → Enabled
  6. Go to: Security → Virtualization → Intel/AMD VT-d Feature → Enabled
  7. Press F10 and save changes
STEP 05 Verify Virtualization
  1. Press Ctrl + Shift + Esc to open Task Manager
  2. Open the Performance tab
  3. Select CPU
  4. Confirm Virtualization shows Enabled
STEP 06 Create Virtual Machine
  1. Open Oracle VirtualBox and click New
  2. Enter Name: ubuntu
  3. Select Type: Linux
  4. Select Version: Ubuntu (64-bit)
  5. Set RAM: 2048 MB, CPU: 1
  6. Set Disk Size: 20 GB
  7. Click Next and Finish
STEP 07 Attach Ubuntu ISO File
  1. Select the virtual machine
  2. Click SettingsStorage
  3. Select Empty under Controller IDE
  4. Click the CD icon on the right side
  5. Click Choose a disk file
  6. Select the Ubuntu ISO file
  7. Click Open and OK
STEP 08 Start Virtual Machine
  1. Select the virtual machine
  2. Click Start
  3. Choose Install Ubuntu
  4. Follow the installation wizard
Oracle VirtualBox installed and Ubuntu VM successfully created.
PRACTICAL 02

Creation and Management of Virtual Machines (Linux Guest OS – Ubuntu)

Aim: Create, configure, and manage a VM using Oracle VirtualBox and install Ubuntu as the Guest OS.

STEP 01 Install Oracle VirtualBox
  1. Download VirtualBox from the official website
  2. Run the installer
  3. Follow default installation steps
  4. Restart system if required
STEP 02 Download Ubuntu ISO
  1. Visit the Ubuntu official website
  2. Download Ubuntu Desktop (64-bit)
  3. Save the ISO file in the Downloads folder
STEP 03 Create a New Virtual Machine
  1. Open VirtualBox and click New
  2. Enter Name: Ubuntu, Type: Linux, Version: Ubuntu (64-bit)
  3. Click Next
STEP 04 Allocate RAM
  1. Set Base Memory to 2048 MB
  2. Set Number of CPUs to 1
STEP 05 Create a Virtual Hard Disk
  1. Select Create a virtual hard disk now
  2. Choose VDI (VirtualBox Disk Image)
  3. Select Dynamically Allocated
  4. Set disk size to 20 GB or more
  5. Click Create
STEP 06 Attach Ubuntu ISO File
  1. Select VM → Click Settings
  2. Go to Storage
  3. Click Empty under controller
  4. Click disk icon → Choose Ubuntu ISO
  5. Click OK
STEP 07 Install Ubuntu
  1. Click Start and select Install Ubuntu
  2. Choose keyboard layout
  3. Select Normal Installation
  4. Choose Erase disk and install Ubuntu (only virtual disk is erased)
  5. Create username and password
  6. Wait for installation to complete
  7. Restart system
  8. Remove ISO file after restart
Ubuntu is now successfully installed.
Ubuntu Linux successfully installed and running as Guest OS on VirtualBox.
PRACTICAL 03

Snapshot Creation, Restore and Virtual Machine Cloning

Aim: Save the current state of a VM, restore it to a previous state, and create a duplicate copy using Oracle VM VirtualBox.

STEP 01 Open VirtualBox
  1. Click on Start Menu
  2. Search VirtualBox and open it
  3. You will see the list of VMs
  4. Click on your VM (e.g., Ubuntu)
Make sure the VM is powered OFF before taking a snapshot.
STEP 02 Create Snapshot
  1. Click on the Snapshots tab (top-right)
  2. Click Take Snapshot button
  3. A small window will open
  4. Enter name: e.g., Before Software Install
  5. Click OK
Snapshot is now saved successfully.
STEP 03 Restore Snapshot
  1. Go to the Snapshots tab
  2. You will see your snapshot name listed
  3. Right-click on it
  4. Click Restore Snapshot
  5. Click Restore in the popup
All current changes are deleted and the old saved state comes back.
STEP 04 Clone Virtual Machine
  1. Go back to the main screen
  2. Right-click on the VM
  3. Click Clone
  4. Enter new name: e.g., Ubuntu Copy
  5. Click Next → Select Full Clone → Click Finish
New VM is created. You now have 2 identical VMs.
STEP 05 Export VM (Backup)
  1. Click File → Export Appliance
  2. Select your VM → Click Next
  3. Choose location → Save as .ova file → Click Finish
A backup .ova file is created at the chosen location.
STEP 06 Import Virtual Machine
  1. Click File → Import Appliance
  2. Select the .ova file → Click Next → Click Finish
VM is restored from backup successfully.
Snapshot creation, restore, cloning, export, and import operations successfully performed.
PRACTICAL 04

Configuration of Virtual Network Modes (NAT, Bridged, Host-Only)

Aim: Configure and understand different virtual network modes in Oracle VM VirtualBox.

STEP 01 Open VirtualBox
  1. Open VirtualBox
  2. Select your VM (Ubuntu)
  3. Click Settings
STEP 02 Open Network Settings
  1. In Settings, click Network
  2. Go to Adapter 1
  3. Tick Enable Network Adapter
  4. You will see the Attached to dropdown option
STEP 03 Configure NAT Mode
  1. Click the Attached to dropdown
  2. Select NAT
  3. Click OK
  4. Start the VM
  5. Open browser — internet should work
Use NAT when simple internet access is needed.
STEP 04 Configure Bridged Mode
  1. Go to Settings → Network
  2. Select Bridged Adapter
  3. Choose your network: WiFi / Ethernet
  4. Click OK → Start VM
  5. Run in VM terminal: ip a to check IP
Use Bridged mode when you want VM to act like a real machine on the network.
STEP 05 Configure Host-Only Mode
  1. Go to Settings → Network
  2. Select Host-Only Adapter
  3. Choose adapter: vboxnet0
  4. Click OK → Start VM
  5. Test: Ping from host to VM
Use Host-Only mode when only host-to-VM communication is needed.
NAT, Bridged, and Host-Only network modes successfully configured and verified.
PRACTICAL 05

Server Virtualization using VirtualBox Headless Mode

Aim: Perform server virtualization using VirtualBox Headless Mode and understand how VMs can run without a graphical interface.

STEP 01 Open Command Prompt
  1. Press Windows + R
  2. Type cmd
  3. Press Enter
The Command Prompt (black screen) will open.
STEP 02 Check Available VMs
  1. Type: VBoxManage list vms
  2. Press Enter
  3. You will see all VM names listed
Example output: "Ubuntu" {1234-5678-xxxx}
STEP 03 Start VM in Headless Mode
  1. Type: VBoxManage startvm "Ubuntu" --type headless
  2. Replace "Ubuntu" with your actual VM name
  3. Press Enter
VM starts in background — no window appears on screen.
STEP 04 Verify VM is Running
  1. Type: VBoxManage list runningvms
  2. Press Enter
  3. If VM name appears in the list — it is running
STEP 05 Stop the Headless VM
  1. Type: VBoxManage controlvm "Ubuntu" poweroff
  2. Press Enter
  3. VM will stop
STEP 06 Remote Access (Optional)
  1. Enable VRDE in VM Settings
  2. Use the VM's IP address to connect via Remote Desktop
This allows remote GUI access to the headless VM.
VM successfully started, managed, and stopped in headless mode using VBoxManage commands.
PRACTICAL 06

Storage Virtualization: Creating and Attaching Virtual Disks to VMs

Aim: Create and attach virtual hard disks to a virtual machine using Oracle VM VirtualBox.

STEP 01 Open VirtualBox
  1. Open VirtualBox
  2. Select your VM (Ubuntu)
  3. Make sure VM is powered OFF
STEP 02 Open Storage Settings
  1. Click Settings
  2. Go to Storage
  3. You will see the Controller (SATA/IDE) listed
STEP 03 Create New Virtual Disk
  1. Click the Add Hard Disk (+) icon
  2. Click Create
  3. Choose VDI (VirtualBox Disk Image)
  4. Click Next → Select Dynamically Allocated → Click Next
  5. Set size: e.g., 10 GB or 20 GB
  6. Click Create
New virtual disk is created successfully.
STEP 04 Attach Disk to VM
  1. Select the controller SATA
  2. Click Add Hard Disk
  3. Choose the newly created disk
  4. Click OK
Disk is now attached to the VM.
STEP 05 Start VM & Verify Disk
  1. Start the VM
  2. Open terminal
  3. Type lsblk to see all attached disks
STEP 06 Format and Use Disk (Linux)
  1. Create partition: sudo fdisk /dev/sdb
  2. Format disk: sudo mkfs.ext4 /dev/sdb1
  3. Create folder: sudo mkdir /mnt/mydisk
  4. Mount disk: sudo mount /dev/sdb1 /mnt/mydisk
Disk is now ready to use inside the virtual machine.
Virtual hard disk successfully created, attached, and configured in the VM using Oracle VirtualBox.