I faced a problem which I cannot solve. When creating npiv-pool and forwarding block device to vm, everything works. But if I reboot hypervisor then libvirt trying to upload vm gives an error:
Failed to autostart VM 'bd_vm': Cannot access storage file '/dev/disk/by-path/pci-0000:13:00.0-vport-0x5001a4a0dc103352-fc-0x23020002ac022149-lun-0': No such file or directory
While the device is there.
# ls -l /dev/disk/by-path/pci-0000:13:00.0-vport-0x5001a4a0dc103352-fc-0x23020002ac022149-lun-0 lrwxrwxrwx. 1 root root 9 Jan 27 10:48 /dev/disk/by-path/pci-0000:13:00.0-vport-0x5001a4a0dc103352-fc-0x23020002ac022149-lun-0 -> ../../sdd
It seems when libvirt is trying to start virtual machine, the device isn't identified on hypervisor. Please help to solve this problem.
question from:
https://stackoverflow.com/questions/65913551/create-npiv-pool-via-libvirt-kvm 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…