[Bug 1123220] Re: cloud-image VM causes kernel panic if image is resized
Scott Moser
smoser at ubuntu.com
Tue Jan 7 14:14:20 UTC 2014
** Also affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Changed in: cloud-init (Ubuntu)
Status: New => Triaged
** Changed in: cloud-init (Ubuntu)
Importance: Undecided => Low
** Description changed:
I'd very much like to use the official cloud images from cloud-
images.ubuntu.com on the Brightbox cloud, but I can never get them to
boot properly in KVM.
If the disk is resized then the VM always crashes with a kernel panic.
Process is as follows:
On a Precise Host running libvirt.
- wget http://cloud-images.ubuntu.com/quantal/current/quantal-server-cloudimg-amd64-disk1.img
- sudo cp quantal-server-cloudimg-amd64-disk1.img /var/lib/libvirt/images/test.img
- sudo qemu-img resize /var/lib/libvirt/images/test.img 20G
- virsh create test.xml
If you view the console in virt-manager you'll find that the kernel has
panicked on the disk remount after resizing.
Issuing a 'virsh reset srv-7867c' causes the boot to progress normally.
Similarly if the disk isn't resized the boot progresses normally.
You get the same problem with:
- all the standard images - with varying degrees of feedback in the failure message.
- using the RHEL6 version of libvirt and kvm
- if you remove the virtio from the disk stanza and replace with ide emulation.
Any ideas?
Related bugs:
- * bug 1122245: booting from a cloud image hangs until virsh console is used
- * bug 1061977: Machine fails to commission when console=ttyS0 is present on kernel opts
+ * bug 1122245: booting from a cloud image hangs until virsh console is used
+ * bug 1061977: Machine fails to commission when console=ttyS0 is present on kernel opts
+ * bug 1016695: add console=tty1 to cloud-image kernel boot parameters
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cloud-initramfs-growroot 0.4ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-37.58-virtual 3.2.35
Uname: Linux 3.2.0-37-virtual x86_64
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
Date: Tue Feb 12 15:48:19 2013
MarkForUpload: True
PackageArchitecture: all
SourcePackage: cloud-initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1123220
Title:
cloud-image VM causes kernel panic if image is resized
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1123220/+subscriptions
More information about the Ubuntu-server-bugs
mailing list