Public bug reported:
While trying to set CPU pinning on a 24.04 guest on a 24.04 host,
editing the XML with virsh edit allows me to place the cputune block in
the right place and virsh exits without error. However re-executing the
same edit shows the cputune block has moved up the file into a position
where it doesn't work. CPU pinning was impossible via virsh and I had
to set the pinning manually with virsh vcpupin. The issue was
repeatable.
System Details:
Ubuntu 24.04
dpkg -l | grep libvirt
ii gir1.2-libvirt-glib-1.0:amd64 5.0.0-2build3
amd64 GObject introspection files for the
libvirt-glib library
ii libvirt-clients 10.0.0-2ubuntu8.9
amd64 Programs for the libvirt library
ii libvirt-daemon 10.0.0-2ubuntu8.9
amd64 Virtualization daemon
ii libvirt-daemon-config-network 10.0.0-2ubuntu8.9
all Libvirt daemon configuration files
(default network)
ii libvirt-daemon-config-nwfilter 10.0.0-2ubuntu8.9
all Libvirt daemon configuration files
(default network filters)
ii libvirt-daemon-driver-qemu 10.0.0-2ubuntu8.9
amd64 Virtualization daemon QEMU connection
driver
ii libvirt-daemon-system 10.0.0-2ubuntu8.9
amd64 Libvirt daemon configuration files
ii libvirt-daemon-system-systemd 10.0.0-2ubuntu8.9
all Libvirt daemon configuration files
(systemd)
ii libvirt-glib-1.0-0:amd64 5.0.0-2build3
amd64 libvirt GLib and GObject mapping library
ii libvirt-glib-1.0-data 5.0.0-2build3
all Common files for libvirt GLib library
ii libvirt-l10n 10.0.0-2ubuntu8.9
all localization for the libvirt library
ii libvirt0:amd64 10.0.0-2ubuntu8.9
amd64 library for interfacing with different
virtualization systems
ii python3-libvirt 10.0.0-1build1
amd64 libvirt Python 3 bindings
QEMU version: 8.2.2
Kernel: 6.14.0
Steps to Reproduce:
Create or edit a domain with <cputune><vcpupin> elements
positioned correctly (after </pm>, before <devices>)
Run virsh edit YourVMName
Save without making changes
Run virsh edit YourVMName again
Observe that <cputune> has been moved to between <vcpu> and <os>
Expected Behavior: <cputune> should remain in its correct position
Actual Behavior: <cputune> is automatically repositioned to an
invalid location
Impact: The CPU pinning becomes ineffective when edited via virsh
edit, though it persists when applied via virsh define
Secondary Channel: Libvirt Upstream
** Affects: libvirt (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130921
Title:
virsh edit incorrectly reorders <cputune> element in domain XML,
rendering CPU pinning ineffective
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2130921/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs