Mailinglist Archive: opensuse-buildservice (244 mails)

< Previous Next >
[opensuse-buildservice] Installing an obsserver as an appliance in Amazon Cloud service
  • From: "Dominig ar Foll (Intel OTC)" <dominig.arfoll@xxxxxxxxx>
  • Date: Tue, 05 Jun 2012 17:31:28 +0200
  • Message-id: <4FCE2650.5020401@fridu.net>
Hello,

following a long thread of debug with Tim, I am pleased to give here a
short HowTo for those who would like to create an OBS server in the cloud.
Having an OBS in the cloud can be an interesting model to get a large
server for validation and test without the initial investment or to
provide a scalable service.
I let you do your math and do not take this email as an advise to use or
not use the service.

I have used the appliance provided by the obslight project and made my
test with Amazon EC2 cloud service

Create an acount on Amazon cloud service.
https://console.aws.amazon.com

Login and select EC2 "Virtual Server in the Cloud"
In "My Ressources" (first time only)
Create a new pair of key and save it in your local drive (will be
needed later to connect as root).

Prepare your AWS credential
https://aws-portal.amazon.com/gp/aws/securityCredentials (first time
only)

Get the OBS appliance
http://susestudio.com/a/e0uuBG/meego-obs
(note this process is valid from the version 1.0.48)
Select the Type "Cloud"
Select "upload to EC2"
Add your credential to SUSE Studio (first time only)
UN-select the "Automatic Launch option"
(if you forget that you will just have to terminate the instance
started by SUSE)
Click on "Upload to Amazon"

Return to AWS Management Console -> EC2
Select Network-Security -> Security Groups
Create a new security Group called observer
in "InBound" Tabulation
add two rules for the ports 82 and 444 with Source 0.0.0.0/0
(Note in production, your rules will need to be smarter)
Select Images -> AMIs
you see an image called ....MeeGo_OBS.....
Select it with a click
Right Click to access contextual menu
-> Launch Instance
Instance Type -> change to Medium (m1.medium) or higher
Click "Continue", 3 times until 'Create KeyPairs'
Select the Key pair that you have saved previously
Click "Continue" to 'Configure Firewall'
Select all the available rules
Click "Continue" to 'Review'
Click Launch
Select Instance -> Instances
Your instance is running.
Once that 'status checks' is green (running green is not enough)
Connect with ssh on your instance.
the name is something like
ec2-xxx-xxx-xx-xxx.compute-n.amazonaws.com
add an entry for obslightserver in /etc/hosts on your
local PC (mandatory)
IP address is the number in the appliance host name.
use ssh -i path-to-you-key.pem
root@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Increase the HDD size which by default is only 10GB.
resize2fs /dev/sda1 50G
Correct the obsworker mode of operation to select chroot
vi /etc/sysconfig/obs-server
change OBS_VM_TYPE = "none"
rcobsworker stop
rcobsworker start

Your OBS appliance is ready. Note that its name and IP address will
change each time that you stop it by default. Remember the entry in
/etc/host

You can now connect to the appliance from your PC with
https://obslightserver

You can follow the process to add Tizen IVI 1.0 in your new private OBS,
as Fake OBS is already installed you you can jump the first phases.
https://lists.tizen.org/pipermail/ivi/2012-May/000038.html

Enjoy.
--
Dominig ar Foll
Senior Software Architect
Open Source Technology Centre
Intel SSG
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups