[Bug 1377308] Re: booting cloud image without initramfs broken
Scott Moser
smoser at ubuntu.com
Fri Oct 3 21:03:03 UTC 2014
I just noticed from reading one of the related bugs that booting image
without 'ro' on the kernel command line might also be a requirement to
trigger this. I'd like to see a kernel booted iwth 'ro' on the command
line .
that said, I tried to reproduce this with a daily image of trusty (20141003) and could not.
that attempt looked like this:
$ tgz_url=http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64.tar.gz
$ tgz=${tgz_url##*/}
$ wget -O "${tgz_url}" "$tgz"
$ mkdir dist
$ tar -C dist -Scvzf "$tgz"
$ dist_disk=$(echo dist/*.img)
$ kernel=$(echo dist/*vmlinuz*)
$ cat > user-data <<EOF
#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
EOF
$ echo "instance-id: $(uuidgen || echo i-abcdefg)" > meta-data
$ cloud-localds seed.img user-data meta-datak
$ qemu-img create -f qcow2 -b "$dist_disk" disk.img
$ qemu-system-x86_64 -enable-kvm -net nic -net user,hostfwd=tcp::2222-:22 \
-drive file=disk.img,if=virtio -drive file=seed.img,if=virtio \
-kernel "${kernel}" -append "root=LABEL=cloudimg-rootfs ro" -curses
i could not cause a hang here with or without 'ro'
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1377308
Title:
booting cloud image without initramfs broken
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1377308/+subscriptions
More information about the Ubuntu-server-bugs
mailing list