All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH] libvirt: fix missing dmidecode on arm/aarch64 platform
@ 2023-11-30  8:53 Xiangyu Chen
  2023-12-04 22:19 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Xiangyu Chen @ 2023-11-30  8:53 UTC (permalink / raw)
  To: meta-virtualization

From: Xiangyu Chen <xiangyu.chen@windriver.com>

When using libvirtd on aarch64 platform, after system bootup, the log of libvirtd
contains an error as below:

libvirtd[417]: internal error: Child process (/usr/sbin/dmidecode -q -t 0,1,2,3,4,11,17) 
unexpected exit status 127: 
libvirt:  error : cannot execute binary /usr/sbin/dmidecode: No such file or directory

After checking the libvirt source code, the arm/aarch64 also try to call dmidecode to get
the system information[1], so add the dmidecode as depends under arm and aarch64 platform.

Ref:
[1] https://github.com/libvirt/libvirt/blob/master/src/util/virsysinfo.c#L429

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
---
 recipes-extended/libvirt/libvirt_9.6.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-extended/libvirt/libvirt_9.6.0.bb b/recipes-extended/libvirt/libvirt_9.6.0.bb
index c5d0d2cd..b63087e8 100644
--- a/recipes-extended/libvirt/libvirt_9.6.0.bb
+++ b/recipes-extended/libvirt/libvirt_9.6.0.bb
@@ -18,6 +18,8 @@ RDEPENDS:${PN} = "gettext-runtime"
 RDEPENDS:libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq netcat-openbsd ebtables"
 RDEPENDS:libvirt-libvirtd:append:x86-64 = " dmidecode"
 RDEPENDS:libvirt-libvirtd:append:x86 = " dmidecode"
+RDEPENDS:libvirt-libvirtd:append:arm = " dmidecode"
+RDEPENDS:libvirt-libvirtd:append:aarch64 = " dmidecode"
 
 #connman blocks the 53 port and libvirtd can't start its DNS service
 RCONFLICTS:${PN}_libvirtd = "connman"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-04 22:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-30  8:53 [meta-virtualization][PATCH] libvirt: fix missing dmidecode on arm/aarch64 platform Xiangyu Chen
2023-12-04 22:19 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.