错误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
原文地址:https://www.cnblogs.com/yjt1993/p/12034207.html
时间: 2024-11-06 22:30:01