openSUSE:OBSonEC2
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
- Create an acount on Amazon cloud service.
- 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)
step 2: Appliance
Get the OBS appliance http://susestudio.com/a/e0uuBG/meego-obs
- Select the Type "Cloud"
- Select "upload to EC2"
- Add your credential to SUSE Studio (first time only)
- UN-select the "Automatic Launch option"
- 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
- Create a new security Group called observer
- Select Network-Security -> Security Groups
- 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
- Launch Instance
- Right Click to access contextual menu
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.