Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
942 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...