Failed to write 'add' to '/sys/devices/virtual/vc/vcs/uevent

Hi,

Running incus 6.0.4 (on debian 13), I realize my CT are plagged with similar messages when they start (see below). I don’t remember having changed or configured something recently, but maybe the problem has existed for a while. Do anyone have any idea about it?

Thank you!

Oct 18 10:03:49 myCT udevadm[81]: link9: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:08.2/0000:0a:00.0/ata9/link9/ata_link/link9/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: dev9.0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:08.2/0000:0a:00.0/ata9/link9/dev9.0/ata_device/dev9.0/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: wakeup23: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:08.2/0000:0a:00.0/wakeup/wakeup23/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0000:0a: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:08.2/pci_bus/0000:0a/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: wakeup5: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:08.2/wakeup/wakeup5/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: wakeup6: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:08.2/wakeup/wakeup6/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0000:00:14.0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: i2c-0: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-001a: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-001a/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: hwmon2: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-001a/hwmon/hwmon2/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-001b: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-001b/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: hwmon3: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-001b/hwmon/hwmon3/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0036: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0036/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0037: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0037/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0050: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0050/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0050: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0050/0-0050/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0051: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0051/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0051: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0051/0-0051/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0052: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0052/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0052: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0052/0-0052/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0053: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0053/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: 0-0053: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-0/0-0053/0-0053/uevent': Permission denied
Oct 18 10:03:49 myCT udevadm[81]: i2c-1: Failed to write 'add' to '/sys/devices/pci0000:00/0000:00:14.0/i2c-1/uevent': Permission denied
etc etc. they are plenty more.

That’s harmless and the result of a container running udevadm trigger on startup.

We run udev in containers to properly handle network devices and some of our USB hotplug stuff.
Udev on startup tries to re-emit all uevents for processing by its engine, that’s what udevadm trigger does. But because that’s a global action which would affect the host and every other container, the kernel righfully refuses it.

You may be able to clean things up by somehow disabling just the udevadm trigger call, or narrowing it to a subset that works in containers, but it’s generally not really been worth it as the noise is harmless.