KVM 虚拟机重启报错

问题描述

宿主机系统:Centos7
运行virsh start centos7-vm0,报错如下:

error: Failed to start domain centos7-vm0
error: Unable to open file: /var/log/libvirt/qemu/centos7-vm0.log: Permission denied

解决方案

  1. 关闭系统selinux,并设置为disable。
  2. bash运行 setenforce 0
  3. bash运行 sed -i '/^SELINUX/s/enforcing/disabled/' /etc/selinux/config
  4. bash运行systemctl restart libvirtd

你可能感兴趣的:(linux,运维,服务器)