<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[CloudForms Now]]></provider_name><provider_url><![CDATA[http://cloudformsblog.redhat.com]]></provider_url><author_name><![CDATA[johnhardy36]]></author_name><author_url><![CDATA[https://cloudformsblog.redhat.com/author/johnhardy36/]]></author_url><title><![CDATA[CloudForms as a&nbsp;Container]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>The <a href="https://access.redhat.com/documentation/en/red-hat-cloudforms/4.1/release-notes/release-notes">CloudForms 4.1 release</a> (June &#8217;16) delivered a new format for the CloudForms appliance: <strong>as a container in docker format</strong>. CloudForms has led the way by offering the appliance in several different virtualization and cloud formats, such as:</p>
<ul>
<li>Red Hat Virtualization</li>
<li>Red Hat OpenStack Platform</li>
<li>Google Cloud Platform</li>
<li>Microsoft Azure</li>
<li>Microsoft SCVMM (Hyper-v)</li>
<li>VMware vSphere</li>
</ul>
<p>With the new CloudForms container you can now host CloudForms on:</p>
<ul>
<li>Red Hat OpenShift Enterprise 3</li>
<li>Red Hat Atomic Host (7.2 or higher)</li>
<li>Red Hat Enterprise Linux (7.2 or higher)</li>
<li>Anywhere using docker</li>
</ul>
<p><!--more-->This is really ground breaking for a cloud management platform, as Container technology brings additional levels of <strong>portability</strong>, <strong>scalability</strong> and <strong>security</strong>.</p>
<p>Another great benefit is the simplicity to instantiate the container.</p>
<p><strong>NOTE:</strong> Red Hat CloudForms 4.1 availability as a container image is currently a <strong>TECHNICAL PREVIEW</strong>, therefore is <strong>UNSUPPORTED</strong> for production use. See <a class="link" href="https://access.redhat.com/support/offerings/techpreview/">Technology Preview Features Support Scope</a> for more information. You can obtain the Red Hat CloudForms container image from <a href="https://registry.access.redhat.com">https://registry.access.redhat.com</a>.</p>
<p>Here are the various ways you can instantiate CloudForms across the different container platforms available.</p>
<h4><strong>Red Hat Atomic Host</strong></h4>
<ol>
<li>Install Red Hat Atomic Host.</li>
<li>Log in via SSH to your Atomic Host.</li>
<li>Download the CloudForms container:</li>
</ol>
<pre class="literallayout"># atomic install cloudforms/cfme4:latest</pre>
<ol start="4">
<li>Run the CloudForms container:</li>
</ol>
<pre class="literallayout"># atomic run cloudforms/cfme4:latest</pre>
<p>Alternatively you can also use the docker command to run the CloudForms container:</p>
<pre class="literallayout"># docker run --privileged -di -p 80:80 -p 443:443 cloudforms/cfme4:latest</pre>
<h4>Red Hat Enterprise Linux</h4>
<ol>
<li>Install Red Hat Enterprise Linux 7.2</li>
<li>Log in via SSH to your Red Hat Enterprise Linux 7.2</li>
<li>Register your system with Red Hat:</li>
</ol>
<pre class="literallayout"># subscription-manager register --username=&lt;rhnuser&gt; --password=&lt;pwd&gt;
# subscription-manager list --available    
# subscription-manager attach --pool=&lt;pool_id&gt;
# subscription-manager repos --enable=rhel-7-server-extras-rpms
# subscription-manager repos --enable=rhel-7-server-optional-rpms</pre>
<ol start="4">
<li>Install docker and needed dependencies:</li>
</ol>
<pre class="literallayout"># yum install docker device-mapper-libs device-mapper-event-libs</pre>
<ol start="5">
<li>Start the docker service:</li>
</ol>
<pre class="literallayout"># systemctl start docker.service</pre>
<ol start="6">
<li>Enable the docker service:</li>
</ol>
<pre class="literallayout"># systemctl enable docker.service</pre>
<ol start="7">
<li>Run the CloudForms container:</li>
</ol>
<pre class="literallayout"># docker run --privileged -di -p 80:80 -p 443:443 cloudforms/cfme4:latest</pre>
<ol start="8">
<li>Login using a browser to http://<em>&lt;hostname&gt;</em></li>
</ol>
<h4>Anywhere with docker</h4>
<ol>
<li>Install docker.</li>
<li>Edit /etc/sysconfig/docker and amend the Red Hat registry to the ADD_REGISTRY key:</li>
</ol>
<pre class="literallayout">ADD_REGISTRY='--add-registry registry.access.redhat.com'</pre>
<ol start="3">
<li>Restart the docker service.</li>
<li>Execute the following command:</li>
</ol>
<pre class="literallayout"># docker run --privileged -di -p 80:80 -p 443:443 cloudforms/cfme4:latest</pre>
<h4>Lastly&#8230;.SSH Access</h4>
<p>Execute the following command to obtain a bash prompt on the CloudForms container to do things like import items or view log files:</p>
<pre class="lang-bsh prettyprint prettyprinted"><code><span class="pln"># sudo docker exec </span><span class="pun">-</span><span class="pln">i </span><span class="pun">-</span><span class="pln">t &lt;container ID/name&gt; /bin/bash</span></code></pre>
<p>You will be given access under /var/www/miq/vmdb path.</p>
]]></html><thumbnail_url><![CDATA[https://i1.wp.com/s2.wp.com/wp-content/themes/vip/rh-parent/img/og_shadowman.png?ssl=1&fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[200]]></thumbnail_width><thumbnail_height><![CDATA[200]]></thumbnail_height></oembed>