Run Windows & Linux Ubuntu Together! Complete Virtual Machine Tutorial

Imagine this: A computer inside your computer! That’s exactly what a Virtual Machine (VM) is. If you’ve ever wanted to run Linux inside Windows (or vice versa), test software safely, or practice ethical hacking without risking your main system, VMs are your digital playground. Let’s walk through everything you need to get started — perfect for beginners

https://www.youtube.com/watch?v=v9B1EHfJQE8

What Is a Virtual Machine?

A virtual machine is a software-based computer that uses part of your system’s CPU, RAM, and storage. This lets you run a completely different operating system inside a window — for example, Ubuntu inside Windows.

Best part? No matter what you do inside the VM, your real system stays totally safe! You can:

  • Practice ethical hacking (TryHackMe, Hack The Box)
  • Explore new operating systems
  • Test software and run experiments in a safe, isolated environment

System Requirements

Run a VM smoothly, you’ll need:o run a VM smoothly, you’ll need:

  • A modern computer
  • At least 4GB RAM (8GB or more is smoother)
  • A CPU with virtualization support (look for Intel VT-x or AMD-V in your BIOS/UEFI)
  • 64-bit ISO file of the operating system you want to install (Windows, Kali Linux, Ubuntu, etc.)

Step 1: Enable Virtualization in BIOS/UEFI

  1. Restart your computer.
screenshot 2025 11 19 091128
  1. While booting, keep pressing the BIOS/UEFI key (often F2, F10, F12, Escape, or Delete — check your brand).
vlcsnap 2025 11 19 09h20m53s803
  1. Find settings like “Advanced CPU Configuration” or “Processor Settings.”
    • Intel users: Enable “Intel Virtualization Technology (VT-x)”
    • AMD users: Enable “SVM Mode” or “AMD-V”
untitled design(2)
  1. Save changes (usually F10) and exit. Your system will restart.
restart bios

Step 2: Install VirtualBox

  1. Go to the official Oracle VirtualBox website and download the installer for your OS.
vb page
  1. Run the installer (double-click the icon), click Next, accept agreements, select installation location if you wish, then choose Install and Finish.
install virtual box

Step 3: Download OS ISO File

  1. Visit the official website of your chosen operating system and download the ISO file.
install ubuntu

Step 4: Install the VirtualBox Extension Pack (Don’t Skip!)

Why? The Extension Pack unlocks awesome features: USB device support, webcam, disk encryption, and more.

  1. Download the Extension Pack from VirtualBox’s official website.
install vb ext pack
  1. Open VirtualBox.
open vb
  1. Go to File > Tools > Extensions (shortcut: Ctrl+T).
extensions shortcut ctrl+t
  1. Click the green plus icon (“Add new Package”), select your downloaded file, and follow the prompts to install.
navi ext pack
  1. On success, you’ll see the Extension Pack listed.
extension pack listed

Step 5: Create a New Virtual Machine

  1. Open VirtualBox and click the New button.
open virtualbox and click the new button.
  1. Name your VM (e.g., “Ubuntu”) and choose a location to store its files.
name your vm ubuntu
  1. When prompted, select your downloaded ISO file.
select your downloaded iso file

Set Type to “Linux” and Version to “Ubuntu 64-bit”.

  1. Enter a username and password — this will be used inside your VM.
enter a username and password

Tick the box for Install Guest Additions (enables drag & drop, full screen, clipboard sharing, etc.).

  1. Allocate resources:
    • RAM: Minimum 2GB, 4GB recommended
    • CPU: At least 2GHz; more is better if your computer allows
allocate resources
  1. Storage: VDI type, dynamically allocated, minimum 10GB (30GB recommended for best results)
storage

Review settings. Click Create or Start to begin OS installation.

Step 6: Installing and Using Your New OS

  1. Follow the on-screen instructions to install the OS inside your VM.
install the os inside your vm.

Installation may take 20–30 minutes.

  1. On first boot, log in with your username/password.
login
  1. Adjust your view:
    • Right-click the VM desktop > Display Settings for resolution changes.
display settings

Step 7: Final Touches – Updating Your System

  1. Open the Terminal (search for “Terminal” in Ubuntu).
open the terminal
  1. Type:
sudo apt update
update

sudo apt update: Command that refreshes your Linux system’s list of available software and updates from the internet, but doesn’t install anything yet.

  • After “update” type:
sudo apt upgrade
upgrade

sudo apt upgrade: Command that installs the latest available updates for all your Linux system’s software packages.

Congratulations! 🚀 Your virtual machine is ready to use. Explore apps, practice hacking, or safely test new software — all inside your own digital sandbox.

Questions? Drop them in the comments. And if you found this guide helpful, don’t forget to share it with friends!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top