B4TECHIT courses
Module 1, Lab 1

Create a virtual machine

A practice computer inside your computer, with no risk.

  • Beginner
  • 45 minutes
  • PC with 8 GB or more
Server rack with blue cables

A PC inside your PC

You install, you test, you break things. Your real PC is not at risk.

Your PC: the host
  • Windowsguest
  • Ubuntuguest
  • Your testsguest
  • HostYour computer and its system.
  • GuestThe system installed in the virtual machine (VM).
  • Virtual diskA simple file that acts as the VM's disk.

Is your PC ready?

  1. Press Ctrl + Shift + Esc. Open Performance, then CPU.

  2. At the bottom, read the Virtualization line: it must say Enabled.

Disabled? Enter the BIOS and enable Intel VT-x or AMD-V (SVM). Find your PC's key

  • 8 GBof memory minimum, 16 GB preferably.
  • 60 GBfree on the disk.

VirtualBox or VMware?

Both are free. We use VirtualBox.

  • VirtualBoxSimple, for Windows, Linux and macOS. No account needed.Official website
  • VMware Workstation ProFor Windows and Linux. A free Broadcom account is required.Official guide

Warning: always download from the official website.

Install VirtualBox

Before you start: save your documents.

  1. On the official website, click Windows hosts.

  2. Open the downloaded file, then Next.

  3. Accept the licence, then Next.

  4. Keep everything, then Next.

  5. The network will drop for a moment: Yes.

  6. Python message: Yes, it does not matter.

  7. Keep the shortcuts, then Next.

  8. Click Install and wait.

  9. Click Finish: VirtualBox opens.

Extension Pack: optional. It is free for personal or educational use, not in a company.

Create the machine

Get an ISO image. To start: Lubuntu, light and free.

VirtualBox 7.2: the screenshots are in French; a few buttons stay in English.

  1. Click New.

  2. Type the name lubuntu-cours, choose your ISO and leave Unattended Installation unticked.

Windows in a VM: it needs its own licence to be activated.

Memory, processors, disk

The rule: never more than half of your PC.

  1. Open Specify virtual hardware: memory 4096 MB, 2 processors.

  2. Open Specify virtual hard disk: 25 GB. Then Finish.

Try it here

Find a good setting.

First start

  1. Check that the ISO is in Storage, then click Start.

  2. The Lubuntu menu appears: press Enter.

  3. Choose your language (Français in the screenshots), then Try Lubuntu to try it without installing.

  4. To stop: the cross, Power off the machine, then OK.

Mouse stuck? Press the right Ctrl.

VM very slow on Windows? Hyper-V may be active. Do not turn off a protection without understanding its effect.

Your “undo” button

A snapshot keeps the state of the machine. Take one before each test.

  1. With the VM off, open Snapshots, then Take.

  2. Give it a name, then Ok.

  3. To go back: choose the snapshot, then Restore.

  4. Confirm with Restore.

Try it here

Warning: a snapshot is not a backup. It disappears with the VM.

Graded exercise out of 100

You need 80 to pass the lab.