Slow KVM Virtual Machine Performance Solved - Choose the right architecture with the CPU flag

I am running a 64-bit host and was running a 32-bit XP guest which was crawling no matter what I was doing with it,in fact it frequently used 100% CPU power while having no real work load.  I experienced with this other guests and wondered why KVM was slow compared to say Xen or Virtualbox.

This is because you need to use the "-cpu" flag.

For a full list of options run:

/usr/libexec/qemu-kvm -cpu \?

x86           qemu64
x86           qemu32
x86         pentium3

The option you need to pass is either "-cpu qemu64" or "-cpu qemu32".  Obviously qemu64 is for 64bit guests and qemu32 is for 32bit guests.

Make sure you specify this or your guest will be extremely slow since it will be emulating the architecture and won't give you native performance if you choose the wrong architecture. 

Also note that if you don't specify the -cpu flag it defaults to your host's architecture (eg. 64bit Centos or 32bit Centos).

So again, the solution is to use the -cpu flag and make sure you specify the correct architecture for the guest.


Tags:

kvm, virtual, architecture, cpu, flagi, xp, frequently, xen, virtualbox, quot, usr, libexec, qemu, pentium, specify, emulating, native, defaults, eg, centos,

Latest Articles

  • python 3 pip cannot install mysql module
  • QEMU-KVM won't boot Windows 2016 or 2019 server on an Intel Core i3
  • Virtualbox vbox not starting "No suitable module for running kernel found"
  • Bind / named not responding to queries solution
  • Linux Mint How To Set Desktop Background Image From Bash Prompt CLI
  • ImageMagick Convert PDF Not Authorized
  • ImageMagick Converted PDF to JPEG some files have a black background solution
  • Linux Mint Mate Customize the Lock screen messages and hide username and real name
  • Ubuntu/Gnome/Mint/Centos How To Take a partial screenshot
  • ssh how to verify your host key / avoid MIM attacks
  • Cisco IP Phone CP-8845 8800/8900 Series How To Reset To Factory Settings Instructions
  • ls how to list ONLY directories
  • How to encrypt your SSH private key file id_rsa
  • Linux Mint 18 Disable User Name List from showing on Login Screen
  • Firefox Cannot Hit Enter Key In Address Bar and Location History Not Working
  • Cisco Unified Communications Manager / CUCM IP 8.6,10,12 Install Error Solution
  • Ubuntu Debian Mint Linux SSHD OpenSSH Server Not Starting After Reboot Solution
  • nmap how to scan for all ports and not just the 1000 most common ports
  • Windows 7,8,10 and Server 2008, 2012, 2016, 2019 Read Only Attribute Won't Go Away
  • bind / named how to make a wildcard record and retain defined A records