This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatique:linux:proxmox [2024/10/14 11:40] – [Se connecter à un conteneur LXC] yahiko | informatique:linux:proxmox [2025/10/23 07:58] (current) – yahiko | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| [[informatique: | [[informatique: | ||
| ===== Interface web inaccessible ===== | ===== Interface web inaccessible ===== | ||
| + | Dans un premier temps : | ||
| + | <code bash> | ||
| + | systemctl restart pvedaemon pveproxy | ||
| + | </ | ||
| + | |||
| + | Si pas mieux : | ||
| <code bash> | <code bash> | ||
| pvecm expected 1 | pvecm expected 1 | ||
| Line 7: | Line 13: | ||
| systemctl restart pvedaemon pveproxy | systemctl restart pvedaemon pveproxy | ||
| systemctl restart pve-cluster | systemctl restart pve-cluster | ||
| + | </ | ||
| + | |||
| + | Si jamais l' | ||
| + | |||
| + | <code bash> | ||
| + | systemctl restart pvestatd | ||
| </ | </ | ||
| Line 16: | Line 28: | ||
| pct enter <id> | 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 '' | ||
| + | |||
| + | ===== Lister les VMs ou CT ===== | ||
| + | |||
| + | ==== VM ==== | ||
| + | |||
| + | <code bash> | ||
| + | qm list | ||
| + | </ | ||
| + | |||
| + | ==== CT ==== | ||
| + | |||
| + | <code bash> | ||
| + | pct list | ||
| + | </ | ||
| + | |||
| + | ===== 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 ' | ||
| + | </ | ||
| + | |||