Skip to content

Commit 6331bcb

Browse files
committed
2 parents 9ac17b3 + b6a610e commit 6331bcb

7 files changed

Lines changed: 253 additions & 4 deletions
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="hypervisor-host-install-flow">
26+
<title>Hypervisor Host installation</title>
27+
<xi:include href="hypervisor-host-install-overview.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
28+
<xi:include href="hypervisor-host-install-prepare-os.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
29+
<xi:include href="hypervisor-host-install-libvirt.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
30+
<xi:include href="hypervisor-host-install-security-policies.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
31+
</section>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="hypervisor-host-install-libvirt">
26+
<title>Install and Configure libvirt</title>
27+
<para>&PRODUCT; uses libvirt for managing virtual machines. Therefor it is vital that libvirt is configured correctly.</para>
28+
<orderedlist>
29+
<listitem>
30+
<para>Install libvirt</para>
31+
<para>On RHEL or CentOS:</para>
32+
<programlisting># yum install libvirt</programlisting>
33+
<para>On Ubuntu:</para>
34+
<programlisting># apt-get install libvirt-bin</programlisting>
35+
</listitem>
36+
<listitem>
37+
<para>In order to have live migration working libvirt has to listen for unsecured TCP connections.</para>
38+
<programlisting># vi /etc/libvirt/libvirtd.conf</programlisting>
39+
<para>Set the following paramaters:</para>
40+
<programlisting>listen_tls = 0</programlisting>
41+
<programlisting>listen_tcp = 1</programlisting>
42+
<programlisting>tcp_port = 16059</programlisting>
43+
<programlisting>auth_tcp none</programlisting>
44+
</listitem>
45+
<listitem>
46+
<para>In order to have libvirt listening on TCP we have to change the execution arguments.</para>
47+
<para>On RHEL or CentOS:</para>
48+
<programlisting># vi /etc/sysconfig/libvirtd</programlisting>
49+
<para>Uncomment the following line:</para>
50+
<programlisting>#LIBVIRTD_ARGS="--listen"</programlisting>
51+
<para>On Ubuntu:</para>
52+
<programlisting># vi /etc/init/libvirt-bin.conf</programlisting>
53+
<para>Change the following line:</para>
54+
<programlisting>exec /usr/sbin/libvirtd -d</programlisting>
55+
<para>to (just add -l)</para>
56+
<programlisting>exec /usr/sbin/libvirtd -d -l</programlisting>
57+
</listitem>
58+
</orderedlist>
59+
</section>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="hypervisor-host-install-overview">
26+
<title>Hypervisor Host Installation Overview</title>
27+
<para>This section describes installing a Hypervisor host. This is targeted towards hosts running Linux Kernel Virtual Machine (KVM)</para>
28+
<warning><para>Before continuing, make sure that you have applied the latest updates to your host.</para></warning>
29+
<para>The procedure for installing the Hypervisor Host is:</para>
30+
<orderedlist>
31+
<listitem><para>Prepare the Operating System</para></listitem>
32+
<listitem><para>Install and configure libvirt</para></listitem>
33+
<listitem><para>Configure Security Policies (AppArmor and SELinux)</para></listitem>
34+
<listitem><para>Install and configure the Agent</para></listitem>
35+
</orderedlist>
36+
</section>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="hypervisor-host-install-prepare-os">
26+
<title>Prepare the Operating System</title>
27+
<para>The OS of the Host must be prepared to host the &PRODUCT; Agent and run KVM instances.</para>
28+
<orderedlist>
29+
<listitem><para>Log in to your OS as root.</para></listitem>
30+
<listitem>
31+
<para>Check for a fully qualified hostname.</para>
32+
<programlisting># hostname --fqdn</programlisting>
33+
<para>This should return a fully qualified hostname such as "kvm1.lab.example.org". If it does not, edit /etc/hosts so that it does.</para>
34+
</listitem>
35+
<listitem>
36+
<para>Make sure that the machine can reach the Internet.</para>
37+
<programlisting># ping www.cloudstack.org</programlisting>
38+
</listitem>
39+
<listitem>
40+
<para>Turn on NTP for time synchronization.</para>
41+
<note><para>NTP is required to synchronize the clocks of the servers in your cloud.</para></note>
42+
<orderedlist numeration="loweralpha">
43+
<listitem><para>Install NTP</para>
44+
<para condition="community">On RHEL or CentOS:</para>
45+
<programlisting># yum install ntp</programlisting>
46+
<para condition="community">On Ubuntu:</para>
47+
<programlisting condition="community"># apt-get install openntpd</programlisting>
48+
</listitem>
49+
</orderedlist>
50+
</listitem>
51+
<listitem><para>Repeat all of these steps on every hypervisor host.</para></listitem>
52+
</orderedlist>
53+
</section>
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="hypervisor-host-install-security-policies">
26+
<title>Configure the Security Policies</title>
27+
<orderedlist>
28+
<listitem>
29+
<para>Configure SELinux (RHEL and CentOS)</para>
30+
<orderedlist numeration="loweralpha">
31+
<listitem>
32+
<para>Check to see whether SELinux is installed on your machine. If not, you can skip this section.</para>
33+
<para>In RHEL or CentOS, SELinux is installed and enabled by default. You can verify this with:</para>
34+
<programlisting># rpm -qa | grep selinux</programlisting>
35+
</listitem>
36+
<listitem>
37+
<para>Set the SELINUX variable in /etc/selinux/config to "permissive". This ensures that the permissive setting will be maintained after a system reboot.</para>
38+
<para>In RHEL or CentOS:</para>
39+
<programlisting># vi /etc/selinux/config</programlisting>
40+
<para>Change the following line</para>
41+
<programlisting>SELINUX=enforcing</programlisting>
42+
<para>to this</para>
43+
<programlisting>SELINUX=permissive</programlisting>
44+
</listitem>
45+
<listitem>
46+
<para>Then set SELinux to permissive starting immediately, without requiring a system reboot.</para>
47+
<programlisting># setenforce permissive</programlisting>
48+
</listitem>
49+
</orderedlist>
50+
</listitem>
51+
<listitem>
52+
<para>Configure Apparmor (Ubuntu)</para>
53+
<orderedlist numeration="loweralpha">
54+
<listitem>
55+
<para>Check to see whether AppArmor is installed on your machine. If not, you can skip this section.</para>
56+
<para>In Ubuntu AppArmor is installed and enabled by default. You can verify this with:</para>
57+
<programlisting># dpkg --list 'apparmor'</programlisting>
58+
</listitem>
59+
<listitem>
60+
<para>Disable the AppArmor profiles for libvirt</para>
61+
<programlisting>ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/</programlisting>
62+
<programlisting>ln -s /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper /etc/apparmor.d/disable/</programlisting>
63+
<programlisting>apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd</programlisting>
64+
<programlisting>apparmor_parser -R /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper</programlisting>
65+
</listitem>
66+
</orderedlist>
67+
</listitem>
68+
</orderedlist>
69+
</section>

‎docs/en-US/installation.xml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@
2727
<xi:include href="who-should-read-installation.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
2828
<xi:include href="installation-steps-overview.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
2929
<xi:include href="minimum-system-requirements.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
30-
<xi:include href="management-server-install-flow.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
30+
<xi:include href="management-server-install-flow.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
31+
<xi:include href="hypervisor-host-install-flow.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
3132
</chapter>

‎docs/en-US/minimum-system-requirements.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</listitem>
3737
<listitem><para>64-bit x86 CPU (more cores results in better performance)</para></listitem>
3838
<listitem><para>4 GB of memory</para></listitem>
39-
<listitem><para>250 GB of local disk (more results in better capability; 500 GB recommended)</para></listitem>
39+
<listitem><para>50 GB of local disk (When running secondary storage on the management server 500GB is recommended)</para></listitem>
4040
<listitem><para>At least 1 NIC</para></listitem>
4141
<listitem><para>Statically allocated IP address</para></listitem>
4242
<listitem><para>Fully qualified domain name as returned by the hostname command</para></listitem>
@@ -78,8 +78,8 @@
7878
</itemizedlist>
7979
<para>The main requirement for KVM hypervisors is the libvirt and Qemu version. If you whish to run on a different distribution, make sure you meet the following requirements:</para>
8080
<itemizedlist>
81-
<listitem><para>libvirt: 0.9.4 and higher</para></listitem>
82-
<listitem><para>Qemu/KVM: 1.0 and higher</para></listitem>
81+
<listitem><para>libvirt: 0.9.4 or higher</para></listitem>
82+
<listitem><para>Qemu/KVM: 1.0 or higher</para></listitem>
8383
</itemizedlist>
8484
</section>
8585
<section id="hypervisor-requirements-ovm">

0 commit comments

Comments
 (0)