Installing se34euca on Centos 6

kyolee310 edited this page Jul 10, 2013 · 16 revisions

Prerequisite

Have a freshly installed CentOS 6 image running -- virtual or bare-metal.


Installing se34euca in 5 Steps

The steps below are based on the Vagrant virtual image:

  • CentOS 6.4 x86_64 Minimal (VirtualBox Guest Additions 4.2.12, Chef 11.4.4, Puppet 3.1.1)

Step 1. SSH into the CentOS 6 image

vagrant ssh

Step 2. Update the image

sudo yum -y update

sudo reboot **

SSH back in after the reboot

vagrant ssh

** Suggested, yet not necessary

Step 3. Clone se34euca

cd ~

sudo yum -y install git

git clone https://github.com/eucalyptus/se34euca.git

Step 4. Run se34euca Installer for CentOS

cd ./se34euca/etc

./installer_se34euca_centos.py

Step 5. Set up the runtime environment and run se34euca

cd ~/se34euca

export PYTHONPATH=$PYTHONPATH:/home/vagrant/se34euca **

export DISPLAY=:0

./runtest_volume.py -i 10.111.5.65 -p 8888 -a ui-test-acct-00 -u user00 -w mypassword1 -t create_volume

Check out the README.md file for more examples.

cat ./README.md

** For non-vagrant users, PYTHONPATH should be the parent directory of ./se34euca



In Case of Restart of the Image

In order to run se34euca, you will need to run the following commands:

Xvfb :0 -ac 2> /dev/null &

sudo nohup java -jar /root/selenium-server/selenium-server-standalone-2.32.0.jar &

cd ~/se34euca

export PYTHONPATH=$PYTHONPATH:/home/vagrant/se34euca **

export DISPLAY=:0

** For non-vagrant users, PYTHONPATH should be the parent directory of ./se34euca

OR

Add the 2 lines below to the file .bash_profile in your home directory:

export PYTHONPATH=$PYTHONPATH:/home/vagrant/se34euca

export DISPLAY=:0

Add the 2 line below to the file /etc/rc.local as root:

Xvfb :0 -ac 2> /dev/null &

java -jar /root/selenium-server/selenium-server-standalone-2.32.0.jar > /tmp/selenium-server-log.stdout 2> /tmp/selenium-server-log.stderr &

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.