Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 692056

Summary: sys-apps/systemd-242-r6 udev doesn't create /dev/disk/by-id symlinks for virtio devices
Product: Gentoo Linux Reporter: Anton Gubarkov <anton.gubarkov>
Component: Current packagesAssignee: Gentoo systemd Team <systemd>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anton Gubarkov 2019-08-13 09:00:52 UTC
I've got a QEMU/KVM VM with gentoo linux as the host and gentoo linux as the guest.

The guest has 3 virtio disks attached and 1 sata dvdrom. 

in the guest:
localhost ~ # ls -l /dev/vd?
brw-rw---- 1 root disk 254,  0 Aug 13 10:24 /dev/vda
brw-rw---- 1 root disk 254, 16 Aug 13 10:24 /dev/vdb
brw-rw---- 1 root disk 254, 32 Aug 13 11:47 /dev/vdc

localhost ~ # ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Aug 13 10:24 ata-QEMU_DVD-ROM_QM00001 -> ../../sr0
Comment 1 Mike Gilbert gentoo-dev 2019-08-14 08:30:06 UTC
I don't think virtio disks have any hardware IDs that could be used for this.

Regardless, this is probably not a Gentoo-specific behavior. If you want something changed, create an issue upstream.