Error when starting domain when starting kvm: Unable to find security driver for model selinux configuration: Unable to find security driver for model selinux

Error when starting domain: Unable to find configuration: Unable to find security driver for model selinux

At the time I encountered this problem and panicked to death, thinking that this virtual machine could not get up. Although it is not very important, it is also very uncomfortable to recover.

In fact, this problem is very easy to solve. Just enter the configuration file of this virtual machine, the default path is /etc/libvirt/qemu/

Just delete this line. I looked at the configuration files of other virtual machines and there was no such thing, so I deleted it directly.

virsh define ./soanrqube.xml Use this command to redefine the configuration file, the virtual machine can start normally

If you want to migrate the storage path of the virtual machine, you can also shut down, modify the storage path under the configuration file, and move the .qcow2 file to the corresponding directory.

 

 

virsh define virtual machine configuration file name.xml

Restart the virtual machine

Guess you like

Origin blog.csdn.net/weixin_50801368/article/details/112655561