I'm trying to become much more advanced with Linux, and I'm considering using the syllabus for an exam I want to take as a guide for what to study. Since I'm still fairly new to virtual machines, I'm wondering whether setting up Linux in a VM would be a smart way to practice. My main concern is experimenting, making mistakes, and potentially damaging my primary operating system. Would a VM be suitable for this, or is there another beginner-friendly setup I should consider?
3 Answers
It depends on your hardware and what you plan to do. A VM shares your computer’s CPU, memory, and storage, so it won’t perform exactly like a separate installation. Dual-booting or installing Linux on another SSD can provide better performance, but it’s more complicated and makes mistakes on the host system harder to avoid.
For an exam syllabus focused on ordinary Linux administration, a VM should be more than capable. Graphics performance and specialized hardware access are usually the main limitations, and those probably won’t matter here. Give the VM enough RAM and storage, take snapshots before risky changes, and use it as a disposable practice machine.
A virtual machine is a great choice if your main goal is learning without putting your everyday system at risk. You can experiment with configurations, break things, and restore a snapshot when necessary. Containers can also be useful later, but a full VM will give you a more complete Linux environment.

I’m not ready to set up a dual-boot system yet. In that case, would a VM be the best option, or is there another safe approach?