Do you want to create your first VM but do not know where to start? This guide gives you a clear checklist and shows you how to avoid beginner mistakes.
What you will learn
- The items to prepare before creating a VM
- The essential settings (CPU, RAM, disk, network)
- How to create a VM on VMware Workstation, VirtualBox and Parallels
- The beginner mistakes to avoid, including enabling VT-x / AMD-V
- How to check that the VM works, then prepare it for reuse (snapshot, clone)
Prerequisites
Before creating a VM, you need to know what a virtual machine and a hypervisor are, explained in What is a VM? (in French). You also need to know the virtual disk formats (VMDK, VDI, QCOW2), described in Storage formats (in French). The guide Type 1 vs Type 2 (in French) explains why a hypervisor installed on your computer is called type 2.
Finally, you need a type 2 hypervisor already installed: this lesson creates a VM, it does not install the tool. Download it from the publisher's official page: VMware Workstation (free since November 11, 2024, businesses included; this is the VMware product page, and the download goes through the Broadcom support portal, so the address may change), VirtualBox or Parallels Desktop for Mac. Read the section "Which hypervisor should you choose?" below first: VirtualBox lets you discover the concepts, but it is not suited to this site's labs. Your computer must also expose hardware virtualization (VT-x or AMD-V), a check described on the introduction to virtualization page (in French).
Which hypervisor should you choose?
The three tools in this lesson follow the same logic, but they are not equal for the rest of the course. VirtualBox is not the default choice: the dsoxlab tool, which plays the site's labs, only runs terminal labs on it, and labs with virtual machines freeze there. Feint, the site's cloud emulator, does not work on it either. To practise with these tools afterwards, prefer:
| Your computer | Recommended hypervisor |
|---|---|
| Windows Pro or Enterprise | Hyper-V, built into Windows, or VMware Workstation |
| Windows Home | VMware Workstation |
| Linux | KVM with virt-manager |
| Mac | UTM, or VMware Fusion |
This lesson covers VMware Workstation, VirtualBox and Parallels, because their wizards are similar. For Hyper-V, KVM and UTM, follow Install Linux in a virtual machine; creating a KVM VM is detailed in Create a KVM VM (in French). The detail of which hypervisors dsoxlab accepts is in the section "What about the dsoxlab labs?" of Install Linux in a virtual machine, and in Install dsoxlab locally.
Checklist before creation
Before launching the creation wizard, prepare these items. An ISO is an image file that contains the installation disk of a system; the settings given are indicative starting values, to adjust to the resources of your host machine. They are not minimums imposed by the publishers: the VirtualBox manual only says that a guest system may need 1 to 2 GB of memory to install and boot.
| Item | What you need | Example |
|---|---|---|
| ISO or image | Installation file of the system | ubuntu-24.04-desktop.iso |
| vCPU | 2 as a starting value | 2-4 vCPU |
| RAM | 2 to 4 GB as a starting value | 4096 MB |
| Disk | 20 to 40 GB as a starting value, dynamic format | 40 GB (thin/dynamic) |
| Network | NAT by default (Internet access) | NAT |
A vCPU is a processor core that the host lends to the VM. The NAT network mode lets the VM reach the Internet through your PC's address, without being reachable from the network.
The ISO in the example, ubuntu-24.04-desktop.iso, is an amd64 image: it suits Intel and AMD PCs. On an Apple Silicon Mac (M1 chips and later), a hypervisor cannot run an x86 system at full speed: take an arm64 ISO of the same distribution.
Create a VM with your tool
The three tools follow the same logic: a creation wizard asks for the system, the memory, the disk and the ISO, then starts the installation. Choose the tab of the tool you have installed; only the menu labels change.
-
Launch the wizard
Click File → New Virtual Machine (or
Ctrl+N). -
Choose the installation type
- Typical: simplified wizard (recommended for beginners)
- Custom: full control over every setting
-
Select the ISO
- Choose Installer disc image file (iso)
- Browse to your ISO file
- VMware often detects the OS automatically (Easy Install)
-
Name and location
- Virtual machine name: name of the VM
- Location: where to store the VM files
-
Configure the disk
- Size: 20-40 GB
- Choose Store virtual disk as a single file (performance)
- Or Split into multiple files (portability)
-
Review and customize
Click Customize Hardware to adjust:
- Memory: 4096 MB as a starting value
- Processors: 2 cores as a starting value
- Network: NAT (default)
-
Start
Click Finish then Power on.
-
Launch the wizard
Click the New button of the VirtualBox Manager (or Machine → New,
Ctrl+N). The Create Virtual Machine wizard opens. -
Name and choose the type
- Name: name of your VM (e.g.
ubuntu-lab) - ISO Image: the installation ISO (optional at this stage)
- Type: Linux, Windows, etc.
- Version: matching your ISO (e.g. Ubuntu 64-bit)
- Name: name of your VM (e.g.
-
Allocate RAM and vCPUs
- On the Hardware page, set Base Memory and Processor(s)
- Indicative starting value: 2048 to 4096 MB, 2 vCPUs
- Do not let the VM take more than the host can give up. Limiting the VM to half of the host's RAM is a cautious guideline, not a rule from the manual (which only advises not exceeding half of the processor's threads)
-
Create the disk
- Choose Create a Virtual Hard Disk Now
- Size (Disk Size): 20-40 GB as a starting value
- Leave Pre-Allocate Full Size unticked: the file is then dynamic (it grows with usage). Ticked, it has a fixed size
- Format: VDI (VirtualBox's native format) is the wizard's. For a VMDK (VMware's format, which VirtualBox can also use), first create the disk in the Virtual Media Manager, then choose Use an Existing Hard Disk File
-
Attach the ISO
- Select the VM → Settings → Storage
- Click the empty disc → choose your ISO
-
Start
Click Start and follow the system installation.
-
Launch the wizard
Click File → New or use the Control Center.
-
Choose the source
- Install Windows or another OS from a DVD or image file: from an ISO
- Get Windows from Microsoft: built-in Windows download
The other entries offered (distribution downloads, migration) vary with the Parallels version.
-
Select the ISO
Browse to your ISO file or drag and drop it.
-
Automatic configuration
Parallels detects the OS and suggests optimized settings:
- RAM: adjusted automatically
- Disk: suitable size
- Network: Shared mode (equivalent to NAT)
-
Customize (optional)
At the name and location step, tick Customize settings before installation to adjust:
- Hardware → CPU & Memory: 4 GB of RAM and 2 CPUs as starting values
- Hardware → Hard Disk: disk size
-
Start the installation
Finish the wizard and follow the installation.
Which mistakes should you avoid as a beginner?
These five mistakes explain most of the first VMs that do not start or are painful to use. The table gives the consequence you will see and the fix; the box that follows details the most puzzling case, disabled hardware virtualization.
| Mistake | Consequence | Solution |
|---|---|---|
| Very little RAM (less than 2 GB for a graphical system) | Very slow system, constant swapping | Start from 2-4 GB |
| Disk too small (less than 20 GB) | Not enough space left for updates | Start from 20 to 40 GB (dynamic) |
| VT-x/AMD-V disabled | Error at startup or extreme slowness | Enable it in the BIOS/UEFI |
| Wrong OS type | Unsuitable drivers, assorted problems | Choose the right type/version |
| Non-bootable ISO | VM starts on a black screen | Check the ISO (checksum) |
Check that the VM works
A VM that powers on is not necessarily a usable VM. After the installation, check these four points:
| Test | How | Expected |
|---|---|---|
| Startup | The VM boots to the desktop or the login screen | The system responds |
| Network | In the VM: ping 8.8.8.8, then curl -I https://www.debian.org | OK replies, or code HTTP/2 200 |
| Guest tools | Resize the window | The screen adapts |
| Performance | Use the OS normally | No excessive slowness |
The guest tools test assumes they are installed: that is the first step of the workflow below. ping (ICMP) is often filtered by a corporate network or a home router: if it fails while curl answers, the network works. If both fail while the VM boots, open the VM's network settings and check that the adapter is active in NAT mode (Shared on Parallels). Extreme slowness, on the other hand, points to VT-x / AMD-V (see the previous box).
On Windows, an active Hyper-V or virtualization-based security (VBS) slows down VirtualBox: this is the Windows-side counterpart of that conflict.
Recommended workflow
Once your first VM is created and working:
-
Install the guest tools (Guest Additions / VMware Tools / Parallels Tools)
-
Run the system updates inside the VM
-
Create a "clean" snapshot, your restore point. A snapshot freezes the state of the VM at a given moment. In VirtualBox, select the VM, open the Snapshots tab and click Take; to go back, choose the snapshot then Restore. In VMware Workstation, the VM → Snapshot menu offers Take Snapshot and Revert to Snapshot. In Parallels, the Actions menu gives access to snapshots. Labels vary with the version, and going back to a snapshot erases the changes made since
-
Clone this VM for your future projects instead of starting from scratch. A full clone copies all the disks: it works on its own, without depending on the original VM. A linked clone stores only the differences from the original VM, which saves space but makes it dependent on it
Key points
- Before the wizard, prepare the ISO, the number of vCPUs, the RAM, the disk size and the network mode (NAT by default).
- A dynamic disk (thin provisioning) grows with actual usage: a large virtual disk first occupies only a little space.
- VT-x (Intel) or AMD-V must be enabled in the BIOS/UEFI, otherwise the VM does not start or stays extremely slow.
- A VM that powers on is not necessarily usable: check startup, the network (
curl -I https://www.debian.org, orwgetor the browser failing that;pingmay be filtered), the guest tools and performance. - The guest tools (Guest Additions, VMware Tools, Parallels Tools) bring screen resizing, the clipboard and shared folders.
- Once the VM is clean, take a snapshot then clone it for your projects instead of reinstalling.
Knowledge check
Check what you have learned with this interactive quiz
How it works
- The timer starts when you click Start
- Multiple choice, true/false and short answer questions
- You can move between questions
- Detailed results are shown at the end
Starts the quiz and the timer
Review
(0/0)Result saved on this device. It will be sent to your account at the next sync. Sync now
Score by domain
A domain groups several guides and gets several questions, so its score is more reliable than a per-topic score, which often rests on a single question.
Summary
Strengths
No topic passed at 80% on at least two questions yet.
Weak areas
No topic below the pass mark.
Recommended next
Hints before you try again?
A new full quiz with random questions
Work again only on the questions you missed