Public bug reported:
$ lsb_release -rd
Description: Ubuntu 26.04.1 LTS
Release: 26.04
$ apt-cache policy passt
passt:
Installed: 0.0~git20260120.386b5f5-1
Candidate: 0.0~git20260120.386b5f5-1
Version table:
*** 0.0~git20260120.386b5f5-1 500
500 http://es.archive.ubuntu.com/ubuntu resolute/universe amd64 Packages
100 /var/lib/dpkg/status
Expected:
When the passt backend is specified in the libvirt XML specification,
the network interface within the VM should work and get an IP address
assigned (automatically, or manually if specified in the XML).
Minimal example which works WITHOUT passt backend:
<interface type="user">
<mac address="52:54:00:6d:b1:11"/>
<model type="virtio"/>
<address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
</interface>
Observed:
As soon as the passt backend was added, the network interface within the
VM fails to get an IP address assigned.
Minimal example which fails WITH passt backend:
<interface type="user">
<mac address="52:54:00:6d:b1:11"/>
<model type="virtio"/>
<backend type="passt"/>
<address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
</interface>
Likely reason is that the apparmor profile for passt at
/etc/apparmor.d/usr.bin.passt, if intended to be used in qemu:///sessions
(userland instead of privileged), requires the attach_disconnected flag, as
shown below:
-profile passt /usr/bin/passt{,.avx2} flags=(complain) {
+profile passt /usr/bin/passt{,.avx2} flags=(complain, attach_disconnected) {
Notes: originally planned to report this as a candidate for a local override
file, but apparently you cannot specify flags in local overrides... these
should be in the main profile.
** Affects: passt (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/2165771
Title:
passt backend failed in qemu sessions (userland) due to apparmor
profile
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/passt/+bug/2165771/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs