This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatique:linux:proxmox [2024/02/27 20:37] – yahiko | informatique:linux:proxmox [2025/08/20 14:31] (current) – yahiko | ||
---|---|---|---|
Line 2: | Line 2: | ||
[[informatique: | [[informatique: | ||
===== Interface web inaccessible ===== | ===== Interface web inaccessible ===== | ||
- | <codedoc | + | Dans un premier temps : |
+ | < | ||
+ | systemctl restart pvedaemon pveproxy | ||
+ | </ | ||
+ | |||
+ | Si pas mieux : | ||
+ | < | ||
pvecm expected 1 | pvecm expected 1 | ||
pvecm updatecerts | pvecm updatecerts | ||
systemctl restart pvedaemon pveproxy | systemctl restart pvedaemon pveproxy | ||
systemctl restart pve-cluster | systemctl restart pve-cluster | ||
- | </codedoc> | + | </code> |
+ | |||
+ | Si jamais l' | ||
+ | |||
+ | <code bash> | ||
+ | systemctl restart pvestatd | ||
+ | </code> | ||
https:// | https:// | ||
+ | |||
+ | ===== Se connecter à un conteneur LXC ===== | ||
+ | Parce que je ne m'en rappelle jamais. | ||
+ | <code bash> | ||
+ | pct enter <id> | ||
+ | </ | ||
+ | |||
+ | ===== Renouveler le certificat ===== | ||
+ | |||
+ | Si changement d'IP du serveur, le certificat auto-signé n'est pas identifié avec la bonne IP. | ||
+ | |||
+ | Modifier dans le Hosts (Datacenter > choisir la nœud > System > Hosts) où 192.168.1.200 est la nouvelle IP : | ||
+ | <code conf> | ||
+ | 192.168.1.200 pve.test.lan pve | ||
+ | </ | ||
+ | |||
+ | Renouveler le certificat puis redémarrage du serveur web : | ||
+ | <code bash> | ||
+ | pvecm updatecerts -f | ||
+ | systemctl restart pveproxy | ||
+ | </ | ||
+ | |||
+ | ===== Sauvegarde plantée ===== | ||
+ | <code bash> | ||
+ | vzdump -stop | ||
+ | # si pas fonctionnel | ||
+ | ps -aux | grep vzdump | ||
+ | kill -9 PROCESS_ID | ||
+ | # si pas fonctionnel | ||
+ | umount -f / | ||
+ | qm unlock ID_VM | ||
+ | </ | ||
+ | |||
+ | ===== Problème de montage NFS ===== | ||
+ | |||
+ | Source : https:// | ||
+ | |||
+ | Vérifier le point de montage non joignable, ou '' | ||
+ | <code bash> | ||
+ | pvesm status | ||
+ | |||
+ | unable to activate storage ' | ||
+ | Name | ||
+ | archives-masters | ||
+ | local | ||
+ | local-lvm | ||
+ | nas-nfs | ||
+ | pve2-ssd | ||
+ | pve3-hdd | ||
+ | sauvegarde-locale | ||
+ | </ | ||
+ | |||
+ | Le désactiver : | ||
+ | <code bash> | ||
+ | pvesm set nas-nfs --disable | ||
+ | </ | ||
+ | |||
+ | Le démonter : | ||
+ | <code bash> | ||
+ | umount -f -l / | ||
+ | </ | ||
+ | |||
+ | Le remonter : | ||
+ | <code bash> | ||
+ | pvesm set nas-nfs --delete disable | ||
+ | </ | ||
+ | |||
+ | Vérifier le status : | ||
+ | <code bash> | ||
+ | pvesm status | ||
+ | |||
+ | Name | ||
+ | archives-masters | ||
+ | local | ||
+ | local-lvm | ||
+ | nas-nfs | ||
+ | pve2-ssd | ||
+ | pve3-hdd | ||
+ | sauvegarde-locale | ||
+ | </ | ||
+ | |||
+ | ===== Problème de montage ===== | ||
+ | |||
+ | Vérifier le status du service '' | ||
+ | |||
+ | ===== Restaurer une VM ou un conteneur ===== | ||
+ | ==== VM KVM ==== | ||
+ | |||
+ | <code bash> | ||
+ | qmrestore / | ||
+ | </ | ||
+ | |||
+ | ==== Conteneur LXC ==== | ||
+ | |||
+ | <code bash> | ||
+ | pct restore ID_CT / | ||
+ | </ | ||
+ | |||
+ | ===== Lister la config d'une VM ===== | ||
+ | |||
+ | <code bash> | ||
+ | qm showcmd ID --pretty | ||
+ | </ | ||
+ | |||
+ | Par exemple : | ||
+ | <code bash> | ||
+ | qm showcmd 101 --pretty | ||
+ | / | ||
+ | -id 101 \ | ||
+ | -name ' | ||
+ | -no-shutdown \ | ||
+ | -chardev ' | ||
+ | -mon ' | ||
+ | -chardev ' | ||
+ | -mon ' | ||
+ | -pidfile / | ||
+ | -daemonize \ | ||
+ | -smbios ' | ||
+ | -smp ' | ||
+ | -nodefaults \ | ||
+ | -boot ' | ||
+ | -vnc ' | ||
+ | -global ' | ||
+ | -cpu ' | ||
+ | -m 16384 \ | ||
+ | -device ' | ||
+ | -device ' | ||
+ | -device ' | ||
+ | -device ' | ||
+ | -device ' | ||
+ | -device ' | ||
+ | -iscsi ' | ||
+ | -drive ' | ||
+ | -device ' | ||
+ | -drive ' | ||
+ | -device ' | ||
+ | -netdev ' | ||
+ | -device ' | ||
+ | -rtc ' | ||
+ | -machine ' | ||
+ | </ | ||
+ | |||
+ |