[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
This bug was fixed in the package xen - 4.16.0-1~ubuntu2 --- xen (4.16.0-1~ubuntu2) jammy; urgency=medium * Merge Debian experimental/salsa, among many other changes this fixes booting kernels with zstd compression (LP: #1956166). Remaining changes: - Recommend qemu-system-x86-xen * Dropped changes: - Additional patches to handle compiling with gcc10 [in upstream] - Select python2 for xen-init-* scripts [Debian is on python3 now] - Enforce python2 usage [Debian is on python3 now] - Build-depend on python2-dev. - Build using python2. - Build-depend on lmodern. - Handle config file moving between packages [no more needed] * Note changes already dropped in 4.11.4+24-gddaaccbbab-1ubuntu2 - Set python2 for xen-init-name and xen-init-list scripts [in Debian] - Force fcf-protection off when using -mindirect-branch [fixed upstream] - Update: Building hypervisor with cf-protection enabled [fixed upstream] - Strip .note.gnu.property section for intermediate files [no more needed with the groovy toolchain] - Add transitional packages for upgrades [no more needed post focal] xen (4.16.0-1~exp1) experimental; urgency=medium Significant changes: * Update to new upstream version 4.16.0. This also includes a security fix for the following issue, which was not applicable to Xen 4.14 yet: - certain VT-d IOMMUs may not work in shared page table mode XSA-390 CVE-2021-28710 * No longer build any package for the i386 architecture. It was already not possible to use x86_32 hardware because the i386 packages already shipped a 64-bit hypervisor and PV shim. Running 32-bit utils with a 64-bit hypervisor requires using a compatibility layer that is fragile and becomes harder to maintain and test upstream. This change ends the 'grace period' in which users should have moved to using a fully 64-bit dom0. - debian/{control,rules,salsa-ci.yml,xen-utils-V.install.vsn-in}: make the necessary changes - Remove the Recommends on libc6-xen, which already actually does not exist any more. (Closes: #992909) - Drop patch "tools/tests/x86_emulator: Pass -no-pie -fno-pic to gcc on x86_32" because it is not relevant any more. Changes related to upgrading to Xen 4.16: * debian/control: adjust to 4.16 [Maximilian Engelhardt] * Drop patches that have been applied upstream * Refresh remaining patches if needed * debian: follow upstream removal of '.sh' suffix in xl bash_completion file [Maximilian Engelhardt] * debian/control, debian/libxenstore*: ship a libxenstore4 package instead of libxenstore3.0, since upstream bumped the soname [Maximilian Engelhardt] Packaging minor fixes and improvements [Maximilian Engelhardt]: * debian/rules: set SOURCE_BASE_DIR to the top level build dir so that the "Display Debian package version in hypervisor log" patch can use it. * Add patch "xen/arch/x86: make objdump output user locale agnostic" to fix reproducable builds. This patch will also be sent upstream. * d/rules: remove reproducible=+fixfilepath from DEB_BUILD_MAINT_OPTIONS * d/salsa-ci.yml: Explicitly set RELEASE variable to unstable * d/salsa-ci.yml: disable cross building as it's currently not working * debian: call update-grub when installing/removing xen-hypervisor-common (Closes: #988901) * debian: fix dependency generation for python after dh-python was fixed first. (Closes: #976597) Note that this packaging change can be safely reverted when building a backports package for Debian Bullseye. * debian/rules: remove unused pybuild settings Packaging minor fixes and improvements: * Improve patches for building the PV shim separately. This enables to drop the extra Revert of an upstream commit that was done in 4.14.0+80-gd101b417b7-1~exp1: - Drop patch: Revert "pvshim: make PV shim build selectable from configure" - Update patch "[...] Respect caller's CONFIG_PV_SHIM" to follow moving of a line to a different file - Drop patch: "tools/firmware/Makefile: CONFIG_PV_SHIM: enable only on x86_64" because that's now already the default upstream * debian/control.md5sum: remove this obsolete file * Merge patches "vif-common: disable handle_iptable" and "t/h/L/vif-common.sh: fix handle_iptable return value" into a single patch, since the latter was a fix for the first. * debian/control: change the Uploaders email address for Ian Jackson, since he does not work at Citrix any more now xen (4.14.3+32-g9de3671772-1) unstable; urgency=medium * Update to new upstream version 4.14.3+32-g9de3671772, which also contains security fixes for the following issues: - guests may exceed their designated memory limit XSA-385 CVE-2021-28706 - PCI devices with RMRRs not deassigned correctly XSA-386 CVE-2021-28702 - PoD operations on misaligned
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
Hi, I upgraded working xen ubuntu 20.04 (up to date) to xen ubuntu 22.04 (that fails as expected) I then booted non-xen kernel added repository and did apt full-upgrade that still doesn't boot the xen kernel as Dom0. installing "xen-hypervisor-4.16" resolved the issue but if you have package "xen-hypervisor" installed you will expect that to point to the latest version so probably that needs to be updated both in PPA and 22.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
Ok, that at least makes it better than the very-outdated 4.11 version. Thanks for the testing smb! Will probably upload this to Jammy after review of the MP. https://code.launchpad.net/~paelzer/ubuntu/+source/xen/+git/xen/+merge/414651 ** Merge proposal linked: https://code.launchpad.net/~paelzer/ubuntu/+source/xen/+git/xen/+merge/414651 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: xen (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
Ok, with the updates in the PPA, I managed to bring up a jammy HVM # virsh list Id NameState --- 0Domain-0running 6arg-jammy6401 running There will maybe be some remaining problems with PV guests and some other odd things (though some I could certainly remember once I hit them). But at least it is overall in a working state. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
Thanks Stefan, the qemu builds qemu - 1:6.2+dfsg-2ubuntu1~jammyppa8 and later have the xen supporting qemu built and a proper compat symlink now. root@j:~# dpkg -L qemu-system-x86-xen | grep qemu-system-i386 /usr/bin/qemu-system-i386 /usr/share/man/man1/qemu-system-i386.1.gz /usr/lib/xen/bin/qemu-system-i386 root@j:~# ll /usr/lib/xen/bin/qemu-system-i386 lrwxrwxrwx 1 root root 29 Jan 5 11:18 /usr/lib/xen/bin/qemu-system-i386 -> ../../../bin/qemu-system-i386* I'd be happy about a re-test with that build. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
The Jammy 5.15 kernel comes up as dom0 with the xen-4.16 from the PPA. I can also interact with libvirt: # uname -a Linux argabuthon 5.15.0-18-generic #18-Ubuntu SMP Fri Jan 21 14:57:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux # virsh version Compiled against library: libvirt 8.0.0 Using library: libvirt 8.0.0 Using API: Xen 8.0.0 Running hypervisor: Xen 4.16.0 Right now the creation of a HVM guest fails because a matching qemu is not found: libvirtd[1183]: unsupported configuration: emulator '/usr/lib/xen/bin/qemu-system-i386' not found # dpkg -L qemu-system-x86-xen /. /usr /usr/share /usr/share/doc /usr/share/doc/qemu-system-x86-xen /usr/share/doc/qemu-system-x86-xen/copyright /usr/share/doc/qemu-system-x86-xen/changelog.Debian.gz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
It would be great if anyone with xen experience and setup would be willing to test the PPA [1] with: - xen 4.16 - qemu 6.2 - libvirt 8.0 I'd be especially interested if it works in regard to this bug here with the different kernel compression. But you can test it in general and let me know, I can't promise to to fix everything - but at least better than the outdated 4.11 it should be. [1]: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4753 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
** Tags removed: server-triage-discuss -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
FYI - I wanted to look if I could make at least xen 4.16 available on jammy as I really think a new LTS should have a newer xen, no matter how much it is in universe :-) But unfortunately there are awkward issues blocking further progress at the moment, with platform dependent segfaults: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1958389 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
As Belgarath says, it takes xen-4.15+ tlviewer@xen2204:~$ sudo xl list NameID Mem VCPUs State Time(s) Domain-0 0 600 2 r- 45.8 ub2004 1 804 2 -b 10.7 ub2204 2 360 2 -b 9.2 fc34min 3 604 2 -b 22.8 al8pv4 854 2 -b 13.4 fc35min 5 784 2 -b 28.3 sudo systemd-analyze time Startup finished in 8.070s (kernel) + 32.310s (userspace) = 40.380s multi-user.target reached after 32.271s in userspace tlviewer@xen2204:~$ sudo xl info host : xen2204 release: 5.13.0-19-generic version: #19-Ubuntu SMP Thu Oct 7 21:58:00 UTC 2021 machine: x86_64 nr_cpus: 2 max_cpu_id : 3 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz: 3062.672 hw_caps: bfebfbff:0008e3bd:20100800:0001:::: virt_caps : pv hvm shadow total_memory : 4094 free_memory: 36 sharing_freed_memory : 0 sharing_used_memory: 0 outstanding_claims : 0 free_cpus : 0 xen_major : 4 xen_minor : 15 xen_extra : .1 xen_version: 4.15.1 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_scheduler : credit2 xen_pagesize : 4096 platform_params: virt_start=0x8000 xen_changeset : a763f8f158e81158b-x86/spec-ctrl: Fix default calculation of opt xen_commandline: dom0_mem=600M,max:648M guest_loglvl=all loglvl=all sched=credit2 console=vga vga=gfx-1280x1024x16 conring_size=48k xsave=0 xpti=false cpufreq=xen:performance cc_compiler: gcc (Ubuntu 11.2.0-13ubuntu1) 11.2.0 cc_compile_by : pbuser cc_compile_domain : prymar56.org cc_compile_date: Sat Jan 8 13:42:29 PST 2022 build_id : 3a9d3ef047996d4f6be41d9dadda2363d6538db7 xend_config_format : 4 tlviewer@xen2204:~$ sudo dpkg -l | grep -P 'xen|qemuu' ii libxen-4.15:amd64 4.15.1-1+ub22u04.2 amd64Public libs for Xen ii libxenstore3.0:amd64 4.15.1-1+ub22u04.2 amd64Xenstore communications library for Xen ii libxentoolcore1:amd64 4.15.1-1+ub22u04.2 amd64helper for qemu & libxenstore ii qemuu 6.1.0+1-1+ub22u04.2 amd64qemu-system-i386 (6.1.0/xen-4.15) with 9pfs support ii xen-hypervisor-4.15-amd64 4.15.1-1+ub22u04.2 amd64Xen Hypervisor on AMD64 ii xen-system-amd64 4.15.1-1+ub22u04.2 amd64Xen System on AMD64 (meta-package) ii xen-utils-4.154.15.1-1+ub22u04.2 amd64XEN administrative tools ii xen-utils-common 4.15.1-1+ub22u04.2all Xen administrative tools - common files ii xenstore-utils4.15.1-1+ub22u04.2 amd64Xenstore command line utilities for Xen this is an official build using a delta similar to pre-Sep-2019 days applied to the full upstream tarball. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
** Tags added: server-triage-discuss -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
Thanks for the report Belgarath. Do happen to already know the commit(s) that added this to 4.15 and have a link? Assigning to smb for xen opinions ... @smb - not for updating to 4.15 (violating the SRU policy) but maybe for identifying the fix and backporting it at least to Focal? @smb - And OTOH maybe getting rid of the remaining delta to sync 4.14.3+32-g9de3671772-1 and hopefully 4.15 before the end of the cycle to at least fix jammy? Any chance to get qemu-system-x86-xen into Debian? Or at least have that to be the only trivially merged delta left? ** Changed in: xen (Ubuntu) Assignee: (unassigned) => Stefan Bader (smb) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1956166] Re: Ubuntu 22.04 doesn't boot with xen
This affect Dom0 boot and DomU -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1956166 Title: Ubuntu 22.04 doesn't boot with xen To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1956166/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs