Skip to content

Instantly share code, notes, and snippets.

@franferrax
franferrax / README.md
Last active June 11, 2025 13:48
Passthrough the host BIOS DMI info to a QEMU VM

Passthrough the host BIOS DMI info to a QEMU VM

Step-by-step guide

  1. In the host (real hardware), obtain the data to pass through:
    function DMI {  # Get DMI value and XML-escape it
        sudo sed \
            's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g' \

"/sys/class/dmi/id/$1"