ubuntu14.04 manually installing QEMU and Libvirt

Source: Internet
Author: User

Install the QEMU and libvirt environments in a new ubuntu14.04 with source code compilation. You need to be aware of an installation order issue. It is recommended that you install QEMU before installing Libvirt. Because, when libvirt up, it detects the hypervisor it needs to use. In addition, their installation is best to specify the installation path to the/usr directory so that the Libvirt and QEMU commands can be used globally directly after installation. and Libvirt by default is by calling the QEMU command under/usr/bin to get the QEMU version and commands used. Therefore, to ensure that the libvirt can be easily called to the QEMU command, the installation of two components will need to be specified in the/usr directory.

Reference links for Qemu and libvirt:

Http://wiki.qemu.org/Manual

Http://libvirt.org/index.html


Versions of QEMU and Libvirt get:

Http://wiki.qemu.org/Download

http://libvirt.org/sources/


Sources used in experiments:

Libvirt-1.3.4.tar.gz

qemu-2.5.1.tar.bz2


To install QEMU:

The following operations use the root account:

1. TAR-JXVF qemu-2.5.1.tar.bz2

2. CD QEMU-2.5.1/

3. Install the necessary components: (This step can be installed as needed in the Configure step)

Apt-get Install Zlib1g-dev Libglib2.0-dev libtool autoconf

4../configure--PREFIX=/USR--localstatedir=/var--sysconfdir=/etc

The--prefix is used to specify the destination path for the installation. The silent QEMU will be installed in the/usr/local/bin.

5. Make

6. Make Install

After the installation is complete, you can try entering the QEMU command in any directory. or directly enter which qemu-img to view the installation location of the command


Install Libvirt:

The following operations use the root account:

1. TAR-ZXVF libvirt-1.3.4.tar.gz

2. CD libvirt-1.3.4

3. Install the necessary components: (This step can be installed as needed in the Configure step)

Libyajl-dev libxml2-dev libdevmapper1.0.2.1 Libdevmapper-dev libpciaccess-dev Libnl-dev

4. ./configure--prefix=/usr--localstatedir=/var--sysconfdir=/etc

The--prefix is used to specify the destination path for the installation. Silent Libvirt will be installed in the/usr/local/bin.

5. Make

6. Make Install

7. Start libvirtd:libvirtd-d


Verify:

[Email protected]:/home/test# virsh version
Compiled against Library:libvirt 1.3.4
Using Library:libvirt 1.3.4
Using Api:qemu 1.3.4
Running Hypervisor:qemu 2.5.1


Resources:

Http://www.chenyudong.com/archives/install-qemu-libvirt-in-fedora-linux.html

Http://www.360doc.com/content/14/0521/16/16285334_379675056.shtml

http://blog.csdn.net/heybob/article/details/24481397

http://blog.csdn.net/klyhuntermax/article/details/51353212








ubuntu14.04 manually installing QEMU and Libvirt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.