运行systemctl status libvirtd出现如下错误
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | systemctl status libvirtd libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled) Active: active (running) since Thu 2015-09-17 20:07:25 CST; 6h ago Docs: man:libvirtd(8) http://libvirt.org Main PID: 807 (libvirtd) CGroup: /system.slice/libvirtd.service ├─807 /usr/sbin/libvirtd ├─887 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --dhcp-script=/usr/libexec/libvirt_leaseshelper └─888 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --dhcp-script=/usr/libexec/libvirt_leaseshelper Sep 18 02:11:59 pandora libvirtd[807]: libvirt version: 1.2.8, package: 16.el7_1.4 (CentOS BuildSystem <http://bugs.centos.org>, 2015-09-15-14:00:05, worker1.bsys.centos.org) Sep 18 02:11:59 pandora libvirtd[807]: failed to connect to monitor socket: No such process Sep 18 02:11:59 pandora libvirtd[807]: internal error: process exited while connecting to monitor: 2015-09-17T18:11:59.609939Z qemu-kvm: -chardev pty,id=charserial0: Failed to create chardev Sep 18 02:14:39 pandora libvirtd[807]: failed to connect to monitor socket: No such process Sep 18 02:14:39 pandora libvirtd[807]: internal error: process exited while connecting to monitor: 2015-09-17T18:14:39.583154Z qemu-kvm: -chardev pty,id=charserial0: Failed to create chardev Sep 18 02:17:24 pandora libvirtd[807]: failed to connect to monitor socket: No such process Sep 18 02:17:24 pandora libvirtd[807]: internal error: process exited while connecting to monitor: 2015-09-17T18:17:23.881779Z qemu-kvm: -chardev pty,id=charserial0: Failed to create chardev |
修改/etc/fstab文件,找到类似
1 | devpts /dev/pts devpts defaults 0 0 |
更改为
1 | devpts /dev/pts devpts gid=5,mode=620 0 0 |
然后运行
1 | mount -o remount /dev/pts |