error: Cannot access storage file '/root/x.qcow2' (as uid:107, gid:107): Permission d

来源:互联网 发布:通过大数据分析 编辑:程序博客网 时间:2024/06/15 00:32

cat /etc/passwd

qemu:x:107:107:qemu user:/:/sbin/nologin


ll /root/x.qcow2

-rwxrwxrwx 1 qemu qemu 1957691392 Dec  1 14:16 /root/x.qcow2


在各种权限都对的情况下,依然不能create


sed -i 's/#vnc_listen = "0.0.0.0"/vnc_listen = "0.0.0.0"/g' /etc/libvirt/qemu.conf

sed -i 's/#group = "root"/group = "root"/g' /etc/libvirt/qemu.conf

sed -i 's/#user = "root"/user = "root"/g' /etc/libvirt/qemu.conf


service libvirtd restart