virt-install Failed to create PTY: Operation not permitted
在使用 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