在使用 virt-install 创建虚拟机的过程中,出现下面的错误

ERROR internal error: qemu unexpectedly closed the monitor: 2019-01-23T11:02:36.048859Z qemu-kvm: -chardev pty,id=charserial0: Failed to create PTY: Operation not permitted

日志显示 chardev 设备创建错误, 确认 /dev/pts 设备不存在(也可能是权限错误), 因此解决办法是, 重新构建对应的设备描述文件.
/etc/fstab 配置/dev/pts设备的挂载信息,重新remount /dev/pts 设备.

添加下述内容到 /etc/fstab

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

重新 remount /dev/pts 设备

mount -o remount /dev/pts

【腾讯云】境外1核2G服务器低至2折,半价续费券限量免费领取!
https://cloud.tencent.com/act/cps/redirect?redirect=1068&cps_key=e4b50f6c64a4480367f8a8d16fd07c5a&from=console

标签: Failed to create PTY, devpts

添加新评论