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

Advertisement

vi /etc/fstab

Find

devpts          /dev/pts        devpts  defaults	    	0       0

Replace with

devpts          /dev/pts        devpts  gid=5,mode=620	0       0

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

Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement