kvm错误:failed to initialize KVM: Permission denied

错误1:

启动kvm容器报错:

# virsh start hadoop-test
error: Failed to start domain hadoop-test
error: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied

解决:

1、查看/dev/kvm权限,如果权限不对,改成如下:

#chown root:kvm /dev/kvm
#chmod 666 /dev/kvm

2、修改/etc/libvirt/qemu.conf

#user="root"

user="root"

#group="root"

group="root"

重启libvirtd服务
#systemctl restart libvirtd
posted @ 2019-12-13 11:31  北漂-boy  阅读(3878)  评论(0编辑  收藏  举报