domain.xml
· 493 B · XML
Raw
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<!-- ... -->
<qemu:commandline>
<qemu:arg value='-acpitable'/>
<qemu:arg value='file=/some/path/slic.bin'/>
<qemu:arg value='-acpitable'/>
<qemu:arg value='file=/some/path/msdm.bin'/>
<qemu:arg value='-smbios'/>
<qemu:arg value='file=/some/path/smbios_type_0.bin'/>
<qemu:arg value='-smbios'/>
<qemu:arg value='file=/some/path/smbios_type_1.bin'/>
</qemu:commandline>
</domain>
| 1 | <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> |
| 2 | <!-- ... --> |
| 3 | <qemu:commandline> |
| 4 | <qemu:arg value='-acpitable'/> |
| 5 | <qemu:arg value='file=/some/path/slic.bin'/> |
| 6 | <qemu:arg value='-acpitable'/> |
| 7 | <qemu:arg value='file=/some/path/msdm.bin'/> |
| 8 | <qemu:arg value='-smbios'/> |
| 9 | <qemu:arg value='file=/some/path/smbios_type_0.bin'/> |
| 10 | <qemu:arg value='-smbios'/> |
| 11 | <qemu:arg value='file=/some/path/smbios_type_1.bin'/> |
| 12 | </qemu:commandline> |
| 13 | </domain> |
| 14 | |
| 15 |
slic-dump
· 323 B · Text
Raw
#!/bin/bash
set -e
cat /sys/firmware/acpi/tables/SLIC > slic.bin
cat /sys/firmware/acpi/tables/MSDM > msdm.bin
dmidecode -t 0 -u | grep $'^\t\t[^"]' | xargs -n1 | perl -lne 'printf "%c", hex($_)' > smbios_type_0.bin
dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin
| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | cat /sys/firmware/acpi/tables/SLIC > slic.bin |
| 6 | cat /sys/firmware/acpi/tables/MSDM > msdm.bin |
| 7 | dmidecode -t 0 -u | grep $'^\t\t[^"]' | xargs -n1 | perl -lne 'printf "%c", hex($_)' > smbios_type_0.bin |
| 8 | dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin |
| 9 |