mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			86 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			4.7 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
	<section id="prepare-os">
 | 
						|
		<title>Prepare the Operating System</title>
 | 
						|
		<para>
 | 
						|
			The OS must be prepared to host the Management Server using the following steps. These steps must be performed on each Management Server node.
 | 
						|
		</para>
 | 
						|
			<orderedlist>
 | 
						|
				<listitem><para>Log in to your OS as root.</para></listitem>
 | 
						|
				<listitem><para>Check for a fully qualified hostname.</para>
 | 
						|
					<programlisting># hostname --fqdn</programlisting>
 | 
						|
					<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>
 | 
						|
				</listitem>
 | 
						|
				<listitem><para>Set SELinux to be permissive by default.</para>
 | 
						|
					<orderedlist numeration="loweralpha">
 | 
						|
						<listitem><para>Check to see whether SELinux is installed on your machine. If not, you can skip to step 4.</para>
 | 
						|
							<para>In RHEL or CentOS, SELinux is installed and enabled by default. You can verify this with:</para>
 | 
						|
							<programlisting># rpm -qa | grep selinux</programlisting>
 | 
						|
							<para condition="community">In Ubuntu, SELinux is not installed by default. You can verify this with:</para>
 | 
						|
							<programlisting condition="community"># dpkg --list 'selinux'</programlisting>
 | 
						|
						</listitem>
 | 
						|
						<listitem><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>
 | 
						|
							<para condition="community">In RHEL or CentOS:</para>
 | 
						|
							<programlisting># vi /etc/selinux/config</programlisting>
 | 
						|
							<para condition="community">In Ubuntu (do this step only if SELinux was found on the machine in the previous step):</para>
 | 
						|
							<programlisting condition="community"># selinux-config-enforcing permissive</programlisting>					
 | 
						|
						</listitem>
 | 
						|
						<listitem><para>Then set SELinux to permissive starting immediately, without requiring a system reboot.</para>
 | 
						|
							<para>In CentOS:</para>
 | 
						|
							<programlisting># setenforce permissive</programlisting>
 | 
						|
							<para>In RHEL:</para>
 | 
						|
							<programlisting># setenforce 0</programlisting>
 | 
						|
							<para condition="community">In Ubuntu (do this step only if SELinux was found on the machine):</para>
 | 
						|
							<programlisting condition="community"># setenforce permissive</programlisting>
 | 
						|
						</listitem>
 | 
						|
					</orderedlist>
 | 
						|
				</listitem>
 | 
						|
				<listitem><para>Make sure that the machine can reach the Internet.</para>
 | 
						|
					<programlisting># ping www.google.com</programlisting>
 | 
						|
				</listitem>
 | 
						|
				<listitem><para>(RHEL 6.2) If you do not have a Red Hat Network account, you need to prepare a local Yum repository.</para>
 | 
						|
					<orderedlist numeration="loweralpha">
 | 
						|
						<listitem><para>If you are working with a physical host, insert the RHEL 6.2 installation CD. If you are using a VM, attach the RHEL6 ISO.</para></listitem>
 | 
						|
						<listitem><para>Mount the CDROM to /media.</para></listitem>
 | 
						|
						<listitem><para>Create a repo file at /etc/yum.repos.d/rhel6.repo. In the file, insert the following lines:</para>
 | 
						|
							<programlisting>
 | 
						|
[rhel]
 | 
						|
name=rhel6
 | 
						|
baseurl=file:///media
 | 
						|
enabled=1
 | 
						|
gpgcheck=0	
 | 
						|
							</programlisting>
 | 
						|
						</listitem>
 | 
						|
					</orderedlist>
 | 
						|
				</listitem>
 | 
						|
				<listitem><para>Turn on NTP for time synchronization.</para>
 | 
						|
					<note><para>NTP is required to synchronize the clocks of the servers in your cloud.</para></note>
 | 
						|
					<orderedlist numeration="loweralpha">
 | 
						|
						<listitem><para>Install NTP.</para>
 | 
						|
							<para condition="community">On RHEL or CentOS:</para>
 | 
						|
							<programlisting># yum install ntp</programlisting>
 | 
						|
							<para condition="community">On Ubuntu:</para>
 | 
						|
							<programlisting condition="community"># apt-get install ntp</programlisting>
 | 
						|
						</listitem>
 | 
						|
						<listitem><para>Edit the NTP configuration file to point to your NTP server.</para>
 | 
						|
							<programlisting># vi /etc/ntp.conf</programlisting>
 | 
						|
							<para>Add one or more server lines in this file with the names of the NTP servers 
 | 
						|
								you want to use. For example:</para>
 | 
						|
							<programlisting>server 0.xenserver.pool.ntp.org
 | 
						|
server 1.xenserver.pool.ntp.org
 | 
						|
server 2.xenserver.pool.ntp.org
 | 
						|
server 3.xenserver.pool.ntp.org
 | 
						|
</programlisting>
 | 
						|
						</listitem>
 | 
						|
						<listitem><para>Restart the NTP client.</para>
 | 
						|
							<programlisting># service ntpd restart</programlisting>
 | 
						|
						</listitem>
 | 
						|
						<listitem><para>Make sure NTP will start again upon reboot.</para>
 | 
						|
							<para condition="community">On RHEL or CentOS:</para>
 | 
						|
							<programlisting># chkconfig ntpd on</programlisting>
 | 
						|
							<para condition="community">On Ubuntu:</para>
 | 
						|
							<programlisting># chkconfig ntp on</programlisting>
 | 
						|
						</listitem>
 | 
						|
					</orderedlist>
 | 
						|
				</listitem>
 | 
						|
				<listitem><para>Repeat all of these steps on every host where the Management Server will be installed.</para></listitem>
 | 
						|
			</orderedlist>
 | 
						|
	</section> |