How to install virtualization tools in Linux llibvirt

  

libvirt is a virtualization tool under Linux that supports various virtual machine monitors. How do you install the virtualization tool libvirt? The following small series will introduce you how to install libvirt virtualization tool on Linux, let's get to know it.

installation steps:

by TANG Jia

version of this test is adopted: ubuntu12.04, libvirt1.1.2

mounting libvirt :

1, install virtinst

apt get installvirtinst

Before installing libvirt, first install virtinst in order to make libvirt come with libvirt when installing virtinst. This is very important. Then compile and install libvirt.

2, download libvirt1.1.2, unzip, switch to libvirt1.1.2 directory

Download libvirt archive URL: ftp://libvirt.org/libvirt/

3, if you execute directly. /configure, you will be prompted to get a lot of packages, so install the package first:

apt-get install libxml++2.6-2 libxml++2.6-dev

apt-get install libdevmapper-dev

apt-get install libpciaccess-dev

apt-get install python-dev

apt-get install libnl-dev

4, install dependencies After the package, it is executed in the current directory. /configure--prefix=/usr

(where the --prefix option is the specified installation path).

Execution is successful, some of the output is as follows:

configure:Readline:no

configure:Python:yes

configure:DTrace:no

configure:numad:no

configure:XML Catalog:/etc/xml/catalog

configure:Init script:check

configure:Char device locks:/var /lock

configure:

configure:Privileges

configure:

configure:QEMU:root:root

configure:

5, compile: make

install: makeinstall

At this point libvirtd is installed successfully!

6, start libvirt service

service libvirt-bin start

Everything to note, libvirt-daemon is started by libvirt-bin, not libvirtd, Libvirt-bin is a symbolic link /etc/init.d/libvirt-bin-" /lib/init/upstart-job, which is a shell script.

Similarly, stopping the libvirt service is the service libvrit-bin stop;

The correctness of the above operation is limited to installing libvirt on ubuntu, the focus is on steps 1 and 6, which is online. There are some differences in the installation of libvirt in many blog posts. For example, many do not have step 1, and step 6 starts libvirt as service libvirtd

start, which will report libvirtd:unrecognizedservice.

2nd. The downloading, compiling, and installation of steps 3, 4, and 5 are consistent on any version of Linux.

The above is the introduction of the Linux installation libvirt virtualization tool. It is worth noting that libvirt itself is not a tool, but an API, I hope to help you.

Copyright © Windows knowledge All Rights Reserved