Davood,<div><br></div><div>I follow your stepwise and it works for me. Now I was trying install OpenNebula 3.1 and I see that the configuration was diferent. But my problem is start oneacctd. The problem is related with authentication. Any idiea?</div>
<div><br></div><div>Thanks.<br><br><div class="gmail_quote">Em 2 de dezembro de 2011 04:41, davood ghatreh <span dir="ltr"><<a href="mailto:davood.gh2000@gmail.com">davood.gh2000@gmail.com</a>></span> escreveu:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Paulo,<br><br>Here it is. Just please note it is not a copy paste procedure, and you need to know what you are doing.<br>It is divided to two steps. One for Oned server, one for virtulalization server(s). I used CentOS6 65 on all servers, and virtualization layer is KVM.<br>
<br>for oned server (OpenNebula):<br><br> 25 cd /home/<br>rpm -ivh <a href="http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm" target="_blank">http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm</a><br>
48 yum install wget sqlite bridge-utils tunctl gcc python-devel scons ruby-devel rubygems redhat-lsb<br> 75 wget <a href="http://dev.opennebula.org/packages/opennebula-3.0.0/CentOS-6.0/opennebula-3.0.0-1.x86_64.rpm" target="_blank">http://dev.opennebula.org/packages/opennebula-3.0.0/CentOS-6.0/opennebula-3.0.0-1.x86_64.rpm</a><br>
78 yum localinstall install opennebula-3.0.0-1.x86_64.rpm --nogpgcheck<br> 76 /usr/share/one/install_gems <br> 77 /usr/share/one/install_novnc.sh <br> 18 vi /etc/one/sunstone-server.conf and change host and check auth to be base<br>
<br> 18 su oneadmin<br><br><b><span style="color:rgb(204,51,204)">(REFRENCE1)</span></b>id oneadmin ==> create the same user with the same gid and uid in MTSes (virtualization servers)<br><br> 19 mkdir ~/.one<br>
20 echo "oneadmin:<b><span style="color:rgb(255,0,0)">password</span></b>" > ~/.one/one_auth<br> 21 chmod 600 ~/.one/one_auth<br> 22 one start<br> 19 oneacctd start<br> 20 sunstone-server start<br>
23 to check if it is up run: onevm list<br><br>ssh-keygen<br>cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys<br>$ chmod 700 ~/.ssh/<br>$ chmod 600 ~/.ssh/id_dsa.pub<br>$ chmod 600 ~/.ssh/id_dsa<br>$ chmod 600 ~/.ssh/authorized_keys<br>
<br>to run the shared storage on NFS:<br>echo "/var/lib/one/ <b><span style="color:rgb(255,0,0)">MTSserverNames</span></b>(rw,no_root_squash)" >> /etc/export<br><br>service nfsrestart<br>service nfslock restart<br>
service portmap restart<br>chkconfig --level 35 portmap on<br>chkconfig --level 35 nfslock on<br>chkconfig --level 35 nfs on<br><br>======================================<br>Now to make MTSes ready to be added in opennebula:<br>
<br>echo "<b><span style="color:rgb(255,0,0)">sharedstorageservername</span></b>:/var/lib/one/ /var/lib/one/" >> /etc/rc.local<br>mount <b><span style="color:rgb(255,0,0)">sharedstorageservername</span></b>:/var/lib/one/ /var/lib/one/<br>
rpm -ivh <a href="http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm" target="_blank">http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm</a><br>yum install bridge-utils tunctl ruby<br>
<br>find <b><span style="color:rgb(204,51,204)">XXXX </span></b>using <b><span style="color:rgb(204,51,204)">REFRENCE1</span></b> in Oned server and then run following in MTSes:<br><br>groupadd --gid <b><span style="color:rgb(204,51,204)">XXXX</span></b> oneadmin<br>
useradd --uid <b><span style="color:rgb(204,51,204)">XXXX</span></b> -g oneadmin -d /var/lib/one oneadmin<br>usermod --groups oneadmin,kvm,qemu oneadmin<br><br>Modify /etc/libvirt/qemu.conf to include dynamic_ownership = 0 and make following changes:<br>
user = "oneadmin"<br>group = "oneadmin"<br><br>open /etc/libvirt/libvirtd.conf and make sure following are uncommented<br><br>listen_tcp = 1<br>unix_sock_group = "oneadmin"<br>unix_sock_ro_perms = "0777"<br>
unix_sock_rw_perms = "0777"<br><br><br><br>then create:<br><br>/etc/polkit-1/localauthority/50-local.d/50-org.example-libvirt-remote-access.pkla<br><br>[org.libvirt.unix.manage]<br>Identity=unix-user:*<br>Action=org.libvirt.unix.manage<br>
ResultAny=yes<br>ResultInactive=yes<br>ResultActive=yes<br><br>service libvirtd restart<br><br>chmod 700 /etc/sudoers<br>edit /etc/sudoers and add:<br><br>oneadmin ALL=(ALL) NOPASSWD: ALL<br><br>then comment:<br>
Defaults requiretty<br><br><br>chmod 440 /etc/sudoers<br><br><br><br>and at last:<br><br>ln -sf /usr/libexec/qemu-kvm /usr/bin/kvm<br><br><br>reboot all servers and login to sunstone and add your MTSes. Keep in mind that you need to run oned <b style="color:rgb(0,153,0)">just </b>as oeadmin user.<br>
<br>everyone is welcomed to change and improve these steps, <br><br><br>Thanks<span class="HOEnZb"><font color="#888888"><br>Davood</font></span><div class="HOEnZb"><div class="h5"><br><br><br><div class="gmail_quote">On Fri, Dec 2, 2011 at 3:54 AM, Paulo Renato <span dir="ltr"><<a href="mailto:paulorenat@gmail.com" target="_blank">paulorenat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>Davood,</span><div><font color="#222222" face="arial, sans-serif"><br>
</font></div><div><font color="#222222" face="arial, sans-serif">thanks for the help. I want your stepwise procedure, because I tried install opennebula a long time ago and I had some problems with installation and the concepts about the server roles (infrastructure).</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Thanks.</font></div><div><font color="#222222" face="arial, sans-serif"><br>
</font></div><div><font color="#222222" face="arial, sans-serif">Paulo Renato<br></font><br><div class="gmail_quote">Em 1 de dezembro de 2011 18:42, davood ghatreh <span dir="ltr"><<a href="mailto:davood.gh2000@gmail.com" target="_blank">davood.gh2000@gmail.com</a>></span> escreveu:<div>
<div><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Paulo,<br><br>you can manage all your servers using OpenNebula and prepare your own cloud and even offer private cloud using VDC. I suggest to install the controller (oned server) on CentOS6-64, and I can provide you with the stepwise procedure if you want.<br>
<br>My experience is, if you install it properly, you will enjoy a real meaning of a cloud concepts.<br><br>Thanks<br>Davood<br><br><div class="gmail_quote"><div><div>On Thu, Dec 1, 2011 at 8:36 AM, Paulo Renato <span dir="ltr"><<a href="mailto:paulorenat@gmail.com" target="_blank">paulorenat@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><p></p><p style="font-family:arial,sans-serif;font-size:13px">
Hi everybody,</p><p style="font-family:arial,sans-serif;font-size:13px">I need a cloud created with OpenNebula to do some experiments. I made a simulation with Haizea and I need to execute this simulation in a OpenNebula cloud. My experiment start approximately 150 machines. So note that in my experiments I need access directly the OpenNebula cloud. Anyone knows a cloud that a could do it?</p>
<p style="font-family:arial,sans-serif;font-size:13px"><br>I hope you can help me!!</p><p style="font-family:arial,sans-serif;font-size:13px">thanks so much!</p><span><font color="#888888">
<p></p><div>Paulo Renato</div>
</font></span><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div></div></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Atenciosamente,<br><br>Paulo Renato<br>Administrador de Redes<br>Guarda Municipal de Fortaleza<br>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Atenciosamente,<br><br>Paulo Renato<br>Administrador de Redes<br>Guarda Municipal de Fortaleza<br>
</div>