cloudstack/docs/en-US/hypervisor-host-install-libvirt.xml
Wido den Hollander 342481e603 docs: Add more Hypervisor and Management installation
This commit also renames a lot of Management Server installation files to try to get
consistency in the naming of files.

It should make it easier to identify which files are for which section.
2012-08-24 16:44:53 +02:00

66 lines
3.2 KiB
XML

<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
%BOOK_ENTITIES;
]>
<!-- Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<section id="hypervisor-host-install-libvirt">
<title>Install and Configure libvirt</title>
<para>&PRODUCT; uses libvirt for managing virtual machines. Therefor it is vital that libvirt is configured correctly.</para>
<orderedlist>
<listitem>
<para>Install libvirt</para>
<para>On RHEL or CentOS:</para>
<programlisting language="Bash">yum install libvirt</programlisting>
<para>On Ubuntu:</para>
<programlisting language="Bash">apt-get install libvirt-bin</programlisting>
</listitem>
<listitem>
<para>In order to have live migration working libvirt has to listen for unsecured TCP connections.</para>
<programlisting language="Bash">vi /etc/libvirt/libvirtd.conf</programlisting>
<para>Set the following paramaters:</para>
<programlisting>listen_tls = 0</programlisting>
<programlisting>listen_tcp = 1</programlisting>
<programlisting>tcp_port = 16059</programlisting>
<programlisting>auth_tcp = "none"</programlisting>
</listitem>
<listitem>
<para>Turning on "listen_tcp" in libvirtd.conf is not enough, we have to change the parameters as well:</para>
<para>On RHEL or CentOS:</para>
<programlisting language="Bash">vi /etc/sysconfig/libvirtd</programlisting>
<para>Uncomment the following line:</para>
<programlisting>#LIBVIRTD_ARGS="--listen"</programlisting>
<para>On Ubuntu:</para>
<programlisting language="Bash">vi /etc/init/libvirt-bin.conf</programlisting>
<para>Change the following line (at the end of the file):</para>
<programlisting>exec /usr/sbin/libvirtd -d</programlisting>
<para>to (just add -l)</para>
<programlisting>exec /usr/sbin/libvirtd -d -l</programlisting>
</listitem>
<listitem>
<para>Restart libvirt</para>
<para>In RHEL or CentOS:</para>
<programlisting language="Bash">service libvirtd restart</programlisting>
<para>In Ubuntu:</para>
<programlisting language="Bash">service libvirt-bin restart</programlisting>
</listitem>
</orderedlist>
</section>