linux:proxmox

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
linux:proxmox [2025/11/25 20:00] – [Proxmox] add link phswlinux:proxmox [2026/03/17 12:17] (Version actuelle) – add how to execute command through agent phsw
Ligne 12: Ligne 12:
   * [[https://resinfo-gt.pages.in2p3.fr/proxmox/doc/index.html]]   * [[https://resinfo-gt.pages.in2p3.fr/proxmox/doc/index.html]]
   * [[https://raymii.org/s/tutorials/Finally_run_Docker_containers_natively_in_Proxmox_9.1.html|Finally, run Docker containers natively in Proxmox 9.1 (OCI images)]]   * [[https://raymii.org/s/tutorials/Finally_run_Docker_containers_natively_in_Proxmox_9.1.html|Finally, run Docker containers natively in Proxmox 9.1 (OCI images)]]
 +  * [[https://blog.zwindler.fr/2025/11/24/artefacts-oci-lxc-proxmox-9-1/|Les artefacts OCI comme base de machines LXC sur Proxmox 9.1, enfin ?]]
  
  
Ligne 20: Ligne 21:
 systemctl disable --now pve-ha-lrm systemctl disable --now pve-ha-lrm
 systemctl disable --now pve-ha-crm systemctl disable --now pve-ha-crm
-systemctl disable --now corosy+systemctl disable --now corosync
 </code> </code>
  
Ligne 35: Ligne 36:
   * [[https://pve.proxmox.com/wiki/Cloud-Init_FAQ|Cloud-Init FAQ]]   * [[https://pve.proxmox.com/wiki/Cloud-Init_FAQ|Cloud-Init FAQ]]
   * [[https://pve.proxmox.com/wiki/VM_Templates_and_Clones|VM Templates and Clones]]   * [[https://pve.proxmox.com/wiki/VM_Templates_and_Clones|VM Templates and Clones]]
 +  * [[https://febryandana.xyz/posts/proxmox-create-lxc-instance-and-template/|Create LXC (Linux Container) Instance and Template]]
  
 +
 +==== Faire écouter l'interface web sur le port 443 ====
 +
 +  * [[https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy|Web Interface Via Nginx Proxy]]
 +
 +Ajouter aux interfaces dans ''/etc/network/interfaces'' :
 +<code bash>
 +post-up iptables -t nat -A PREROUTING -d <your-ip> -p tcp --dport 443 -j REDIRECT --to-port 8006 || true
 +</code>
 +Ensuite pour appliquer immédiatement le changement :
 +<code bash>
 +sudo ifreload -a
 +</code>
 +
 +
 +==== Gérer le renouvellement du certificat HTTPS avec ACME ====
 +
 +  * [[https://pve.proxmox.com/wiki/Certificate_Management|Certificate Management]]
 +
 +<code bash>
 +sudo pvenode acme account register default em@il --directory https://ca.homelab/acme/acme/directory
 +sudo pvenode config set --acme domains=proxmox.homelab  # or from the web interface
 +sudo pvenode acme cert order  # or from the web interface
 +</code>
 +
 +
 +==== API ====
 +
 +  * https://proxmoxer.github.io/docs/latest/
 +  * https://pve.proxmox.com/pve-docs/api-viewer/index.html
 +
 +
 +==== Renommer ====
 +
 +Renommer une VM :
 +<code bash>
 +qm set $i --name mynewname
 +</code>
 +
 +Renommer un conteneur :
 +<code bash>
 +pct set $i --name mynewname
 +</code>
 +
 +L'information peut aussi être directement éditée dans /etc/pve/qemu-server/$id.conf
 +
 +
 +==== Exécuter une commande dans une VM ====
 +
 +Si l'agent invité fonctionne dans la VM, il est possible de faire depuis l'hôte :
 +<code bash>
 +qm guest exec $vm_id ls /etc
 +</code>
 +Les commandes sont exécutées en tant que root dans la VM.
  • linux/proxmox.1764097227.txt.gz
  • Dernière modification : 2025/11/25 20:00
  • de phsw