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
记录学习和生活的酸甜苦辣.....哈哈哈