libvirt qemu unexpectedly closed the monitor Failed to create chardev

On CentOS 7 server, after installing KVM, i connected to server using Virt Manager. During VM creation, i get following error

libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2021-02-01T18:09:38.214356Z qemu-kvm: -chardev pty,id=charserial0: Failed to create chardev

To fix this, edit file

Find

Replace with

Reboot the server. After reboot, VM creation will work properly.

See KVM

Leave a Reply

Your email address will not be published. Required fields are marked *