From: Kai Kang <[email protected]>

virsh can not do anything without libvirt daemon running, such as

$ virsh list
error: failed to connect to the hypervisor
error: Operation not supported: Cannot use direct socket mode if no URI is set

So add libvirt-libvirtd to RDEPENDS of libvirt-virsh.

Signed-off-by: Kai Kang <[email protected]>
---
 recipes-extended/libvirt/libvirt_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-extended/libvirt/libvirt_git.bb 
b/recipes-extended/libvirt/libvirt_git.bb
index 706d4a40..d01eaaa4 100644
--- a/recipes-extended/libvirt/libvirt_git.bb
+++ b/recipes-extended/libvirt/libvirt_git.bb
@@ -85,6 +85,7 @@ FILES:${PN}-virsh = " \
     ${bindir}/virsh \
     ${datadir}/bash-completion/completions/virsh \
 "
+RDEPENDS:${PN}-virsh = "${PN}-libvirtd"
 
 FILES:${PN} += "${libdir}/libvirt/connection-driver \
            ${datadir}/augeas \
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8861): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8861
Mute This Topic: https://lists.yoctoproject.org/mt/107997611/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to