cloudstack/docs/en-US/hypervisor-host-install-libvirt.xml
Wido den Hollander b6a610e2db docs: Work on Management Server and Hypervisor Host installation
The Hypervisor installation describes what cloud-setup-agent is actually doing, but this way administrators know what the tool is doing.

We could remove all these things from cloud-setup-agent and require system administrators to perform these steps them selfs, this way
we don't break anything on their systems.

It would make setting up Hypervisors a bit harder, but would be much better on the longer run.
2012-08-16 17:27:54 +02:00

59 lines
2.8 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># yum install libvirt</programlisting>
<para>On Ubuntu:</para>
<programlisting># 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># 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>In order to have libvirt listening on TCP we have to change the execution arguments.</para>
<para>On RHEL or CentOS:</para>
<programlisting># vi /etc/sysconfig/libvirtd</programlisting>
<para>Uncomment the following line:</para>
<programlisting>#LIBVIRTD_ARGS="--listen"</programlisting>
<para>On Ubuntu:</para>
<programlisting># vi /etc/init/libvirt-bin.conf</programlisting>
<para>Change the following line:</para>
<programlisting>exec /usr/sbin/libvirtd -d</programlisting>
<para>to (just add -l)</para>
<programlisting>exec /usr/sbin/libvirtd -d -l</programlisting>
</listitem>
</orderedlist>
</section>