How do I create an ami for openSUSE in Amazon ec2?

09
2013-08
  • jgaa

    I need to scale some services from local servers to Amazon ec2. The current production-environment is based on the latest openSUSE. In order to keep things simple, I want to run the instances in ec2 in the same environment.

    However, I'm unable to find any public SUSE ami's or even howto's on this subject. I've seen a few similar questions in different forums, without any resolutions.

    So actually, I have two questions.

    1) Is this at all doable? 2) If, so, is there any documentation / howto's available somewhere?

    Jarle

  • Answers
  • jgaa

    To answer my own question. Yes, it can be done - I was just searhing in the wrong region. ec2.us-east-1.amazonaws.com has both 32 and 64 bits public ami's. This thread gives some advices about openSUSE and ec2.


  • Related Question

    xorg - X11 forwarding from Amazon EC2 AMI
  • Humble Debugger
       local$> echo $DISPLAY
       :0.0
       local$> ssh -X -i PEMFILE ec2-user@AMAZONEC2_AMI
       [ec2-user@REMOTE_AMI ~]$ echo $DISPLAY
    
       [ec2-user@REMOTE_AMI ~]$ sudo grep X11 /etc/ssh/sshd_config ~/.ssh/*
       /etc/ssh/sshd_config:#X11Forwarding no
       /etc/ssh/sshd_config:X11Forwarding yes
       /etc/ssh/sshd_config:#X11DisplayOffset 10
       /etc/ssh/sshd_config:#X11UseLocalhost yes
    

    Hence the display is not forwarded. a command like emacs & for instance does not show the X11 window on the local desktop. Please advise.


  • Related Answers
  • Otto

    I did this:

    sudo yum install xorg-x11-xauth.x86_64 xorg-x11-server-utils.x86_64
    

    and I finally got a display variable and it all started to work!

  • OutputLogic

    Install from the above answer didn't work for my RHEL 6.2 EC2 instance. Here are steps that did work:

    $ sudo yum groupinstall "X Window System"
    $ export DISPLAY=localhost:10.0

    # now disconnect and create a new SSH with -X option