Ubuntu 12.04 LTS x86_64
># for action in update upgrade dist-upgrade;do apt-get -y $action;done ># apt-get install -y git unzip make cmake gcc python-dev python-pip openssh-server sudo
CentOS 6.4 x86_64
># rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm ># for action in update upgrade;do yum -y $action; done ># yum install -y git unzip make cmake gcc python-devel python-pip openssh-server openssh-clients sudo
murano-agent installation steps
># mkdir -p /opt/git ># cd /opt/git ># git clone https://github.com/stackforge/murano-agent.git ># cd murano-agent/python-agent ># git checkout release-0.3 ># chmod a+x setup*.sh ># ./setup.sh install or ># ./setup-centos.sh install
cloud-init installation steps
Ubuntu
># apt-get install -y cloud-init cloud-initramfs-growroot
CentOS
># yum install -y cloud-init
Note
Ubuntu only
># dpkg-reconfigure cloud-init
Mark EC2 data source support, save and exit or add manualy Ec2 to the datasource_list variable in the /etc/cloud/cloud.cfg.d/90_dfkg.cfg
Minimal cloud-init configuration options
># vi /etc/cloud/cloud.cfg: user: ec2-user disable_root: 1 preserve_hostname: False
Security setup
Create user and make it able to run commands through sudo without password prompt.
Ubuntu
># useradd -m -G sudo -s /bin/bash ec2-user ># passwd ec2-user
CentOS
># useradd -m -G wheel -s /bin/bash ec2-user ># passwd ec2-user
Sudo
># echo "ec2-user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ec2-user ># chmod 440 /etc/sudoers.d/ec2-user
Disable SSH password-based logins in the /etc/ssh/sshd_config.
... GSSAPIAuthentication no PasswordAuthentication no PermitRootLogin no ...
Network handling
Ubuntu
># rm -rf /etc/udev/rules.d/70-persistent-net.rules
CentOS Remove or comment out HWADDR and UUID in /etc/sysconfig/network-scripts/ifcfg-eth*
># rm -rf /etc/udev/rules.d/70-persistent-net.rules
Shutdown VM
Convert the image from RAW to QCOW2 format if you made it as RAW. The image must be converted from RAW format to QCOW2 before being imorted into Glance.
># qemu-img convert -O qcow2 /var/lib/libvirt/images/cloud-linux.img \ /var/lib/libvirt/images/cloud-linux.img.qcow2