Verification on Noble LXD container
====================================
1. Prepare LXD container
------------------------
snap install lxd --channel=5.21/stable
lxd init (defaults)
lxc launch -c security.privileged=true ubuntu:24.04 test
lxc config set test security.nesting true <-- otherwise ipv4
does not work
lxc restart test
lxc list
+------+---------+---------------------+----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6
| TYPE | SNAPSHOTS |
+------+---------+---------------------+----------------------------------------------+-----------+-----------+
| test | RUNNING | 10.193.75.82 (eth0) | fd42:c38e:94e8:5fca:216:3eff:fe96:231
(eth0) | CONTAINER | 0 |
+------+---------+---------------------+----------------------------------------------+-----------+-----------+
lxc exec test -- bash
snap version
snap 2.67.1+24.04
snapd 2.67.1+24.04
series 16
ubuntu 24.04
kernel 6.15.0-4-generic
snap changes
ID Status Spawn Ready Summary
1 Done today at 18:17 UTC today at 18:17 UTC Initialize system state
2. Install hello-world
-----------------------
snap install hello-world
error: cannot perform the following tasks:
- Setup snap "snapd" (24792) security profiles (cannot reload udev rules: exit
status 1
udev output:
Failed to send reload request: No such file or directory
)
THE ISSUE COULD BE REPRODUCED
3. Install snapd 2.68.5 from noble-proposed
-------------------------------------------
Modified /etc/apt/sources.list.d/ubuntu.sources: added noble-proposed
sudo apt update
apt install snapd=2.68.5+ubuntu24.04.1
snap version
snap 2.68.5+ubuntu24.04.1
snapd 2.68.5+ubuntu24.04.1
series 16
ubuntu 24.04
kernel 6.15.0-4-generic
4. Install hello-world
-----------------------
snap install hello-world
2025-08-01T18:30:04Z INFO Waiting for automatic snapd restart...
hello-world 6.4 from Canonical✓ installed
snap changes
ID Status Spawn Ready Summary
1 Done today at 18:17 UTC today at 18:17 UTC Initialize system state
2 Error today at 18:25 UTC today at 18:26 UTC Install "hello-world" snap
3 Done today at 18:25 UTC today at 18:25 UTC Initialize device
4 Done today at 18:30 UTC today at 18:30 UTC Install "hello-world" snap
THE ISSUE IS SOLVED
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1712808
Title:
udev interface fails in privileged containers
To manage notifications about this bug go to:
https://bugs.launchpad.net/launchpad/+bug/1712808/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs