openSUSE:OBSonEC2

Jump to: navigation, search
Icon-obsolete.png
This article or section refers to the version '1.0.48' and it is now obsolete!
Please refer to this article's discussion page for more information.

Intro

This is a short How-to 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.

step 1: prepare Amazon

step 2: Appliance

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"
the image is now available in Amazon so we go back there.
  • 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 '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@ec2-xxx-xxx-xx-xxx.compute-n.amazonaws.com

  • 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

step 3: Go and enjoy your OBS!

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. see here.