1.error:
error: Failed to create domain from test_sanlock.xml
error: internal error: Process exited prior to exec: libvirt: Lock Driver error : Unable to query sector size /var/lib/libvirt/sanlock/RS: Permission denied
解决:
(1)[root@localhost image]# getenforce
Enforcing
[root@localhost image]# setenforce 0 关闭SElinux
(2)检查/var/lib/libvirt/文件中是否有sanlock文件,
发现没有该文件,手动添加
2.error
[root@localhost home]# virsh create ha-1.xml
error: Failed to create domain from ha-1.xml
error: internal error: Process exited prior to exec: libvirt: Lock Driver error : Failed to open socket to sanlock daemon: Permission denied
解决:
root@localhost image]# setenforce 0 关闭SElinux