我正在尝试让 virt-manager 在 Ubuntu 20.04 beta 中为 LXC 容器工作。我已经lxc
通过 安装了该软件包apt
。
Unable to connect to libvirt lxc:///.
Failed to connect socket to '/var/run/libvirt/virtlxcd-sock': No such file or directory
Libvirt URI is: lxc:///
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 956, in _do_open
self._backend.open(connectauth.creds_dialog, self)
File "/usr/share/virt-manager/virtinst/connection.py", line 172, in open
conn = libvirt.openAuth(self._open_uri,
File "/usr/lib/python3/dist-packages/libvirt.py", line 104, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/virtlxcd-sock': No such file or directory
答案1
确保您已安装所有需要的 libvirt 包。
安装
sudo apt install libvirt-daemon-driver-lxc
查看
sudo apt list libvirt* --installed