[Bug 2056065] Re: cloud images slow to boot under kvm
** Changed in: cloud-images Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056065 Title: cloud images slow to boot under kvm To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-images/+bug/2056065/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056065] Re: cloud images slow to boot under kvm
Ack to everything Sergio said, but even when trying with the qemu 7.2 in Debian that you have. No huge slowdown in the transition from early boot stages to seeing the kernel load (again ~1 second). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056065 Title: cloud images slow to boot under kvm To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-images/+bug/2056065/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056065] Re: cloud images slow to boot under kvm
Hi Ross, Thanks for the feedback. It's a strange situation, indeed. And I have to say that I cannot reproduce the issue here even after forcing qemu to use pc-i440fx-{mantic,jammy}, which is what happens when you don't specify type=q35. The VM boots without issues. Of course, the first time it boots it takes longer than usual because of the snap seed population and other first-boot tasks that are executed, but otherwise everything else happens as expected. I am going to keep this bug as Incomplete for now because we're unable to reproduce the issue on our end. Please let us know if you have more information that could help us trigger the problem. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056065 Title: cloud images slow to boot under kvm To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-images/+bug/2056065/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056065] Re: cloud images slow to boot under kvm
Hi Christian, Sorry for not including my qemu command line. Thanks for including yours, that lets me spot the difference. I've been using `-machine type=kvm` (so the default, pc-i440fx). Switching to q35 fixes the issue, and the other OS images are still fast. Kind of perplexing that it'd only affect Ubuntu - but I'm happy to have a workaround. Thanks, Ross -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056065 Title: cloud images slow to boot under kvm To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-images/+bug/2056065/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2056065] Re: cloud images slow to boot under kvm
Hi Ross, thanks for the report, and that is odd indeed. It sounds like the initialization needing a fallback of some sort to then go to the next step and get to the bootloader. I was quickly retrying and did not see/reproduce that slowdown in the bootloader. It passes that stage rather quick, let us say ~1 second. I didn't care about the later system to work (no PW setting or such), just a cmdline to see how fast it would boot (initialize, boot-load, kernel, complete system boot), the command I ran was: $ sudo qemu-system-x86_64 -m 1G -cpu host -smp 2 -machine accel=kvm,type=q35 -drive file=/tmp/ubuntu-22.04-server-cloudimg- amd64.img,if=virtio,format=qcow2 -nographic I tried the above 1:6.2+dfsg-2ubuntu6.17 in Ubuntu Jammy, as well 1:8.2.2+ds-1 in Debian sid and 1:7.2+dfsg-7+deb12u5 in Debian bookworm. They are all fast with the 22.04 image you referred to. I used that commandline to - for now - to avoid having to look for well meant distracting magic of libvirt or other higher level things. I see nothing super special in my commandline nor can I see the issue. Hence I need to ask you which command or tooling config did you use to start the guest when you see the difference in boot speed? ** Also affects: qemu (Ubuntu) Importance: Undecided Status: New ** Changed in: qemu (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2056065 Title: cloud images slow to boot under kvm To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-images/+bug/2056065/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs