Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
linux:proxmox [19-04-2017 23:16] edmc73 [Bug] |
linux:proxmox [28-12-2020 11:58] edmc73 [cluster] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Proxmox ====== | ====== Proxmox ====== | ||
- | ===== Définition ===== | + | ===== Doc ===== |
+ | |||
+ | Bel article sur proxmox 5 => https:// | ||
+ | |||
+ | |||
+ | ===== Définition | ||
Proxmox est une distribution linux sous debian lenny qui intègre les outils openvz ( http:// | Proxmox est une distribution linux sous debian lenny qui intègre les outils openvz ( http:// | ||
Ligne 130: | Ligne 135: | ||
Il n'y a plus qu'a les télécharger dans le répertoire template prévu par proxmox. | Il n'y a plus qu'a les télécharger dans le répertoire template prévu par proxmox. | ||
+ | |||
+ | ==== Proxmox 5 ==== | ||
+ | Plus de openVZ maintenant c'est du LXC | ||
+ | |||
+ | Our image repositories contain a list of available images, and there is a cron job run each day to download that list. You can trigger that update manually with: | ||
+ | |||
+ | pveam update | ||
+ | After that you can view the list of available images using: | ||
+ | |||
+ | pveam available | ||
+ | You can restrict this large list by specifying the section you are interested in, for example basic system images: | ||
+ | |||
+ | List available system images | ||
+ | |||
+ | # pveam available --section system | ||
+ | system | ||
+ | system | ||
+ | system | ||
+ | system | ||
+ | system | ||
+ | system | ||
+ | system | ||
+ | system | ||
+ | system | ||
+ | |||
+ | Before you can use such a template, you need to download them into one of your storages. You can simply use storage local for that purpose. For clustered installations, | ||
+ | |||
+ | pveam download local debian-8.0-standard_8.0-1_amd64.tar.gz | ||
+ | |||
+ | You are now ready to create containers using that image, and you can list all downloaded images on storage local with: | ||
+ | |||
+ | # pveam list local | ||
+ | local: | ||
+ | |||
+ | The above command shows you the full Proxmox VE volume identifiers. They include the storage name, and most other Proxmox VE commands can use them. For example you can delete that image later with: | ||
+ | |||
+ | pveam remove local: | ||
+ | |||
====== Proxmox 4 ====== | ====== Proxmox 4 ====== | ||
Ligne 165: | Ligne 208: | ||
et voilà :) | et voilà :) | ||
+ | ===== Bug2 ===== | ||
+ | Après installation de debian 9 et mise à jour en debian 9.1, impossible de redémarrer la VM. | ||
+ | |||
+ | Solution => https:// | ||
+ | < | ||
+ | --- / | ||
+ | +++ / | ||
+ | @@ -28,7 +28,7 @@ | ||
+ | | ||
+ | |||
+ | die " | ||
+ | - if !($version >= 4 && $version <= 9); | ||
+ | + if !($version >= 4 && $version <= 9.1); | ||
+ | |||
+ | my $self = { conf => $conf, rootdir => $rootdir, version => $version }; | ||
+ | </ | ||
===== Commande ===== | ===== Commande ===== | ||
Ligne 180: | Ligne 239: | ||
fsck /dev/loop0 | fsck /dev/loop0 | ||
+ | Un utilitaire pour gérer les containers LXC dans un terminal | ||
+ | < | ||
+ | USAGE: pct < | ||
+ | pct clone < | ||
+ | pct create < | ||
+ | pct destroy < | ||
+ | pct list | ||
+ | pct migrate < | ||
+ | pct resize < | ||
+ | pct restore < | ||
+ | pct template < | ||
+ | |||
+ | pct config < | ||
+ | pct set < | ||
+ | |||
+ | pct delsnapshot < | ||
+ | pct listsnapshot < | ||
+ | pct rollback < | ||
+ | pct snapshot < | ||
+ | |||
+ | pct resume < | ||
+ | pct shutdown < | ||
+ | pct start < | ||
+ | pct stop < | ||
+ | pct suspend < | ||
+ | |||
+ | pct console < | ||
+ | pct cpusets | ||
+ | pct df < | ||
+ | pct enter < | ||
+ | pct exec < | ||
+ | pct fsck < | ||
+ | pct mount < | ||
+ | pct pull < | ||
+ | pct push < | ||
+ | pct status < | ||
+ | pct unlock < | ||
+ | pct unmount < | ||
+ | |||
+ | pct help [< | ||
+ | </ | ||
+ | exemple: lister les VM | ||
+ | pct list | ||
+ | entrer à l' | ||
+ | pct enter 101 | ||
+ | |||
+ | ouvrir la console d'une VM (pour sortir de la console, Ctrl+a q) | ||
+ | pct console 101 | ||
+ | |||
+ | ====== Proxmox 5 ====== | ||
+ | |||
+ | ===== sur une VM non LXC, c'est lent ===== | ||
+ | |||
+ | Par exemple, j' | ||
+ | |||
+ | Par magie, en désactivant le SWAP, on retrouve la rapidité normal du système. | ||
+ | |||
+ | sudo swapoff -a | ||
+ | |||
+ | ===== cluster ===== | ||
+ | J'ai voulu test en créant un cluster puis en m' | ||
+ | |||
+ | Heureusement, | ||
+ | |||
+ | systemctl stop pve-cluster | ||
+ | systemctl stop corosync | ||
+ | pmxcfs -l | ||
+ | rm / | ||
+ | rm / | ||
+ | killall pmxcfs | ||
+ | systemctl start pve-cluster | ||
+ | | ||
+ | |||
+ | ==== Proxmox 6 ==== | ||
+ | |||
+ | ===== Installation ===== | ||
+ | Bizarrement, | ||
+ | Au préalable, il va falloir bien partitionner son serveur en n' |