Skip to content

Three installs compared

Exercise three-installs-compared-annex.pdf · PDF

"Linux is better." "No, Windows is better." You have heard that argument, maybe in your own class. Who wins?

Nobody — because the question is wrong. In three days you installed three operating systems with your own hands: deb-lab, ubu-srv and win11. Now you have something better than opinions: evidence. Today you compare the three like a judge in a trial, where every claim needs a number and the place where you read it.

What you will learn

  • Collect evidence about your three VMs from the host and from inside each one
  • Tell a disk's capacity from its real allocation on the host
  • Explain each difference by one of four causes
  • Choose a system for a given job and justify it with two facts
  • Why "Windows uses more RAM, so it is worse" is not an argument

Evidence from the host

Your three VMs are three files on the host's disk — and the host is the class server, not your PC. Before starting any of them, ask libvirt — the service behind virt-manager that manages the VMs — about those files. Open a terminal on your Ubuntu PC (Ctrl+Alt+T) and log in to the server with the user and password from today's slip:

ssh <user>@<server>    # the same login as virt-manager
virsh -c qemu:///session vol-info --pool default deb-lab.qcow2
virsh -c qemu:///session vol-info --pool default ubu-srv.qcow2
virsh -c qemu:///session vol-info --pool default win11.qcow2
virsh -c qemu:///session snapshot-list deb-lab

After ssh, the prompt changes to <user>@si: you are typing on the server. qemu:///session is your own libvirt there, the one that holds your VMs. Type exit when you finish.

virsh is the command-line twin of virt-manager. Each vol-info answers with two lines worth reading:

Line What it means
Capacity: The size the guest sees: 25, 20 or 64 GiB, as in your plan
Allocation: What the file really takes on the host's disk right now

The allocation is usually much smaller than the capacity. By default a qcow2 disk file starts small and grows as the guest writes data, so a 64 GiB disk that has received about 20 GiB takes about 20 GiB on the host, not 64.

The last command lists the snapshots of one VM: clean must be there. Press the Up key to bring the last command back, change the name to ubu-srv, then win11.

Evidence from inside

You already measured most of it in the last three sessions. Missing numbers for Windows? Start win11 alone and shut down any VM you are not using: the server is shared by the whole class. Then read:

  • RAM in use: Ctrl+Shift+Esc → Performance → Memory → In use.
  • Disk used: File Explorer → This PC → drive C: (used = total − free).

Then fill the table on the Exercise sheet. Your numbers will differ a little from your neighbour's — updates and open programs change them. The pattern is what matters:

deb-lab ubu-srv win11
System Debian 13, desktop Ubuntu Server 26.04 LTS Windows 11 Pro 26H2
Installer Graphical, mouse Text, keyboard Graphical, mouse
Firmware BIOS BIOS UEFI + Secure Boot
Special hardware None None TPM 2.0
Driver loaded by hand None None VirtIO disk
Product key / licence None / free software None / free software Asked / proprietary
Account Local Local Online by default; local by a detour
Admin rights sudo sudo The first user is an administrator
RAM used at rest Middle Lowest by far Highest
Disk used after install Several GB Lowest Highest by far
After login Desktop Text prompt Desktop

Every difference has a cause

A table of numbers is only half the work. The other half is asking why for every row. Four causes explain almost everything:

flowchart TB
    subgraph CAUSES["Four causes"]
        D["<b>A desktop or not</b>"]
        L["<b>Free or proprietary</b>"]
        R["<b>Who writes the drivers</b>"]
        T["<b>Who the maker designs for</b>"]
    end
    D -->|"explains"| D1["RAM at rest, disk used,<br>kind of installer, what you see after login"]
    L -->|"explains"| L1["product key, licence,<br>online account, privacy questions"]
    R -->|"explains"| R1["the VirtIO driver<br>loaded from a CD"]
    T -->|"explains"| T1["TPM 2.0 and UEFI required,<br>old PCs refused"]
Cause What it explains
A desktop or not ubu-srv is small because it draws nothing. Desktops cost RAM and disk
Free or proprietary A free system has nothing to sell you during the installation: no key, no online account
Who writes the drivers Linux carries the VirtIO drivers in its kernel; Windows needed them from a CD
Who the maker designs for Windows targets recent consumer PCs, so it can demand TPM 2.0 and UEFI. Debian still runs on very old machines

Careful: the server is not lighter because Ubuntu is lighter than Debian

ubu-srv uses the least RAM because it has no desktop. Ubuntu with a desktop is not lighter than Debian with one. Compare like with like before you blame the system.

Better for what?

Now turn the comparison around, so that nobody leaves with "Linux good, Windows bad". Which of the three could your grandparents use alone? Which one runs the commercial programs a design studio buys? Which did you find easiest to install?

Each system is the right answer to some question. Nobody chooses an operating system because it is "the best". They choose it because it is the best for this job, on this machine, for these people, with this budget.

Careful: Windows uses more RAM, so it is worse?

It does more at rest by default, for a person at a desk with modern hardware. Whether that is worse depends on the job: on a server with no screen, yes; on a receptionist's PC, no.

Three jobs, three systems

Choose one system for each case and give two facts from your table:

Case A good choice Two facts that support it
A small office needs a machine in a cupboard that stores everyone's files, on all day, no screen ubu-srv No desktop: least RAM and disk; LTS gives five years of updates; managed from elsewhere with SSH
A designer must run a commercial design program sold only for Windows win11 The program decides; it needs a PC with TPM 2.0 and a paid licence
A school wants to reuse 20 PCs from 2014 (4 GB RAM, no TPM) for browsing and office work deb-lab Windows 11 refuses them (TPM, CPU list); Debian's requirements are far lower; no licence cost

Another choice can also be right — if your two facts are true and relevant. The point is the argument.

Finish your reports

Your reports for Practicals 2.4 and 2.5 are documentation, not a list of clicks. Anyone can find the clicks; your report has the decisions and their reasons. Check that each one has:

  • the sections of the report template, in order;
  • the VM's specification as a table (vCPU, RAM, disk, firmware, ISO);
  • each decision with its reason, in your own words;
  • the real output of your checks, not a classmate's;
  • one problem you had and how you solved it;
  • the snapshot clean, and why it exists.

Key takeaways

  • Compare systems with evidence: a number and the place where you read it.
  • virsh vol-info shows a disk's capacity (what the guest sees) and its allocation (what the file really takes).
  • Four causes explain the table: a desktop or not, free or proprietary, who writes the drivers, who the maker designs for.
  • ubu-srv is the lightest because it has no desktop, not because Ubuntu is lighter than Debian.
  • Choose a system by the job, the machine, the people and the budget, with facts.

Quick check

1. Why does ubu-srv use the least RAM of the three VMs?
  • It has no graphical desktop
  • Ubuntu is a newer system than Debian
  • It has the smallest virtual disk
  • It starts with BIOS firmware instead of UEFI

With nobody in front of it, a server draws no windows. The desktop is what costs RAM and disk, not the name of the distribution.

2. virsh vol-info says Capacity 64 GiB and Allocation 21 GiB for win11.qcow2. What does that mean?
  • The guest sees 64 GiB, but the file takes about 21 GiB on the host
  • The guest sees 21 GiB, and 64 GiB are reserved for snapshots
  • The disk is damaged and 43 GiB of it cannot be read
  • Windows has used 64 GiB and has 21 GiB still free

Capacity is the size the guest sees. Allocation is the real size of the qcow2 file, which grows only as the guest writes data.

3. Debian saw the VirtIO disk at once; Windows did not. Which cause explains it?
  • Who writes the drivers
  • A desktop or not
  • Free or proprietary
  • The size of the ISO image

Linux carries the VirtIO drivers inside its kernel. Windows does not ship them, so you loaded them from a CD.

4. Why can Windows 11 not be installed on the school's PCs from 2014?
  • They fail its hardware check for TPM 2.0 and the CPU list
  • Their disks are too large for the installer
  • Windows 11 only installs on machines without a desktop
  • Their licence only allows free software

Windows 11 checks for TPM 2.0, UEFI with Secure Boot and a recent CPU. Old PCs that miss them are refused, while Debian's requirements are far lower.

5. What is the right way to choose an operating system?
  • Start from the job, the machine and the budget, with facts
  • Take the one with the newest version number
  • Take the one that uses the least RAM at rest
  • Take the one most people use at home

Every system is the right answer to some question. Name the job, the machine, the people and the budget, then argue with numbers from your table.

6. A small company needs a machine that shares files, runs all day in a cupboard and has no screen. Select the two facts that support choosing ubu-srv.
  • It has no desktop, so it uses the least RAM and disk
  • As an LTS release it gets five years of security updates
  • It needs a TPM 2.0 chip to protect the files
  • It includes a paid licence with support by default

No desktop means fewer resources and fewer things that can fail. LTS means years of updates without reinstalling. Ubuntu needs no TPM, and Ubuntu Pro support is optional.

Remember how the desktop arrived on deb-lab: a thousand packages from a mirror. Next you learn to ask for one more yourself: Package managers.