Ask Your Question

How to install qemu from source for openstack on Scientific linux?

asked 2014-02-19 05:49:26 -0500

arindamchoudhury gravatar image

updated 2014-02-21 07:00:35 -0500

Jobin gravatar image


I use Scientific Linux in the host systems, which comes with pretty old qemu version.


I want to upgrade the qemu version and install it from source. qemu has a lot configuration options. Can I please get some recommendations on how to properly install qemu form source to be able to use it with openstack?

Regards, Arindam

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-02-21 07:08:10 -0500

Jobin gravatar image

updated 2014-02-23 22:56:44 -0500

You will need glib2, dh-autoreconf already installed. To install, execute:

sudo apt-get install libglib2.0-dev dh-autoreconf

Get the latest version of qemu from the repositories:

Extract the tar ball:

tar xvjf qemu-1.7.0.tar.bz2

Go to the directory where it has been extracted using cd <path>.

Check for dependencies and create the makefile using:


Compile the source using:


This make take some time; rough 30 minutes and then, to move the files to the appropriate locations using

sudo make install

Now, qemu-system-x86_64 --version should give you

QEMU emulator version 1.7.0, Copyright (c) 2003-2008 Fabrice Bellard

If you encounter any error at any of the above stages, you need to resolve that first before you proceed.

I have written a blog post on this, you can have have a look at it here:

My blog post on compiling qemu from source.

Feel free to ask for doubts as comments.

edit flag offensive delete link more


I am concern about which capabilities to enable while configuring form the list: tcg debug enabled no gprof enabled no sparse enabled no strip binaries yes profiler no static build no [....]

arindamchoudhury gravatar imagearindamchoudhury ( 2014-02-27 04:24:50 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2014-02-19 05:49:26 -0500

Seen: 345 times

Last updated: Feb 23 '14