Install Openstack ---------------- - Launch Ubuntu 12.04 precise LTS 64bit m1.large instance with 40GB HD. 4G memory. - apt-get update - adduser wso2(password g) - add wso2 to sudoers list wso2 ALL=(ALL:ALL) ALL - sudo -i mkdir /home/wso2/.ssh cat /home/ubuntu/.ssh/authorized_keys > /home/wso2/.ssh/authorized_keys file (EC2 only) chown -R wso2.wso2 /home/wso2/.ssh/ exit su - wso2 chmod 0600 ./ssh/authorized_keys - add s2demo.wso2.com into /etc/hosts - copy OpenstackInstaller, client wso2 user home - Log in as wso2 user Add virtual interface auto eth0:1 iface eth0:1 inet manual up ifconfig eth0:1 up vbox auto eth1 iface eth1 inet static address 192.168.92.10 network 192.168.92.0 netmask 255.255.255.0 broadcast 192.168.92.255 auto eth2 iface eth2 inet manual up ifconfig eth2 up reboot(If in EC2, use EC2 admin tool. Dont reboot from within machine) - Edit oscontrollerinsaller.sh and install #./OSinstall.sh -T all -C s2demo.wso2.com -f 14.1.0.0/16 -s 512 -P eth0 -A admin -t wso2 -v lxc (EC2) ./OSinstall.sh -T all -C s2demo.wso2.com -F 10.194.169.0/24 -f 14.1.0.0/16 -s 512 -P eth0 -p eth0:1 -A admin -t wso2 -v lxc (EC2) #./OSinstall.sh -T all -C s2demo.wso2.com -f 14.1.0.0/16 -s 512 -P eth1 -A admin -t wso2 -v lxc (Virtualbox) ./OSinstall.sh -T all -C s2demo.wso2.com -F 192.168.92.64/26 -f 192.168.93.64/26 -s 62 -P eth1 -p eth2 -A admin -t wso2 -v lxc - cd client; init.sh, source ./adminrc (ports should be 22, 80, 443, 8280, 9445, 8080) - create upload folder and first copy php os image - upload php ./imageupload.sh -a admin -p openstack -t wso2 -C s2demo.wso2.com -x amd64 -y ubuntu -w 12.04 -z /home/wso2/upload/ubuntu-12.04-server-php-cloudimg-amd64.tar.gz -n ubuntu-12.04-server-php-cloudimg-amd64 - then delete upload/php image - Do the same for mysql image #./imageupload.sh -a admin -p openstack -t wso2 -C s2demo.wso2.com -x amd64 -y ubuntu -w 12.04 -z /home/wso2/upload/ubuntu-12.04-server-mysql-cloudimg-amd64.tar.gz -n ubuntu-12.04-server-mysql-cloudimg-amd64 - create instances of php and mysql and test - delete the instances and make sure /var/lib/nova/instances/instances-* does not exist - make sure images are copied to /var/lib/nova/instances/_base - Save the images as s2demo-openstack Install S2 ---------- - Copy demo_setup folder into /home/wso2 - copy alpha pack, is, mb, jdk into /home/wso2/demo_setup/software - Move /home/wso2/demo_setup/software/cli tool to /home/wso2/ - copy /home/wso2/demo_setup/rc.local into /etc/ - Reboot - create an openstack mysql instances and test - Check /home/wso2/demo_setup/software folder content. It should contain jdk1.6.0_24.zip mysql-connector-java-5.1.17-bin.jar wso2is-4.0.0.zip wso2mb-2.0.1.zip wso2s2-1.0.0.zip - update /home/wso2/demo_setup/conf/setup.conf php and mysql image id's - update HOSTIP and GIT_IP with the eth0 ip address - run demo_setup/setup_demo.sh and check whether 6 java processes are up - remove the stratos-demo key from nova openstack using the horizon UI - run sudo demo_setup/clean_image.sh - exist ec2 instance - create the image as s2demo-wso2 - create instace from image and test