I recently tried QEMU, so I can run both Windows and Linux/*nix at the same time.

I looked for docs/tutorials online, but found they are way beyond my comprehension. So I just followed https://www.youtube.com/watch?v=al1cnTjeayk

I just used a regular Ubuntu Mate 16.04.06 iso, but booting to the Ubuntu landing page took me about 10 minutes to load the page (the Ubuntu Linux install landing page).

What could go wrong? I still run on Intel Core2Duo (old 2009 HW). I am still pretty much on default settings I think...

I dont understand much about KVM and many of the hardware stuff.

Still a newbie here..

  • 1
    Do you really need to use QEMU? VirtualBox or dual boot may be faster. – user202729 Aug 15 at 8:32
  • I heard that QEMU is the fastest.. – K4ll-of-D00ty Aug 16 at 6:07

By default, qemu will ignore the presence of hardware virtualization capabilities. To quote the online documentation:

Depending on the target architecture, kvm, xen, hax, hvf, whpx or tcg can be available. By default, tcg is used.

"tcg" refers to the built-in "Tiny Code Generator" that is used to (slowly) emulate the guest CPU in software. The Alpine Linux live disc used for demonstration in the video you linked is lightweight enough to boot quickly even without assistance from hardware virtualization. The Ubuntu image you're trying to boot is a lot heavier, and personally, I'm surprised it even started within ten minutes. Also note that guest code running under tcg is assumed to be trusted, so I wouldn't recommend relying on qemu to contain malicious code in this mode.

Since the host platform in question is Windows, the hax or whpx accelerator will allow the emulator to use hardware virtualization. Downloads for the HAXM hypervisor are available here. Instructions for enabling the Windows Hypervisor Platform are here. Once one or the other is enabled, telling the emulator to use VT-x through HAXM or the Windows Hypervisor Platform with -accel hax or -accel whpx should result in a noticeable speedup.

qemu is inherently complex, and even the individuals who use it on a regular basis prefer to interact with an abstraction layer such as libvirt instead of driving the emulator by hand.

The alternative suggested by @user202729, to use a different virtualization package such as VirtualBox, is probably more straightforward than messing with qemu since other software products are "faster" in the sense that they can be installed and configured by the user in less time.

  • WHoAA.. Dude... I am newbie dude.. – K4ll-of-D00ty Aug 16 at 6:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.