To reproduce outside of "cloud", you can basically follow the blog post that I've got at [1].
Using this user-data to make sure you can login:
#cloud-config-archive
- content: |
#!/bin/sh
echo "==== $(date -R): user-script run ===" | tee /run/user-script.log
- filename: myjob.conf
content: |
#upstart-job
description "a test upstart job"
start on stopped rc RUNLEVEL=[2345]
console output
task
script
echo "==== $(date -R): upstart job run ===" | tee /run/upstart-job.log
end script
- content: |
#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
Due to the fact that the bug blocks gettys from running, you'll have to ssh in.
Thats why i've done the host forwarding there.
You'll be able to log in with 'ubuntu' and 'passw0rd'. Remember that console output will be going to the serial device.
To reproduce outside of "cloud", you can basically follow the blog post that I've got at [1].
Using this user-data to make sure you can login: config- archive script. log job.log
#cloud-
- content: |
#!/bin/sh
echo "==== $(date -R): user-script run ===" | tee /run/user-
- filename: myjob.conf
content: |
#upstart-job
description "a test upstart job"
start on stopped rc RUNLEVEL=[2345]
console output
task
script
echo "==== $(date -R): upstart job run ===" | tee /run/upstart-
end script
- content: |
#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
Then: cloud-images. ubuntu. com/raring/ current/ raring- server- cloudimg- amd64-disk1. img -O disk.img.dist
sudo apt-get install kvm cloud-utils genisoimage
wget http://
qemu-img convert -O qcow2 disk.img.dist disk.img.orig
qemu-img create -f qcow2 -b disk.img.orig disk.img tcp::2222- :22 \
cloud-localds my-seed.img my-user-data
kvm -net nic -net user,hostfwd=
-hda disk.img -hdb my-seed.img -m 512
Due to the fact that the bug blocks gettys from running, you'll have to ssh in.
Thats why i've done the host forwarding there.
You'll be able to log in with 'ubuntu' and 'passw0rd'. Remember that console output will be going to the serial device.
-- ubuntu- smoser. blogspot. com/2013/ 02/using- ubuntu- cloud-images- without- cloud.html
[1] http://