4
CO3
Virtualization Beginner ⏱ 2 Hours

Installation of Virtual Box and it's working

🎯

Aim / Objective

To install Oracle VM VirtualBox and its Extension Pack on the host operating system, create and configure a virtual machine (allocating vCPU, RAM, and virtual storage), configure virtual network adapters, and understand hypervisor operations.

🧰

Hardware & Software Requirements

Hardware Components

  • Host PC running Windows 10/11 or Linux with Intel VT-x or AMD-V virtualization enabled in BIOS
  • Minimum 8GB Physical RAM (16GB recommended for smooth virtualization)
  • Minimum 40GB free hard disk / SSD space for Virtual Disk Images (VDI)
  • Internet connection to download VirtualBox and Guest OS ISOs

Software, OS & Tools

  • Oracle VM VirtualBox installer (v7.0 or higher)
  • Oracle VM VirtualBox Extension Pack (matching version)
  • Guest OS ISO image (e.g., Ubuntu Linux Server/Desktop or Tiny11/Windows 10 ISO)
  • VirtualBox Guest Additions ISO image (bundled with VirtualBox)
👨‍🏫

Teacher's Lab Delivery Guide

Essential briefing notes, pedagogy, and setup tips for lab instructors
Faculty Exclusive

⏱ 5-Minute Pre-Lab Lecture Briefing:

Clarify the difference between Type-1 (Bare Metal / Native like ESXi, Proxmox, Hyper-V core) and Type-2 (Hosted Hypervisors like VirtualBox, VMware Workstation). Emphasize that VirtualBox runs on top of the host OS and shares the host physical CPU and RAM.

📝 Key Concepts to Write on Whiteboard:

  • Hardware Virtualization Technology (Intel VT-x / AMD-V) requirement in BIOS
  • Virtual Machine specifications (vCPUs, RAM limits, VDI virtual disks)
  • Dynamically Allocated vs Fixed Size Virtual Disks
  • VirtualBox Network Modes: NAT (default internet access), Bridged Adapter (gets real LAN IP from home/lab router), Host-Only (isolated sandbox between host and VMs), Internal Network
  • Guest Additions benefits: dynamic window resizing, seamless mouse, shared clipboard, shared folders
⚙ Pre-Class Lab Setup:

Check beforehand that Intel VT-x or AMD-V is enabled in the BIOS of all lab computers. If disabled, VirtualBox cannot run 64-bit guest VMs.

⚠ Common Student Pitfalls & Fixes:

Students allocate all host RAM to the VM (e.g. 7GB out of 8GB), causing the host OS to crash or freeze. Teach students never to exceed 50% of host RAM for a single VM.

🛡 Lab Safety & ESD Precautions:

Virtual machines are isolated sandboxes, making them safe environments to test malware or network attacks without risking host machine damage.

📜

Step-by-Step Practical Procedure

1

Verify Hardware Virtualization (VT-x / AMD-V) in Task Manager

Open Task Manager (`Ctrl + Shift + Esc`), navigate to the "Performance" tab, click "CPU", and check whether "Virtualization: Enabled" is displayed in the bottom right corner.

Command / Action:
System Check: Task Manager -> Performance -> CPU -> Virtualization: Enabled
💡
Teacher Note / Pro-Tip: If disabled, reboot the PC into BIOS and enable "Intel Virtualization Technology" or "SVM Mode".
2

Install Oracle VM VirtualBox and Extension Pack

Run the VirtualBox installer with administrator privileges. Accept default components (VirtualBox USB Support, Networking, Python bindings). Complete installation. Then double-click the Oracle_VM_VirtualBox_Extension_Pack file to install USB 3.0 and RDP support.

Command / Action:
Install: VirtualBox-7.x.x-Win.exe and Extension_Pack
💡
Teacher Note / Pro-Tip: VirtualBox briefly resets host network adapters during installation to create virtual NIC drivers.
3

Create a New Virtual Machine (VM Wizard)

Click "New" in VirtualBox. Enter VM Name (e.g. "Ubuntu-Lab-VM"). Select ISO image path. Allocate Base Memory (e.g. 2048MB or 4096MB) and Processors (2 vCPUs). Keep within the green slider zone.

Command / Action:
Settings: 4096 MB RAM, 2 Processors, Enable EFI (optional)
💡
Teacher Note / Pro-Tip: Staying within the green zone ensures the host OS retains enough resources to prevent system freezing.
4

Configure Virtual Hard Disk (VDI)

Select "Create a Virtual Hard Disk Now". Choose format "VDI (VirtualBox Disk Image)" and select "Dynamically Allocated" with 25GB capacity. Click Finish.

Command / Action:
Disk: VDI format, Dynamically Allocated, 25 GB
💡
Teacher Note / Pro-Tip: Dynamically allocated disks only consume physical host storage as files are written inside the VM, saving host disk space.
5

Configure Virtual Networking Modes

Select the VM, click "Settings" -> "Network". Under Adapter 1, observe the mode dropdown. Compare "NAT" (safe internet via host IP masquerade) and "Bridged Adapter" (VM appears as a physical computer on the lab LAN with its own DHCP IP).

Command / Action:
Settings -> Network -> Attached to: NAT / Bridged Adapter
💡
Teacher Note / Pro-Tip: Use NAT when you only need internet browsing. Use Bridged Adapter when you want other lab PCs to ping or SSH into the VM.
6

Power On VM & Install Guest Additions

Click "Start" to power on the VM. Complete the OS setup inside the VM. Once on desktop, go to VM menu bar: "Devices" -> "Insert Guest Additions CD image...". Run installer to enable bidirectional clipboard and auto-resizing.

Command / Action:
Menu: Devices -> Insert Guest Additions CD Image -> Run Installer
💡
Teacher Note / Pro-Tip: Enable "Shared Clipboard: Bidirectional" under VM Settings -> General -> Advanced.

Interactive Hands-On Lab Simulator

Practice and test concepts virtually before or after performing on physical lab equipment
Live Interactive
Loading simulator...
📊

Observations & Student Lab Record

Students are required to record the following measured parameters, hardware specifications, and output status into their physical lab journals:

Network Mode Guest IP Address Range Host Access to Guest Guest Access to Internet Lab LAN Access to Guest
NAT (Default) 10.0.2.15 (Default gateway: 10.0.2.2) No (Requires Port Forwarding) Yes (via Host NAT translation) No (Completely hidden)
Bridged Adapter 192.168.1.x (Same as physical LAN DHCP) Yes (Direct IP communication) Yes (via physical LAN router) Yes (Acts as independent PC)
Host-Only Adapter 192.168.56.x (VirtualBox internal switch) Yes (Host and VMs can communicate) No (Isolated from outside world) No (Isolated)
Internal Network Static IP configured by user No No No (Only VMs on same internal tag communicate)
💡

Conclusions & Learning Outcome

Oracle VM VirtualBox and its Extension Pack were installed and configured successfully. A guest virtual machine was provisioned with optimal vCPU, RAM, and dynamically expanding VDI disk. The different virtual networking modes (NAT, Bridged, Host-Only) were verified and demonstrated distinct isolation and routing properties.

Oral Exam & Viva Questions with Answers

Essential questions asked by external examiners and lab evaluators (Accordion UI)
Answer:

A hypervisor (or Virtual Machine Monitor) is software/firmware that creates and manages virtual machines by abstracting underlying physical hardware. Type-1 hypervisors run directly on bare-metal hardware without an underlying OS (e.g. VMware ESXi, Proxmox VE, Hyper-V Server). Type-2 hypervisors run as an application on top of an existing host OS (e.g. Oracle VM VirtualBox, VMware Workstation).