一切配置妥当,但是虚拟机无法启动

提示 xxxxxxxxxxxxxxxxx. Failed to create chardev

systemctl status libvirtd 显示报错

[[email protected] ~]# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-03-06 17:26:00 CST; 1h 0min ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 1569 (libvirtd)
    Tasks: 20 (limit: 32768)
   CGroup: /system.slice/libvirtd.service
           ├─1569 /usr/sbin/libvirtd
           ├─2412 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --...
           └─2413 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --...

Mar 06 18:22:30 ns3027304 libvirtd[1569]: 2020-03-06T10:22:30.049820Z qemu-kvm: -chard...ev
Mar 06 18:24:23 ns3027304 libvirtd[1569]: 2020-03-06 10:24:23.222+0000: 2133: warning ...es
Mar 06 18:24:23 ns3027304 libvirtd[1569]: 2020-03-06 10:24:23.222+0000: 2133: warning ...pu
Mar 06 18:24:23 ns3027304 libvirtd[1569]: 2020-03-06 10:24:23.316+0000: 1569: error : ...er
Mar 06 18:24:23 ns3027304 libvirtd[1569]: 2020-03-06 10:24:23.316+0000: 1569: error : ...ev
Mar 06 18:24:23 ns3027304 libvirtd[1569]: 2020-03-06 10:24:23.517+0000: 2133: error : ...ev
Mar 06 18:25:22 ns3027304 libvirtd[1569]: 2020-03-06 10:25:22.025+0000: 2136: warning ...es
Mar 06 18:25:22 ns3027304 libvirtd[1569]: 2020-03-06 10:25:22.025+0000: 2136: warning ...pu
Mar 06 18:25:22 ns3027304 libvirtd[1569]: 2020-03-06 10:25:22.108+0000: 1569: error : ...er
Mar 06 18:25:22 ns3027304 libvirtd[1569]: 2020-03-06 10:25:22.108+0000: 1569: error : ...ev
Hint: Some lines were ellipsized, use -l to show in full.
You have new mail in /var/spool/mail/root

解决办法

修改/etc/fstab文件,找到类似

devpts /dev/pts devpts defaults 0 0

修改为

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

然后

mount -o remount /dev/pts

再刷新控制后台,问题解决

说点什么
支持Markdown语法
好耶,沙发还空着ヾ(≧▽≦*)o
Loading...