Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install libvirt Virtualization tools on Linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to install libvirt virtualization tools on Linux". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Installation steps:

By TANG Jia

The version numbers passed by this test are: ubuntu12.04, libvirt1.1.2.

Install libvirt:

1, install virtinst

Apt get installvirtinst

It is important to install virtinst before installing libvirt in order to overwrite the version of libvirt that comes with virtinst when you compile and install libvirt later. After that, you can compile and install libvirt.

2. Download libvirt1.1.2, extract it, and change to the libvirt1.1.2 directory

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

3, if you execute it directly. / configure, it will prompt you that many packages are missing, 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. After installing the dependency package, execute it in the current directory. / configure--prefix=/usr

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

The execution is successful. Some of the outputs are 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

Installation: makeinstall

So far, libvirtd has been installed successfully!

6. Start the libvirt service

Service libvirt-bin start

Note that libvirt-daemon is started by libvirt-bin, not that 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 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 somewhat different from the libvirt installation mentioned in many blog posts online. For example, many do not have step 1, and step 6 starts libvirt as service libvirtd.

Start, this will report an error as libvirtd:unrecognizedservice.

The download, compilation, and installation of 2, 3, 4, 4 and 5 steps are consistent on any version of Linux.

That's all for "how to install libvirt Virtualization tools on Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report