[one-users] Experiments with haizea and OpenNebula
davood ghatreh
davood.gh2000 at gmail.com
Thu Dec 1 23:41:02 PST 2011
Hi Paulo,
Here it is. Just please note it is not a copy paste procedure, and you need
to know what you are doing.
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.
for oned server (OpenNebula):
25 cd /home/
rpm -ivh
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
48 yum install wget sqlite bridge-utils tunctl gcc python-devel scons
ruby-devel rubygems redhat-lsb
75 wget
http://dev.opennebula.org/packages/opennebula-3.0.0/CentOS-6.0/opennebula-3.0.0-1.x86_64.rpm
78 yum localinstall install opennebula-3.0.0-1.x86_64.rpm --nogpgcheck
76 /usr/share/one/install_gems
77 /usr/share/one/install_novnc.sh
18 vi /etc/one/sunstone-server.conf and change host and check auth to
be base
18 su oneadmin
*(REFRENCE1)*id oneadmin ==> create the same user with the same gid and uid
in MTSes (virtualization servers)
19 mkdir ~/.one
20 echo "oneadmin:*password*" > ~/.one/one_auth
21 chmod 600 ~/.one/one_auth
22 one start
19 oneacctd start
20 sunstone-server start
23 to check if it is up run: onevm list
ssh-keygen
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$ chmod 700 ~/.ssh/
$ chmod 600 ~/.ssh/id_dsa.pub
$ chmod 600 ~/.ssh/id_dsa
$ chmod 600 ~/.ssh/authorized_keys
to run the shared storage on NFS:
echo "/var/lib/one/ *MTSserverNames*(rw,no_root_squash)" >> /etc/export
service nfsrestart
service nfslock restart
service portmap restart
chkconfig --level 35 portmap on
chkconfig --level 35 nfslock on
chkconfig --level 35 nfs on
======================================
Now to make MTSes ready to be added in opennebula:
echo "*sharedstorageservername*:/var/lib/one/ /var/lib/one/" >>
/etc/rc.local
mount *sharedstorageservername*:/var/lib/one/ /var/lib/one/
rpm -ivh
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
yum install bridge-utils tunctl ruby
find *XXXX *using *REFRENCE1* in Oned server and then run following in
MTSes:
groupadd --gid *XXXX* oneadmin
useradd --uid *XXXX* -g oneadmin -d /var/lib/one oneadmin
usermod --groups oneadmin,kvm,qemu oneadmin
Modify /etc/libvirt/qemu.conf to include dynamic_ownership = 0 and make
following changes:
user = "oneadmin"
group = "oneadmin"
open /etc/libvirt/libvirtd.conf and make sure following are uncommented
listen_tcp = 1
unix_sock_group = "oneadmin"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0777"
then create:
/etc/polkit-1/localauthority/50-local.d/50-org.example-libvirt-remote-access.pkla
[org.libvirt.unix.manage]
Identity=unix-user:*
Action=org.libvirt.unix.manage
ResultAny=yes
ResultInactive=yes
ResultActive=yes
service libvirtd restart
chmod 700 /etc/sudoers
edit /etc/sudoers and add:
oneadmin ALL=(ALL) NOPASSWD: ALL
then comment:
Defaults requiretty
chmod 440 /etc/sudoers
and at last:
ln -sf /usr/libexec/qemu-kvm /usr/bin/kvm
reboot all servers and login to sunstone and add your MTSes. Keep in mind
that you need to run oned *just *as oeadmin user.
everyone is welcomed to change and improve these steps,
Thanks
Davood
On Fri, Dec 2, 2011 at 3:54 AM, Paulo Renato <paulorenat at gmail.com> wrote:
> Davood,
>
> 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).
>
> Thanks.
>
> Paulo Renato
>
> Em 1 de dezembro de 2011 18:42, davood ghatreh <davood.gh2000 at gmail.com>escreveu:
>
> Dear Paulo,
>>
>> 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.
>>
>> My experience is, if you install it properly, you will enjoy a real
>> meaning of a cloud concepts.
>>
>> Thanks
>> Davood
>>
>> On Thu, Dec 1, 2011 at 8:36 AM, Paulo Renato <paulorenat at gmail.com>wrote:
>>
>>> Hi everybody,
>>>
>>> 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?
>>>
>>>
>>> I hope you can help me!!
>>>
>>> thanks so much!
>>>
>>> Paulo Renato
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Atenciosamente,
>
> Paulo Renato
> Administrador de Redes
> Guarda Municipal de Fortaleza
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111202/a2c777ad/attachment-0002.htm>
More information about the Users
mailing list