Comment 9 for bug 2042357

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

common for arm64, ppc64el, s390x, armhf:
---

cloud-init data iso:

 echo 'local-hostname: test' >meta-data

 PUBKEY=$(cat $HOME/.ssh/id_rsa.pub)

 cat <<EOF >user-data
 #cloud-config
 users:
   - name: ubuntu
     ssh-authorized-keys: ["$PUBKEY"]
     sudo: ['ALL=(ALL) NOPASSWD:ALL']
     groups: sudo
     shell: /bin/bash
 runcmd:
    - echo 'AllowUsers ubuntu' >>/etc/ssh/sshd_config
    - restart ssh
 EOF

 genisoimage -output test-cidata.iso -volid cidata -joliet -rock user-data meta-data