Ben Chuanlong Du's Blog

It is never too late to learn.

Run Virtual Machines on Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

While VirtualBox is a popular cross-platform tool for running virtual machines, KVM is a superior solution for Linux as KVM is a type-1 hypervisor which runs directly on the hardware via the Linux kernel while VirtualBox is a type-2 hypervisor which runs as an application on top of your OS. Since KVM is part of the Linux kernel, it has lower overhead and offers near-native CPU and disk performance. For more detailed comparisions, please refer to Chat with Gemini: KVM vs. VirtualBox for Linux .

It is a common confusion that KVM is much harder to use compared to VirtualBox. Technically speaking, it's true. However, standard users never use KVM directly. KVM is like an engine (for running VMs) and there are GUI tools to make it easy to use KVM (and related tools such as QEMU and libvirt).

GNOME Boxes vs Virtual Machine Manager

GNOME Boxes and Virtual Machine Manager (virt-manager) are 2 popular choices (based on KVM, QEMU and libvirt) for Linux. GNOME Boxes is very simple to use while Virtual Machine Manager offers more options and is more suitable for power users. For more detailed comparision, please refer to Chat with Gemini: GNOME Boxes vs virt-manager .

Error: "Virtual network default is not active"

Chat with Gemini: Virtual network default is not active

Bidirectional Copy

Install spice-vdagent in the VM and reboot.

wajig install spice-vdagent

Shared Folder

sudo mount -t virtiofs host_share /mnt/shared

See Chat with Gemini - Virt-Manager Shared Folder Guide .

More Reactive Mouse Tracking

Location for Images

/var/lib/libvirt/images/

~/.var/app/org.gnome.Boxes/data/gnome-boxes/images

Chat with Gemini - Btrfs/Qcow2 Performance Issues

References

Comments