I have been following this link https://help.ubuntu.com/community/KVM/Installation to install KVM on Ubuntu 18.04.1 LTS. But I cannot start it properly and encounter the following errors.
$ virsh list --all
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock':
No such file or directory
The directory /var/run/libvirt/libvirt-sock indeed does not contain libvirt-sock
$ ls /var/run/libvirt
network storage virtlockd-sock virtlogd-sock
What are the solutions to this issue? and how can I install KVM properly? Many Thanks
systemctl status libvirtdgives three errors. 1.Failed to parse user 'libvirt-qemu'2.Initialization of QEMU state driver failed3.Driver state initialization failed. The errors are still here even afterenable– K_inverse Sep 06 '18 at 08:35libvirt-daemon-systempkg is installed. It should have installed automatically, but it is not explicitly a dependency (just a recommends). You can check that withapt depends virt-manager– cleary Sep 06 '18 at 23:42libvirt-daemon-systeminstalled. But still don't know what is the issue – K_inverse Sep 07 '18 at 03:43