Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Create a Type 2 VM: checklist and first steps

14 min read
Improve this page

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 computerRecommended hypervisor
Windows Pro or EnterpriseHyper-V, built into Windows, or VMware Workstation
Windows HomeVMware Workstation
LinuxKVM with virt-manager
MacUTM, 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.

ItemWhat you needExample
ISO or imageInstallation file of the systemubuntu-24.04-desktop.iso
vCPU2 as a starting value2-4 vCPU
RAM2 to 4 GB as a starting value4096 MB
Disk20 to 40 GB as a starting value, dynamic format40 GB (thin/dynamic)
NetworkNAT 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.

  1. Launch the wizard

    Click File → New Virtual Machine (or Ctrl+N).

  2. Choose the installation type

    • Typical: simplified wizard (recommended for beginners)
    • Custom: full control over every setting
  3. Select the ISO

    • Choose Installer disc image file (iso)
    • Browse to your ISO file
    • VMware often detects the OS automatically (Easy Install)
  4. Name and location

    • Virtual machine name: name of the VM
    • Location: where to store the VM files
  5. Configure the disk

    • Size: 20-40 GB
    • Choose Store virtual disk as a single file (performance)
    • Or Split into multiple files (portability)
  6. 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)
  7. Start

    Click Finish then Power on.

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.

MistakeConsequenceSolution
Very little RAM (less than 2 GB for a graphical system)Very slow system, constant swappingStart from 2-4 GB
Disk too small (less than 20 GB)Not enough space left for updatesStart from 20 to 40 GB (dynamic)
VT-x/AMD-V disabledError at startup or extreme slownessEnable it in the BIOS/UEFI
Wrong OS typeUnsuitable drivers, assorted problemsChoose the right type/version
Non-bootable ISOVM starts on a black screenCheck 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:

TestHowExpected
StartupThe VM boots to the desktop or the login screenThe system responds
NetworkIn the VM: ping 8.8.8.8, then curl -I https://www.debian.orgOK replies, or code HTTP/2 200
Guest toolsResize the windowThe screen adapts
PerformanceUse the OS normallyNo 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.

Once your first VM is created and working:

  1. Install the guest tools (Guest Additions / VMware Tools / Parallels Tools)

  2. Run the system updates inside the VM

  3. 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

  4. 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, or wget or the browser failing that; ping may 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

6 questions
6 min
70% to pass

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