136

Recently, I found out that there is the QEMU project. I've used VirtualBox before, and I know about Xen and VMWare.

What are the differences between QEMU and VirtualBox? Should I stick with VirtualBox?
In which cases is QEMU better?

apaderno
  • 28,547
  • 16
  • 75
  • 90
Pavlo
  • 1,594
  • 2
  • 15
  • 30

3 Answers3

104

Basically both have features which the other does not have, so this might ease the decision. QEMU/KVM is better integrated in Linux, has a smaller footprint and should therefore be faster.

VirtualBox is a virtualization software limited to x86 and amd64 architecture. Xen uses QEMU for the hardware assisted virtualization, but can also paravirtualize guests without hardware virtualisation. QEMU supports a wide range of hardware and can make use of the KVM when running a target architecture which is the same as the host architecture.

Xen is a Type-1 hypervisor where VirtualBox and QEMU are considered as Type-2 hypervisors (also there might be a debate considering kvm being a kernel module).

A similar question has been asked before in this community.

Community
  • 1
  • 1
ben
  • 1,164
  • 1
  • 8
  • 5
53

QEMU with KVM is much, much faster than VirtualBox, you can test it yourself:

VirtualBox: vbox networking

QEMU QEMU

Disk and CPU tests provided similar results, more or less.

teknoraver
  • 906
  • 8
  • 6
  • That's interesting. A Web page suggest otherwise: https://techgenix.com/qemu-vs-virtualbox/ – Hilton Fernandes Jun 12 '22 at 20:51
  • 3
    @HiltonFernandes I think articles on sites like this are often primarily researched by reading other articles, so even what would be true statements can lose their original meaning after being recycled, becoming misleading. In this case I think the idea that VBox is faster comes from the fact that virtualization has an inherent speed advantage over emulation. QEMU is an emulator first and foremost, so this might hold true for VBox vs QEMU generally. But applying this broad generalization falls apart when we are talking about QEMU+KVM because QEMU+KVM is virtualization. – Jason Forbes Nov 22 '22 at 23:11
8

A difference is the supported list of instructions. Virtualbox and VMware don't support the f16c-instructions supported by architectures beginning with Ivy Bridge, which limits compilations even with newer CPUs to those for Sandy Bridge and leads to other incompatibilities.

Starhowl
  • 434
  • 5
  • 14