Fixing Libvirt/QEMU KVM Permission Errors in RHEL 7/CentOS 7
If you get errors like these while trying to live-migrate a virtual machine or run `virsh start`, then there is a simple fix. If this is a live migration, the fix probably needs to be applied to the destination, but updating both sides is a good idea.
libvirtd: error : qemuMonitorIORead:610 : Unable to read from monitor: Connection reset by peer libvirtd: error : qemuProcessReportLogError:1912 : internal error: qemu unexpectedly closed the monitor: qemu-kvm: -chardev pty,id=charserial0: Failed to create chardev libvirtd: error : qemuMonitorIO:719 : internal error: End of file from qemu monitor
A Simple Fix
Just add this to fstab:
devpts /dev/pts devpts gid=5,mode=620 0 0
then remount:
mount -o remount,rw /dev/pts
-Eric
Any idea what is causing the last error?
libvirtd: error : qemuMonitorIO:719 : internal error: End of file from qemu monitor
Migration happens, but the VM gets status paused on new host. But it is running just fine. After shutdown and restart, VM returns to proper status.
There is usually more information in /var/log/libvirt/qemu* which may shed some light on the issue. If you would like to sign up as a customer then we can troubleshoot further because it is hard to understand without seeing the issue in person. -Eric