« Proxmox Linux (VM IOMMU analyse-hardware) » : différence entre les versions
Page créée avec « = Proxmox / Linux - Virtualisation matérielle, IOMMU et analyse hardware = Ce guide regroupe plusieurs commandes utiles pour : * analyser le matériel d’un serveur Linux / Proxmox, * vérifier le support de la virtualisation, * inspecter les groupes IOMMU, * préparer du PCI Passthrough (NIC, GPU, NVMe, USB…), * comprendre la topologie hardware. ----- = Informations système SMBIOS / BIOS = == Informations système == <syntaxhighlight lang="bash">sudo... » |
|||
| (8 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 16 : | Ligne 16 : | ||
== Informations système == | == Informations système == | ||
<syntaxhighlight lang="bash">sudo dmidecode -t system</syntaxhighlight> | <syntaxhighlight lang="bash" copy>sudo dmidecode -t system</syntaxhighlight> | ||
Affiche : | Affiche : | ||
| Ligne 35 : | Ligne 35 : | ||
== Informations BIOS / UEFI == | == Informations BIOS / UEFI == | ||
<syntaxhighlight lang="bash">sudo dmidecode -t bios</syntaxhighlight> | <syntaxhighlight lang="bash" copy>sudo dmidecode -t bios</syntaxhighlight> | ||
Affiche : | Affiche : | ||
| Ligne 72 : | Ligne 72 : | ||
== Informations mémoire RAM == | == Informations mémoire RAM == | ||
<syntaxhighlight lang="bash">sudo dmidecode -t memory</syntaxhighlight> | <syntaxhighlight lang="bash" copy>sudo dmidecode -t memory</syntaxhighlight> | ||
Affiche : | Affiche : | ||
| Ligne 116 : | Ligne 116 : | ||
== Vérifier le chargement microcode Intel/AMD == | == Vérifier le chargement microcode Intel/AMD == | ||
<syntaxhighlight lang="bash">journalctl -k | grep microcode</syntaxhighlight> | <syntaxhighlight lang="bash" copy>journalctl -k | grep microcode</syntaxhighlight> | ||
Permet de voir : | Permet de voir : | ||
| Ligne 130 : | Ligne 130 : | ||
== Vérifier IOMMU / VT-d == | == Vérifier IOMMU / VT-d == | ||
<syntaxhighlight lang="bash">dmesg | grep -e DMAR -e IOMMU</syntaxhighlight> | <syntaxhighlight lang="bash" copy>dmesg | grep -e DMAR -e IOMMU</syntaxhighlight> | ||
Exemple attendu : | Exemple attendu : | ||
| Ligne 154 : | Ligne 154 : | ||
== Liste des périphériques PCI == | == Liste des périphériques PCI == | ||
<syntaxhighlight lang="bash">lspci -nn</syntaxhighlight> | <syntaxhighlight lang="bash" copy>lspci -nn</syntaxhighlight> | ||
Affiche : | Affiche : | ||
| Ligne 176 : | Ligne 176 : | ||
== Affichage simplifié == | == Affichage simplifié == | ||
<syntaxhighlight lang="bash">for d in /sys/kernel/iommu_groups/*/devices/*; do | <syntaxhighlight lang="bash" copy>for d in /sys/kernel/iommu_groups/*/devices/*; do | ||
echo "$(basename $(dirname $d)) → $(lspci -nns ${d##*/})" | echo "$(basename $(dirname $d)) → $(lspci -nns ${d##*/})" | ||
done</syntaxhighlight> | done</syntaxhighlight> | ||
| Ligne 194 : | Ligne 194 : | ||
== Affichage détaillé == | == Affichage détaillé == | ||
<syntaxhighlight lang="bash">for g in /sys/kernel/iommu_groups/*; do | <syntaxhighlight lang="bash" copy>for g in /sys/kernel/iommu_groups/*; do | ||
echo "IOMMU Group ${g##*/}" | echo "IOMMU Group ${g##*/}" | ||
for d in $g/devices/*; do | for d in $g/devices/*; do | ||
| Ligne 271 : | Ligne 271 : | ||
== Voir le driver utilisé par les NICs == | == Voir le driver utilisé par les NICs == | ||
<syntaxhighlight lang="bash">lspci -nnk | grep -A3 Ethernet</syntaxhighlight> | <syntaxhighlight lang="bash" copy>lspci -nnk | grep -A3 Ethernet</syntaxhighlight> | ||
Exemple : | Exemple : | ||
<syntaxhighlight lang="text">Kernel driver in use: igc</syntaxhighlight> | <syntaxhighlight lang="text" copy>Kernel driver in use: igc</syntaxhighlight> | ||
ou : | ou : | ||
<syntaxhighlight lang="text">Kernel driver in use: vfio-pci</syntaxhighlight> | <syntaxhighlight lang="text" copy>Kernel driver in use: vfio-pci</syntaxhighlight> | ||
----- | ----- | ||
| Ligne 283 : | Ligne 283 : | ||
== Voir les bridges Linux Proxmox == | == Voir les bridges Linux Proxmox == | ||
<syntaxhighlight lang="bash">bridge link</syntaxhighlight> | <syntaxhighlight lang="bash" copy>bridge link</syntaxhighlight> | ||
----- | ----- | ||
| Ligne 289 : | Ligne 289 : | ||
== Voir le mapping NIC ↔ PCI == | == Voir le mapping NIC ↔ PCI == | ||
<syntaxhighlight lang="bash">ls -l /sys/class/net</syntaxhighlight> | <syntaxhighlight lang="bash" copy>ls -l /sys/class/net</syntaxhighlight> | ||
Très utile pour : | Très utile pour : | ||