[f894c6ab] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY libvirt-download-http "http://libvirt.org/sources/libvirt-&libvirt-version;.tar.gz">
|
---|
| 8 | <!ENTITY libvirt-download-ftp " ">
|
---|
| 9 | <!ENTITY libvirt-md5sum "5e842bc55733ceba60c64767580ff3e4">
|
---|
| 10 | <!ENTITY libvirt-size "19 MB">
|
---|
| 11 | <!ENTITY libvirt-buildsize "240 MB">
|
---|
| 12 | <!ENTITY libvirt-time "1.6 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libvirt" xreflabel="libvirt-&libvirt-version;">
|
---|
| 16 | <?dbhtml filename="libvirt.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libvirt-&libvirt-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libvirt">
|
---|
| 26 | <primary sortas="a-libvirt">libvirt</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libvirt</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
[0d7900a] | 33 | The <application>libvirt</application> is a C toolkit
|
---|
[f894c6ab] | 34 | used to interact with the virtualization capabilities
|
---|
| 35 | of recent versions of Linux (and other OSes).
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
| 38 | &lfs71_checked;
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&libvirt-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&libvirt-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &libvirt-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &libvirt-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &libvirt-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &libvirt-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">libvirt Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
| 78 | <xref linkend="gnutls"/>,
|
---|
| 79 | <xref linkend="libgcrypt"/>,
|
---|
| 80 | <xref linkend="libtirpc"/>,
|
---|
| 81 | <xref linkend="libxml2"/> and
|
---|
| 82 | <xref linkend="lvm2"/>
|
---|
| 83 | </para>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 86 | <para role="recommended">
|
---|
| 87 | <xref linkend="polkit"/>
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 91 | <para role="optional">
|
---|
| 92 | <xref linkend="avahi"/>,
|
---|
| 93 | <xref linkend="curl"/>,
|
---|
| 94 | <xref linkend="cyrus-sasl"/>,
|
---|
| 95 | <ulink url="http://people.redhat.com/sgrubb/libcap-ng/">
|
---|
| 96 | libcap-ng</ulink>,
|
---|
| 97 | <xref linkend="libnl"/>,
|
---|
| 98 | <ulink url="http://oss.sgi.com/projects/libnuma/">
|
---|
| 99 | libnuma</ulink>,
|
---|
| 100 | <xref linkend="libpcap"/>,
|
---|
| 101 | <ulink url="http://www.libssh2.org/">libssh2</ulink>,
|
---|
| 102 | <ulink url="https://fedorahosted.org/netcf/">NetCF</ulink>,
|
---|
| 103 | <ulink url="http://www.open-iscsi.org/">Open iSCSI</ulink>,
|
---|
| 104 | <ulink url="http://www.openswan.org/projects/openswan/">
|
---|
| 105 | OpenSwan</ulink>,
|
---|
| 106 | <xref linkend="parted"/>,
|
---|
| 107 | <xref linkend="qemu-kvm"/>,
|
---|
| 108 | <ulink url="https://www.virtualbox.org/">VirtualBox</ulink>,
|
---|
| 109 | <ulink url="http://www.xen.org/">Xen</ulink>,
|
---|
| 110 | <xref linkend="xorg7-lib"/> and
|
---|
| 111 | <ulink url="http://lloyd.github.com/yajl/">YAYL</ulink>
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <para condition="html" role="usernotes">
|
---|
| 115 | User Notes: <ulink url="&blfs-wiki;/libvirt"/>
|
---|
| 116 | </para>
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="installation">
|
---|
| 120 | <title>Installation of libvirt</title>
|
---|
| 121 |
|
---|
| 122 | <para>
|
---|
| 123 | Install <application>libvirt</application> by running the following
|
---|
| 124 | commands:
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 128 | --libexecdir=/usr/lib/libvirt \
|
---|
| 129 | --with-storage-lvm \
|
---|
| 130 | --without-macvtap \
|
---|
| 131 | --disable-static \
|
---|
| 132 | CPPFLAGS="-I/usr/include/tirpc -I/usr/include/libnl3" &&
|
---|
| 133 | make</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | <para>
|
---|
| 136 | To test the results, issue: <command>make check</command>.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | <sect2 role="commands">
|
---|
| 147 | <title>Command Explanations</title>
|
---|
| 148 |
|
---|
| 149 | <para>
|
---|
| 150 | <option>--with-storage-lvm</option>: This option enables LVM storage backend.
|
---|
| 151 | </para>
|
---|
| 152 |
|
---|
| 153 | <para>
|
---|
| 154 | <option>--without-macvtap</option>: This option disables macvtap device support.
|
---|
| 155 | Remove if you have installed <xref linkend="libnl"/>.
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
| 158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 159 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2 role="content">
|
---|
| 164 | <title>Contents</title>
|
---|
| 165 |
|
---|
| 166 | <segmentedlist>
|
---|
| 167 | <segtitle>Installed Programs</segtitle>
|
---|
| 168 | <segtitle>Installed Libraries</segtitle>
|
---|
| 169 | <segtitle>Installed Directories</segtitle>
|
---|
| 170 |
|
---|
| 171 | <seglistitem>
|
---|
| 172 | <seg>
|
---|
| 173 | libvirtd, virsh, virt-host-validate,
|
---|
| 174 | virt-pki-validate and virt-xml-validate
|
---|
| 175 | </seg>
|
---|
| 176 | <seg>
|
---|
| 177 | libvirt.so and libvirt-qemu.so
|
---|
| 178 | </seg>
|
---|
| 179 | <seg>
|
---|
| 180 | /etc/libvirt, /usr/include/libvirt, /usr/lib/libvirt,
|
---|
| 181 | /usr/share/augeas/lenses,
|
---|
[0d7900a] | 182 | /usr/share/doc/{libvirt-0.9.11,libvirt-python-0.9.11},
|
---|
[f894c6ab] | 183 | /usr/share/gtk-doc/html/libvirt,
|
---|
| 184 | /usr/share/libvirt, /var/cache/libvirt, /var/lib/libvirt and
|
---|
| 185 | /var/log/libvirt
|
---|
| 186 | </seg>
|
---|
| 187 | </seglistitem>
|
---|
| 188 | </segmentedlist>
|
---|
| 189 |
|
---|
| 190 | <variablelist>
|
---|
| 191 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 192 | <?dbfo list-presentation="list"?>
|
---|
| 193 | <?dbhtml list-presentation="table"?>
|
---|
| 194 |
|
---|
| 195 | <!-- If the program or library name conflicts (is the same) as the
|
---|
| 196 | package name, add -prog or -lib to the varlistentry entity id
|
---|
| 197 | and the 2nd entry of the indexterm zone entity -->
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="libvirtd">
|
---|
| 200 | <term><command>libvirtd</command></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>
|
---|
[0d7900a] | 203 | is the server side daemon component of the libvirt
|
---|
[f894c6ab] | 204 | virtualization management system.
|
---|
| 205 | </para>
|
---|
| 206 | <indexterm zone="libvirt libvirtd">
|
---|
| 207 | <primary sortas="b-libvirtd">libvirtd</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="virsh">
|
---|
| 213 | <term><command>virsh</command></term>
|
---|
| 214 | <listitem>
|
---|
| 215 | <para>
|
---|
| 216 | is the main interface for managing virsh guest domains.
|
---|
| 217 | </para>
|
---|
| 218 | <indexterm zone="libvirt virsh">
|
---|
| 219 | <primary sortas="b-virsh">virsh</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="virt-host-validate">
|
---|
| 225 | <term><command>virt-host-validate</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>
|
---|
[0d7900a] | 228 | This tool validates that the host is configured in
|
---|
[f894c6ab] | 229 | a suitable way to run libvirt hypervisor drivers.
|
---|
| 230 | </para>
|
---|
| 231 | <indexterm zone="libvirt virt-host-validate">
|
---|
| 232 | <primary sortas="b-virt-host-validate">virt-host-validate</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
| 237 | <varlistentry id="virt-pki-validate">
|
---|
| 238 | <term><command>virt-pki-validate</command></term>
|
---|
| 239 | <listitem>
|
---|
| 240 | <para>
|
---|
[0d7900a] | 241 | This tool validates that the necessary PKI files are
|
---|
[f894c6ab] | 242 | configured for a secure libvirt server or client
|
---|
| 243 | using the TLS encryption protocol.
|
---|
| 244 | </para>
|
---|
| 245 | <indexterm zone="libvirt virt-pki-validate">
|
---|
| 246 | <primary sortas="b-virt-pki-validate">virt-pki-validate</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="virt-xml-validate">
|
---|
| 252 | <term><command>virt-xml-validate</command></term>
|
---|
| 253 | <listitem>
|
---|
| 254 | <para>
|
---|
[0d7900a] | 255 | is used to validate a libvirt XML for compliance with the
|
---|
[f894c6ab] | 256 | published schema.
|
---|
| 257 | </para>
|
---|
| 258 | <indexterm zone="libvirt virt-xml-validate">
|
---|
| 259 | <primary sortas="b-virt-xml-validate">virt-xml-validate</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
| 264 | <varlistentry id="libvirt-lib">
|
---|
| 265 | <term><filename class="libraryfile">libvirt.so</filename></term>
|
---|
| 266 | <listitem>
|
---|
| 267 | <para>
|
---|
| 268 | contains the <application>libvirt</application> API functions.
|
---|
| 269 | </para>
|
---|
| 270 | <indexterm zone="libvirt libvirt-lib">
|
---|
| 271 | <primary sortas="c-libvirt">libvirt.so</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | </variablelist>
|
---|
| 277 |
|
---|
| 278 | </sect2>
|
---|
| 279 |
|
---|
| 280 | </sect1>
|
---|