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

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

arindamchoudhury gravatar image

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

Jobin gravatar image

Hi,

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

qemu-kvm-0.12.1.2-2.355.el6_4.6.x86_64 
qemu-kvm-tools-0.12.1.2-2.355.el6_4.6.x86_64
qemu-img-0.12.1.2-2.355.el6_4.6.x86_64

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
0

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

Jobin gravatar image

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

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:

./configure

Compile the source using:

make

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

Comments

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 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

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

Seen: 326 times

Last updated: Feb 23 '14