8/3/2011 Install Front End

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 9

8/3/2011

Install Front End

Update: sudo apt-get update

Set pass root: sudo passwd root (035235)

we configure the head-node as a router by enabling in /etc/sysctl.conf the line for packet
forwarding:

net.ipv4.ip_forward = 1
and then enable IP masquerading at boot-time by appending to /etc/rc.local

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

cài các gói phần mềm:

sudo apt-get install libcurl3 libmysqlclient16 libruby1.8 libsqlite3-ruby


libsqlite3-ruby1.8 libxmlrpc-c3 libxmlrpc-core-c3 mysql-common ruby ruby1.8

sudo apt-get install libsqlite3-dev libxmlrpc-c3-dev scons g++ ruby libopenssl-ruby libssl-dev

sudo apt-get install ruby-dev make rake rubygems libxml-parser-ruby1.8 libxslt1-dev libxml2-
dev

sudo gem install nokogiri (ruby gem)

Tao cac thu muc:

mkdir -p /srv/cloud/images
mkdir -p /srv/cloud/one/SRC

Tao Cloud group and user

groupadd -g 3000 cloud


    useradd -d /srv/cloud/one -g cloud -u 3000 -s /bin/bash -m oneadmin
    chmod g+ws  /srv/cloud
    chown oneadmin.cloud /srv/cloud –R

set pass cho oneadmin

sudo passwd oneadmin (035235)

Dat cac bien moi truong vao file ~/.bashrc

Nano ~/.bashrc
export ONE_LOCATION=/srv/cloud/one

export ONE_XMLRPC=http://localhost:2633/RPC2

export ONE_AUTH=$ONE_LOCATION/.one_auth

export PATH=$ONE_LOCATION/bin:$PATH

Down source vao folder SRC

cd /srv/cloud/one/SRC

wget http://dev.opennebula.org/attachments/download/303/opennebula-2.1.80.tar.gz

giai nen:

tar xvzf opennebula-2.1.80.tar.gz

Cai NFS
sudo apt-get install nfs-kernel-server
sudo apt-get install portmap nfs-common

sudo apt-get install nfs-common

share folder cho cac node

nano /etc/exports

them vao dong /srv/cloud *(rw,async,no_subtree_check,no_root_squash)

resart lai NFS

/etc/init.d/nfs-kernel-server restart

Install WorkerNode1

Update: sudo apt-get update

Set pass root: sudo passwd root (035235)

Sudo apt-get install ruby

Cài FS Client: sudo apt-get install nfs-common nfs-client


Mount dia tu FontEnd

Mount tu dong

Nano /etc/fstab

Them dong

192.168.3.20:/srv/cloud /srv/cloud nfs rw,hard,intr 0 0

Sau do chi can go

mount /srv/cloud

Tao group and user giong nhu ben frontend

groupadd -g 3000 cloud


    useradd -d /srv/cloud/one -g cloud -u 3000 -s /bin/bash -m oneadmin
    chmod g+ws  /srv/cloud
    chown oneadmin.cloud /srv/cloud –R

file Cau hinh mang phia node

# The loopback network interface

auto lo

iface lo inet loopback

# The primary network interface

auto eth0

iface eth0 inet manual

auto br0

iface br0 inet static

address 192.168.3.21
netmask 255.255.255.0

network 192.168.3.0

broadcast 192.168.3.255

gateway 192.168.3.1

# dns-* options are implemented by the resolvconf package, if installed

dns-nameservers 8.8.8.8 8.8.4.4

bridge_ports eth0

bridge_fd 9

bridge_hello 2

bridge_maxage 12

bridge_stp off

add oneadmin vao file /etc/sudoers

them oneadmin vao nhom libvirtd de create may ao

sudo usermod -a -G libvirtd oneadmin


09/3/2011

Install Front End

Update: sudo apt-get update

Set pass root: sudo passwd root (035235)

we configure the head-node as a router by enabling in /etc/sysctl.conf the line for packet
forwarding:

net.ipv4.ip_forward = 1
and then enable IP masquerading at boot-time by appending to /etc/rc.local

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

cài các gói phần mềm:

sudo apt-get install libcurl3 libmysqlclient16 libruby1.8 libsqlite3-ruby


libsqlite3-ruby1.8 libxmlrpc-c3 libxmlrpc-core-c3 mysql-common ruby ruby1.8

sudo apt-get install libsqlite3-dev libxmlrpc-c3-dev scons g++ ruby libopenssl-ruby libssl-dev

sudo apt-get install ruby-dev make rake rubygems libxml-parser-ruby1.8 libxslt1-dev libxml2-
dev

sudo gem install nokogiri (ruby gem)

Tao cac thu muc:

mkdir -p /srv/cloud/images
mkdir -p /srv/cloud/one/SRC

Tao Cloud group and user

groupadd -g 3000 cloud


    useradd -d /srv/cloud/one -g cloud -u 3000 -s /bin/bash -m oneadmin
    chmod g+ws  /srv/cloud
    chown oneadmin.cloud /srv/cloud -R

set pass cho oneadmin

sudo passwd oneadmin (035235)

Dat cac bien moi truong vao file ~/.bashrc

Nano ~/.bashrc
export ONE_LOCATION=/srv/cloud/one

export ONE_XMLRPC=http://localhost:2633/RPC2

export ONE_AUTH=$ONE_LOCATION/.one_auth

export PATH=$ONE_LOCATION/bin:$PATH

Down source vao folder SRC

cd /srv/cloud/one/SRC

wget http://dev.opennebula.org/attachments/download/303/opennebula-2.1.80.tar.gz

giai nen:

tar xvzf opennebula-2.1.80.tar.gz

Cai NFS
sudo apt-get install nfs-kernel-server
sudo apt-get install portmap nfs-common

sudo apt-get install nfs-common

share folder cho cac node

nano /etc/exports

them vao dong /srv/cloud *(rw,async,no_subtree_check,no_root_squash)

resart lai NFS

/etc/init.d/nfs-kernel-server restart

#generate key for oneadmin


    copy /root/.bash_profile .bashrc .cshrc /srv/cloud/one
    ssh-keygen
        (no passphrase)
    cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
    ssh localhost
then create the file $ONE_AUTH:
$ echo "oneadmin:035235" > $ONE_AUTH
$ chown oneadmin:cloud $ONE_AUTH

and in /srv/cloud/one/.ssh/config add:

Host *
StrictHostKeyChecking no

24/03/2011

Install WorkerNode2

Update: sudo apt-get update

Set pass root: sudo passwd root (035235)

Sudo apt-get install ruby

Cài FS Client: sudo apt-get install nfs-common nfs-client

Mount dia tu FontEnd

Mount tu dong

Nano /etc/fstab

Them dong

192.168.3.20:/srv/cloud /srv/cloud nfs rw,hard,intr 0 0

Sau do chi can go

mount /srv/cloud

Tao group and user giong nhu ben frontend

groupadd -g 3000 cloud


 useradd -d /srv/cloud/one -g cloud -u 3000 -s /bin/bash -m oneadmin
 chmod g+ws  /srv/cloud

chown oneadmin.cloud /srv/cloud –R

install client with 10.10 error at command “chown oneadmin.cloud /srv/cloud –R”
28/03/2011

Install WorkerNode2 (ubuntu 10.04)

Update: sudo apt-get update

Set pass root: sudo passwd root (035235)

Sudo apt-get install ruby

Cài FS Client: sudo apt-get install nfs-common nfs-client

Mount dia tu FontEnd

Mount tu dong

Nano /etc/fstab

Them dong

192.168.3.20:/srv/cloud /srv/cloud nfs rw,hard,intr 0 0

Sau do chi can go

mount /srv/cloud

Tao group and user giong nhu ben frontend

groupadd -g 3000 cloud


 useradd -d /srv/cloud/one -g cloud -u 3000 -s /bin/bash -m oneadmin
 chmod g+ws  /srv/cloud

chown oneadmin.cloud /srv/cloud –R

OK

sudo apt-get install genisoimage

Sau khi cai xong FrontEnd add workernode2 ok

Add VM ok nhung van chua ping toi dc


29/03/2011 install FrontEnd
root@FrontEnd:~# mkdir -p /srv/cloud/images

root@FrontEnd:~# mkdir -p /srv/cloud/one/SRC

groupadd -g 3000 cloud


   useradd -d /srv/cloud/one -g cloud -u 3000 -s /bin/bash -m oneadmin
   chmod g+ws  /srv/cloud
   chown oneadmin.cloud /srv/cloud –R

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy