kvm错误:failed to initialize KVM: Permission denied
Posted yjt1993
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于kvm错误:failed to initialize KVM: Permission denied的主要内容,如果未能解决你的问题,请参考以下文章
CentOS7 libvirtd(Failed to notify systemd)