mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			66 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			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># 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 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> |