Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
938 views
in Technique[技术] by (71.8m points)

centos - Create npiv-pool via libvirt KVM

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...