KVM cannot access storage file (as uid:107, gid:107)permission denied

SKY RING 201 0

kvm报错:cannot access storage file (as uid:107, gid:107)permission denied

KVM cannot access storage file (as uid:107, gid:107)permission denied

 

修改/etc/libvirt/qemu.conf中取消对root用户/组的注释。

把#user = "root"和#group = "root"注释取消掉

重启服务:systemctl restart libvirtd.service

# The user for QEMU processes run by the system instance. It can be
# specified as a user name or as a user id. The qemu driver will try to
# parse this value first as a name and then, if the name doesn't exist,
# as a user id.
#
# Since a sequence of digits is a valid user name, a leading plus sign
# can be used to ensure that a user id will not be interpreted as a user
# name.
#
# Some examples of valid values are:
#
#       user = "qemu"   # A user named "qemu"
#       user = "+0"     # Super user (uid=0)
#       user = "100"    # A user named "100" or a user with uid=100
#
user = "root"

# The group for QEMU processes run by the system instance. It can be
# specified in a similar way to user.
group = "root"

# Whether libvirt should dynamically change file ownership
# to match the configured user/group above. Defaults to 1.
# Set to 0 to disable file ownership changes.
#dynamic_ownership = 1

打赏
发表评论
表情 图片 链接 代码

分享
微信
微博
QQ

站点已稳定运行: | 耗时 0.187 秒 | 查询 30 次 | 内存 18.10 MB