Rate This Document
Findability
Accuracy
Completeness
Readability

Troubleshooting

Problem 1: Insufficient Permission Upon VM Startup

Symptom

The VM fails to be started, and the following information is displayed:

Possible Cause

  • The SELinux of the system prevents the VM from creating the /var/run/openvswitch/tap1 file.
  • The QEMU process does not have the permission to access the file.

Procedure

  1. In the QEMU configuration file /etc/libvirt/qemu.conf, ensure that the QEMU process user has the read and execute permissions on the /var/run/openvswitch directory. The following shows the default line numbers for configuration:

    Restart the libvirtd service.

    1
    systemctl restart libvirtd
    
  2. Ensure that SELinux does not block processes.
    1. Disable SELinux.
      1
      setenforce 0
      
    2. Start the VM.
      1
      virsh start VM1
      

      The VM is started successfully, and the fault is rectified.