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⏱ 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
Step-by-Step Practical Procedure
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.
System Check: Task Manager -> Performance -> CPU -> Virtualization: Enabled
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.
Install: VirtualBox-7.x.x-Win.exe and Extension_Pack
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.
Settings: 4096 MB RAM, 2 Processors, Enable EFI (optional)
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.
Disk: VDI format, Dynamically Allocated, 25 GB
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).
Settings -> Network -> Attached to: NAT / Bridged Adapter
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.
Menu: Devices -> Insert Guest Additions CD Image -> Run Installer
Interactive Hands-On Lab Simulator
Practice and test concepts virtually before or after performing on physical lab equipmentObservations & 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)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).