diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2025-09-30 03:12:08 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2025-10-07 14:18:04 +0300 |
| commit | dad7b8d70da67be321d700719769f846411ecf4c (patch) | |
| tree | 873614cfc9f1509a4a34d1428994343a76e3a891 /gnu/services/virtualization.scm | |
| parent | 382b901f2411a6f805b4e8ccf8c39088a80a93b1 (diff) | |
services: libvirt: Make dmidecode available to fix SMBIOS error.
The libvirt daemon requires 'dmidecode' to provide Host SMBIOS information
to virtual machines. Without it in the PATH, it fails with the error:
"Host SMBIOS information is not available".
* gnu/services/virtualization.scm (libvirt-configuration): Add 'dmidecode'
field to specify the dmidecode package.
(libvirt-service-type): Add dmidecode to system profile to ensure it's
available in PATH.
* doc/guix.texi (Virtualization Services): Document the new 'dmidecode'
option.
Change-Id: I8e5e565e95149c5aeba2dc0c5c757046efa6de2d
Diffstat (limited to 'gnu/services/virtualization.scm')
| -rw-r--r-- | gnu/services/virtualization.scm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm index 122e2715dcb..f369c29c76d 100644 --- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;;; Copyright © 2018, 2020-2025 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2018, 2020-2025 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2020, 2021, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> | 4 | ;;; Copyright © 2020, 2021, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> |
| 5 | ;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si> | 5 | ;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si> |
| 6 | ;;; Copyright © 2022 Oleg Pykhalov <go.wigust@gmail.com> | 6 | ;;; Copyright © 2022, 2025 Oleg Pykhalov <go.wigust@gmail.com> |
| 7 | ;;; Copyright © 2022 Leo Nikkilä <hello@lnikki.la> | 7 | ;;; Copyright © 2022 Leo Nikkilä <hello@lnikki.la> |
| 8 | ;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il> | 8 | ;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il> |
| 9 | ;;; Copyright © 2024 Raven Hallsby <karl@hallsby.com> | 9 | ;;; Copyright © 2024 Raven Hallsby <karl@hallsby.com> |
| @@ -111,6 +111,7 @@ | |||
| 111 | libvirt-configuration-ca-file | 111 | libvirt-configuration-ca-file |
| 112 | libvirt-configuration-cert-file | 112 | libvirt-configuration-cert-file |
| 113 | libvirt-configuration-crl-file | 113 | libvirt-configuration-crl-file |
| 114 | libvirt-configuration-dmidecode | ||
| 114 | libvirt-configuration-firmwares | 115 | libvirt-configuration-firmwares |
| 115 | libvirt-configuration-host-uuid | 116 | libvirt-configuration-host-uuid |
| 116 | libvirt-configuration-host-uuid-source | 117 | libvirt-configuration-host-uuid-source |
| @@ -220,6 +221,9 @@ | |||
| 220 | (qemu | 221 | (qemu |
| 221 | (file-like qemu) | 222 | (file-like qemu) |
| 222 | "The QEMU package to use.") | 223 | "The QEMU package to use.") |
| 224 | (dmidecode | ||
| 225 | (file-like dmidecode) | ||
| 226 | "The Dmidecode package to use.") | ||
| 223 | (firmwares | 227 | (firmwares |
| 224 | (list-of-file-likes (list ovmf-x86-64)) | 228 | (list-of-file-likes (list ovmf-x86-64)) |
| 225 | "List of UEFI/BIOS firmware packages to make available. Each firmware | 229 | "List of UEFI/BIOS firmware packages to make available. Each firmware |
| @@ -529,7 +533,8 @@ avoid potential infinite waits blocking libvirt.")) | |||
| 529 | (compose list libvirt-configuration-libvirt)) | 533 | (compose list libvirt-configuration-libvirt)) |
| 530 | (service-extension profile-service-type | 534 | (service-extension profile-service-type |
| 531 | (lambda (config) | 535 | (lambda (config) |
| 532 | (list (libvirt-configuration-libvirt config) | 536 | (list (libvirt-configuration-dmidecode config) |
| 537 | (libvirt-configuration-libvirt config) | ||
| 533 | (libvirt-configuration-qemu config)))) | 538 | (libvirt-configuration-qemu config)))) |
| 534 | ;; Libvirt only considers the $libvirt/share/qemu/firmware and | 539 | ;; Libvirt only considers the $libvirt/share/qemu/firmware and |
| 535 | ;; /etc/qemu/firmware directories to locate the QEMU firmware metadata | 540 | ;; /etc/qemu/firmware directories to locate the QEMU firmware metadata |
