Table des matières
4 billet(s) pour janvier 2026
| AWX sur K8S Kind - partage de fichier pour les blob - Execution pods | 2026/01/26 10:15 | Jean-Baptiste |
| Notes rsh rcp | 2026/01/21 18:08 | Jean-Baptiste |
| Git - Duplication d'un dépôt | 2026/01/19 10:22 | Jean-Baptiste |
| Exemple simple de conf Nagios | 2026/01/14 10:07 | Jean-Baptiste |
Notes commande calendar
apt-get update apt-get install bsdmainutils
$ dpkg -L bsdmainutils | grep '/usr/share/calendar/' /usr/share/calendar/calendar.usholiday /usr/share/calendar/hu_HU /usr/share/calendar/hu_HU/calendar.all /usr/share/calendar/hu_HU/calendar.nevnapok /usr/share/calendar/hu_HU/calendar.unnepek /usr/share/calendar/hr_HR /usr/share/calendar/hr_HR/calendar.all /usr/share/calendar/hr_HR/calendar.praznici /usr/share/calendar/calendar.history /usr/share/calendar/calendar.croatian /usr/share/calendar/calendar.holiday /usr/share/calendar/calendar.judaic.2017 /usr/share/calendar/calendar.all /usr/share/calendar/calendar.lotr /usr/share/calendar/calendar.kazakhstan /usr/share/calendar/calendar.debian /usr/share/calendar/calendar.argentina /usr/share/calendar/ru_RU /usr/share/calendar/ru_RU/calendar.holiday /usr/share/calendar/ru_RU/calendar.msk /usr/share/calendar/ru_RU/calendar.all /usr/share/calendar/ru_RU/calendar.common /usr/share/calendar/ru_RU/calendar.pagan /usr/share/calendar/ru_RU/calendar.orthodox /usr/share/calendar/ru_RU/calendar.military /usr/share/calendar/calendar.hungarian /usr/share/calendar/calendar.computer /usr/share/calendar/calendar.thai /usr/share/calendar/calendar.christian /usr/share/calendar/calendar.eu /usr/share/calendar/calendar.judaic.2018 /usr/share/calendar/de_AT /usr/share/calendar/de_AT/calendar.feiertag /usr/share/calendar/calendar.judaic.2014 /usr/share/calendar/calendar.pagan /usr/share/calendar/calendar.french /usr/share/calendar/calendar.ubuntu /usr/share/calendar/calendar.southafrica /usr/share/calendar/calendar.freebsd /usr/share/calendar/calendar.birthday /usr/share/calendar/calendar.newzealand /usr/share/calendar/fr_FR /usr/share/calendar/fr_FR/calendar.fetes /usr/share/calendar/fr_FR/calendar.all /usr/share/calendar/fr_FR/calendar.proverbes /usr/share/calendar/fr_FR/calendar.jferies /usr/share/calendar/fr_FR/calendar.french /usr/share/calendar/calendar.belgium /usr/share/calendar/calendar.judaic.2016 /usr/share/calendar/calendar.discordian /usr/share/calendar/calendar.judaic.2015 /usr/share/calendar/calendar.unitedkingdom /usr/share/calendar/calendar.russian /usr/share/calendar/uk_UA /usr/share/calendar/uk_UA/calendar.holiday /usr/share/calendar/uk_UA/calendar.all /usr/share/calendar/uk_UA/calendar.orthodox /usr/share/calendar/uk_UA/calendar.misc /usr/share/calendar/calendar.world /usr/share/calendar/calendar.ukrainian /usr/share/calendar/de_DE /usr/share/calendar/de_DE/calendar.literatur /usr/share/calendar/de_DE/calendar.kirche /usr/share/calendar/de_DE/calendar.wissenschaft /usr/share/calendar/de_DE/calendar.feiertag /usr/share/calendar/de_DE/calendar.geschichte /usr/share/calendar/de_DE/calendar.all /usr/share/calendar/de_DE/calendar.musik /usr/share/calendar/calendar.german /usr/share/calendar/calendar.australia /usr/share/calendar/calendar.music /usr/share/calendar/calendar.dutch /usr/share/calendar/calendar.judaic
on essaye !
$ calendar sept. 10 Mountain Meadows Massacre. Mormons kill Gentile wagon train, 1857 sept. 10 Gandalf escapes from Orthanc sept. 10 Korean Thanksgiving Day (Chusuk) in South Korea sept. 10 Moon Festival in Taiwan sept. 10 National Day in Belize sept. 10* Sukkot sept. 10 Wesley R. Peters <wes@FreeBSD.org> born in Hartford, Alabama, United States, 1961 sept. 10 Bonne fête aux Inès ! sept. 10 Eintritt Deutschlands in den Völkerbund, 1926 sept. 10 Nikolett, Hunor sept. 11 CIA-sponsored terrorists overthrow Chilean government, murder President Allende, 1973 sept. 11 Terrorists destroy World Trade Center in New York, 2001 sept. 11 Anniversary of military coup in Chile sept. 11 Ethiopian New Year in Ethiopia sept. 11 National Holiday in Chile sept. 11 Día del maestro en honor a la memoria de Domingo F. Sarmiento sept. 11 Aujourd'hui, c'est la St(e) Adelphe. sept. 11 Tu peux semer sans crainte Quand arrive la saint Hyacinthe. sept. 11 Teodóra sept. 11 День победы русской эскадры под командованием Ф.Ф. Ушакова над турецкой эскадрой у мыса Тендра (1790 год) sept. 11 Усекновение главы Иоанна Предтечи sept. 11 Усікновення чесної голови святого Івана Хрестителя
Personnalisation
~/.calendar/calendar
/* * Calendrier perso * * $FreeBSD$ */ LANG=utf-8 #include <calendar.christian> #include <fr_FR/calendar.all> /* #include <fr_FR/calendar.jferies> #include <fr_FR/calendar.fetes> #include <fr_FR/calendar.proverbes> */ #include <calendar.birthday> #include <calendar.holiday> #include <calendar.history> /* #include <calendar.judaic.2015> #include <calendar.pagan> #include <calendar.computer> */
Notes Cockpit
Mots clefs : Administration Webmin Supervision Docker
apt-get install cockpit-system cockpit cockpit-docker cockpit-tests # Fix bug Storage mkdir -p /usr/lib/x86_64-linux-gnu/udisks2/modules mkdir /etc/systemd/system/cockpit.socket.d/ # Bind seulement sur localhost cat <<EOF > /etc/systemd/system/cockpit.socket.d/listen.conf [Socket] ListenStream= ListenStream=127.0.0.1:9090 EOF systemctl daemon-reload systemctl restart cockpit.socket
/etc/cockpit/cockpit.conf
[WebService] Origins = https://cockpit.acme.fr
/etc/nginx/sites-available/cockpit.acme.fr
server { listen 443 ssl; listen [::]:443 ssl; server_name cockpit.acme.fr; location / { # Required to proxy the connection to Cockpit proxy_pass http://127.0.0.1:9090; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; # Required for web sockets to function proxy_http_version 1.1; proxy_buffering off; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; # Pass ETag header from Cockpit to clients. # See: https://github.com/cockpit-project/cockpit/issues/5239 gzip off; } ssl_certificate /etc/letsencrypt/live/cockpit.acme.fr/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/cockpit.acme.fr/privkey.pem; # managed by Certbot } server { if ($host = cockpit.acme.fr) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; server_name cockpit.acme.fr; return 404; # managed by Certbot }
sudo certbot --nginx -d cockpit.acme.fr -d www.cockpit.acme.fr
sudo env EDITOR=vim crontab -e
Ajouter :
0 12 * * * /usr/bin/certbot renew --quiet
Gérer les VM Libvirt avec Cockpit
Voir notes_libvirt
apt-get install cockpit cockpit-machines
Notes Cobbler
Liens :
- Cobbler Debian repo https://fedorahosted.org/cobbler/wiki/DebianDeployment
Voir aussi : Cobbler déploiement Ubuntu ou Debian
Installation sur CentOS7
Désactivation de SELinux
/etc/selinux/config
SELINUX=disabled
setenforce 0
Après l'activation des dépôts EPEL
yum install cobbler-web cobbler dhcp xinetd
systemctl start xinetd
On cherche le nom du service
#rpm -q --filesbypkg cobbler |grep systemd rpm -ql cobbler |grep systemd
/usr/lib/systemd/system/cobblerd.service
systemctl start cobblerd.service systemctl status cobblerd.service systemctl enable cobblerd.service systemctl start httpd systemctl enable httpd
/etc/cobbler/settings
# IP du serveur Web Cobbler. Koan devra pouvoir joindre cette IP server: 192.168.100.159 # IP du serveur Cobbler/PXE (interface qui fera office de DHCP) next_server: 192.168.102.1 manage_dhcp: 1
Souvent server et next_server aurons la même adresse IP. Dans mon cas, j'ai mis Cobbler dans une VM en CentOS. La VM cobbler ici à deux interfaces réseaux :
- 192.168.100.159 Sur réseau NAT, qui peut sortir sur internet pour les
yum installet autres - 192.168.102.1 Sur réseau isolé, destiné au PXE et au DHCP
Après avoir modifié ce fichier
systemctl restart cobblerd.service
cobbler check
The following are potential configuration items that you may want to fix:
1 : For PXE to be functional, the 'next_server' field in /etc/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
2 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
https://github.com/cobbler/cobbler/wiki/Selinux
3 : some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.
4 : enable and start rsyncd.service with systemctl
5 : debmirror package is not installed, it will be required to manage debian deployments and repositories
6 : ksvalidator was not found, install pykickstart
7 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one
8 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them
Nous continuons de suivre les recommendations de cobbler check
cobbler get-loaders
yum install pykickstart
systemctl start rsyncd.service
systemctl enable rsyncd.service
openssl passwd -1
On change le default_password_crypted de /etc/cobbler/settings
systemctl restart cobblerd.service
cobbler sync
Cobbler pour Ubuntu
Soit nous utiliserons Preseed, le systeme de Debian/Ubuntu
Soit nous utiliserons Kickstart, le système de RedHat/CentOS partiellement porté sur Ubuntu
Kickstart Ubuntu
Kickstart Ubuntu - Exemple
Vérif
cobbler check
cobbler import --name=ubuntu-server --path=/mnt --breed=ubuntu --os-version=16.04 --arch=x86_64
task started: 2016-06-01_141407_import task started (id=Media import, time=Wed Jun 1 14:14:07 2016) No signature matched in /var/www/cobbler/ks_mirror/ubuntu-server-x86_64 !!! TASK FAILED !!!
PS : C'est que je n'ai pas suivi correctement la doc https://help.ubuntu.com/community/Cobbler/Import
De plus il faut faire
On jette un œil dans
- /var/lib/cobbler/distro_signatures.json
Solution
cobbler signature update
et mettre le bon --os-version
cobbler import --name=ubuntu-server --path=/mnt --breed=ubuntu --os-version=xenial --arch=x86_64
Pour info :
trying symlink: /var/www/cobbler/ks_mirror/ubuntu-server-x86_64 -> /var/www/cobbler/links/ubuntu-server-x86_64
Un profile a été crée
cobbler profile list
ubuntu-server-x86_64
Copions-le
cobbler profile copy --name=ubuntu-server-x86_64 --newname=buntutest1
Interface d'administration Web Cobbler https://192.168.100.159/cobbler_web
utilisateur : cobbler
pass : cobbler
Déploiement
Sur le serveur Cobbler --interface OK ?
cobbler system add --profile=CentOS-7-x86_64 --name=test01 --mac=52:54:00:DD:EE:FF --interface=eth0
Sur l'hyperviseur
koan --virt --wait=-1 --system=test01 --virt-bridge=virbr0
Configuration du dépôt
Voir Notes debmirror
yum install debmirror
Une fois que debmirror est configuré
cobbler reposync --only=ubuntu-server-x86_64
Effacement
Exemple
cobbler system remove --name=ttest02 cobbler profile remove --name=ubuntu-server-16.04.vm cobbler profile remove --name=ubuntu-server-x86_64 cobbler distro remove --name=ubuntu-server-x86_64 cobbler repo remove --name=ubuntu-server-x86_64
Cobbler sur RedHat - notes en vrac
Cobbler
KVM Koan
Install
rpm -uvh koan-2.8.1-2.el7.noarch.rpm python2-simplejson-3.10.0-1.el7.x86_64.rpm python-ipaddr-2.1.11-1.el7.noarch.rpm virt-install-1.4.1-7.el7.noarch.rpm # rpm -Uvh virt-manager-common-1.4.1-7.el7.noarch.rpm # Remplacé par Cockpit
Network bridge
virsh iface-bridge eth0 br0 virsh iface-unbridge br0
Network NAT
https://jamielinux.com/docs/libvirt-networking-handbook/nat-based-network.html
/tmp/default.xml
<network> <name>default</name> <bridge name="virbr0"/> <forward mode="nat"/> <ip address="192.168.122.1" netmask="255.255.255.0"> <dhcp> <range start="192.168.122.2" end="192.168.122.254"/> </dhcp> </ip> </network>
virsh net-define /tmp/default.xml virsh net-start default virsh net-autostart default
export COBBLER_SERVER=192.168.21.3 koan --virt --wait=-1 --system=test1 #--virt-bridge=virbr0 --server=192.168.21.3
Cobbler
ssh -R:3128:192.168.56.1:3128 cobbler export https_proxy=http://127.0.0.1:3128 export http_proxy=http://127.0.0.1:3128 cat /etc/yum.repos.d/epel.repo [epel] name=Extra Packages for Enterprise Linux 7 - $basearch baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch failovermethod=priority enabled=1 gpgcheck=0 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 subscription-manager repos --enable='rhel-7-server-rpms' subscription-manager repos --enable=rhel-7-server-extras-rpms subscription-manager repos --enable=rhel-7-server-optional-rpms # Disable selinux yum update yum install atop tmux cobbler cobbler-web systemctl start cobblerd.service systemctl enable cobblerd.service systemctl start httpd systemctl enable httpd /etc/cobbler/settings next_server: 192.168.53.10 server: 192.168.21.3 proxy_url_ext: "http://127.0.0.1:3128" systemctl restart cobblerd.service cobbler check /etc/xinetd.d/tftp #disable = yes disable = no
Autres
Version os connus
osinfo-query os
Pb
# cobbler import --name=rhel --path=/mnt/iso --breed=redhat --os-version=7 --arch=x86_64 task started: 2017-10-04_140324_import task started (id=Media import, time=Wed Oct 4 14:03:24 2017) No signature matched in /var/www/cobbler/ks_mirror/rhel-x86_64 !!! TASK FAILED !!!
Solution
cobbler import --name=rhel --path=/mnt/iso --breed=redhat --os-version=rhel7 --arch=x86_64
Voir /var/lib/cobbler/distro_signatures.json
cobbler get-loaders cobbler signature update
Penser à faire le ménage dans /var/www/cobbler/ks_mirror/ en effacer les imports échouées
Réseaux : Server settings
default_virt_bridge = br0
Notes CMS Drupal
Voir aussi :
- Backdrop
CREATE DATABASE drupalqua; CREATE USER 'drupalqua'@'localhost' IDENTIFIED BY 'drupal'; GRANT ALL PRIVILEGES ON drupalqua.* TO "drupalqua"@"localhost" IDENTIFIED BY 'drupal'; FLUSH PRIVILEGES; CREATE DATABASE drupalpprod; CREATE USER 'drupalpprod'@'localhost' IDENTIFIED BY 'drupal'; GRANT ALL PRIVILEGES ON drupalpprod.* TO "drupalpprod"@"localhost" IDENTIFIED BY 'drupal'; FLUSH PRIVILEGES;
msql -u drupalqua -D drupalqua -p < ~/orig/mysql.drupal msql -u drupalpprod -D drupalpprod -p < ~/orig/mysql.drupal UPDATE users SET pass = MD5('drupal') WHERE uid=1;
$db_url = 'mysql://drupalqua:drupal@localhost/drupalqua'; $base_url = 'http://qua.parinux.org'; FIXME $conf = array( 'mimedetect_magic' => '/usr/share/file/magic', );
Logs
http://localhost:8092/admin/reports/dblog
Status
http://localhost:8092/admin/reports/status
Config URLS
http://localhost:8092/admin/config/system/site-information
Reconstruire les permissions
http://localhost:8092/admin/reports/status/rebuild
Vider le cache
drush cache-clear all
PHP Fatal error: Unsupported operand types in drupal-7.39/includes/theme.inc on line 1088
Avant la migration de la base, prévoir suffisament d'espace disque. Sauvegarde avant migration
Sous Apache
a2enmod rewrite
book_access http://ftp.drupal.org/files/projects/book_access-7.x-2.1.tar.gz calendar http://ftp.drupal.org/files/projects/calendar-7.x-3.5.tar.gz cck - intégré dans Drupal core custom_pagers http://ftp.drupal.org/files/projects/custom_pagers-7.x-1.x-dev.tar.gz date http://ftp.drupal.org/files/projects/date-7.x-2.9.tar.gz diff http://ftp.drupal.org/files/projects/diff-7.x-3.2.tar.gz event Rien pour Drupal 7 !? filefield Intégré dans Drupal core ? Rien pour Drupal 7 !? imageapi http://ftp.drupal.org/files/projects/imageapi-7.x-1.x-dev.tar.gz imagecache Rien pour Drupal 7 !? imagefield Intégré dans Drupal core imagefield_import Rien pour Drupal 7 !? ldap_integration Rien pour Drupal 7 !? link http://ftp.drupal.org/files/projects/link-7.x-1.3.tar.gz mimedetect http://ftp.drupal.org/files/projects/mimedetect-7.x-1.x-dev.tar.gz pathauto http://ftp.drupal.org/files/projects/pathauto-7.x-1.x-dev.tar.gz signup http://ftp.drupal.org/files/projects/signup-7.x-1.x-dev.tar.gz tagadelic http://ftp.drupal.org/files/projects/tagadelic-7.x-2.x-dev.tar.gz thickbox Rien pour Drupal 7 !? token http://ftp.drupal.org/files/projects/token-7.x-1.6.tar.gz views http://ftp.drupal.org/files/projects/views-7.x-3.8.zip views_bonus Rien pour Drupal 7 !? webform http://ftp.drupal.org/files/projects/webform-7.x-4.9.tar.gz webformblock Rien pour Drupal 7 !? xmlsitemap ????????? #Dépendances ctools http://ftp.drupal.org/files/projects/ctools-7.x-1.9.zip panels http://ftp.drupal.org/files/projects/panels-7.x-3.5.tar.gz Advanced_help http://ftp.drupal.org/files/projects/advanced_help-7.x-1.3.tar.gz Context http://ftp.drupal.org/files/projects/context-7.x-3.6.tar.gz I18n http://ftp.drupal.org/files/projects/i18n-7.x-1.9.tar.gz
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?i
Pour éviter cette erreur bloquante empêchant le rebuild (Reconstruire les permissions) il convient de laisser le module book_access désactivé puis de faire un update.php avant le rebuild
Tout sauvegarder (dossier et db MySQL)
Déplacer files/ et sites/default/settings.php dans le nouveau Drupal 7
Faire un drush updatedb
Se logger avec le compte admin http://qua.acme.fr/?q=user
Aller à http://qua.acme.fr/admin/config/system/site-information
Page de garde par défaut
http://qua.acme.fr/accueil
=>
http://qua.acme.fr/
Définir les thèmes souhaités Une fois les modules installés, il sera possible de remettre http://qua.acme.fr/accueil
Notes cloudinit
Voir :
Voir aussi :
- Tiny Cloud
ubuntu@vm-testjb1:~$ curl 169.254.169.254/1.0/meta-data/public-keys/0/openssh-key ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCZQwNs9aV//oN/N/NmbVqL83ahLatiVccLR1w2YEVBGX2fj5ANnj7a7hNk1tyld+CQlP93I6z7CW9bBxUjwwcxYWeVmBVRBLtFnjhN56gL7jGfXy6uwtUAf84tKWRem10tThIZhjWIIMHfDyFT7vVVN/hk9E3tQ7CejHK3NzhBUjDzrQ8yVIRynveNe93KNlCHW8T0rD83vqmEwApep/EuGD4rwb1e4zYAeh0HXVQIQzaoXlz8OwEBgzkvygCRrtUJcn3bQIloBmu2KrDvPskhqgCU4I9sbkN/K9PLn5hJVmhHVT3Prf0eU8hbrzdnfXlczmLbmVYTqUlOIvrvbAT jibe@vmdeb1ubuntu@vm-testjb1:~$
#cloud-config packages: - git-core #cloud-config apt_update: true #! echo "plop" > /plop environment: "production" output: {all: '| tee -a /var/log/cloud-init-output.log'}
************************************************************************** # This system is using the EC2 Metadata Service, but does not appear to # # be running on Amazon EC2 or one of cloud-init's known platforms that # # provide a EC2 Metadata service. In the future, cloud-init may stop # # reading metadata from the EC2 Metadata Service unless the platform can # # be identified. # # # # If you are seeing this message, please file a bug against # # cloud-init at # # https://bugs.launchpad.net/cloud-init/+filebug?field.tags=dsid # # Make sure to include the cloud provider your instance is # # running on. # # # # For more information see # # https://bugs.launchpad.net/bugs/1660385 # # # # After you have filed a bug, you can disable this warning by # # launching your instance with the cloud-config below, or # # putting that content into # # /etc/cloud/cloud.cfg.d/99-ec2-datasource.cfg # # # # #cloud-config # # datasource: # # Ec2: # # strict_id: false # ************************************************************************** Disable the warnings above by: touch /home/ubuntu/.cloud-warnings.skip or touch /var/lib/cloud/instance/warnings/.skip
DRAFT - Se connecter à une instance dont on ne possède pas la clef
Voir :
aws --region=eu-central-1 ec2 describe-instances --output=table
my_script.sh
#!/bin/bash cat >> /home/ec2-user/.ssh/authorized_keys <<EOF ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCZQwNs9aV//oN/N/NmbVqL83ahLatiVccLR1w2YEVBGX2fj5ANnj7a7hNk1tyld+CQlP93I6z7CW9bBxUjwwcxYWeVmBVRBLtFnjhN56gL7jGfXy6uwtUAf84tKWRem10tThIZhjWIIMHfDyFT7vVVN/hk9E3tQ7CejHK3NzhBUjDzrQ8yVIRynveNe93KNlCHW8T0rD83vqmEwApep/EuGD4rwb1e4zYAeh0HXVQIQzaoXlz8OwEBgzkvygCRrtUJcn3bQIloBmu2KrDvPskhqgCU4I9sbkN/K9PLn5hJVmhHVT3Prf0eU8hbrzdnfXlczmLbmVYTqUlOIvrvbAT jibe@vmdeb1 EOF sed -i 's/^PasswordAuthentication/#&/' /etc/ssh/sshd_config systemctl restart sshd
base64 my_script.sh > my_script_base64.txt
aws ec2 --region=eu-central-1 modify-instance-attribute --instance-id i-08df328706b9e6d46 --attribute userData --value file://my_script_base64.txt
Autres
/var/lib/cloud/data/set-hostname
File /etc/cloud/cloud-init.disabled
Kernel
cloud-init=disabled
Pb
Pb temps de démarrage élevé
# systemd-analyze
Startup finished in 3.195s (kernel) + 23.788s (userspace) = 26.983s
graphical.target reached after 23.230s in userspace
# systemd-analyze blame
11.755s cloud-init-local.service
5.854s docker.service
3.440s mariadb.service
2.459s cloud-init.service
2.317s isc-dhcp-server.service
1.984s php7.3-fpm.service
1.916s proftpd.service
1.200s cloud-config.service
1.138s ifupdown-pre.service
946ms bind9.service
911ms dev-mapper-vgos\x2droot
Logs
- /var/log/cloud-init.log
- /var/log/cloud-init-output.log
curl http://169.254.169.254/openstack/2018-08-27/meta_data.json
Solution
dpkg -i cloud-init_20.2-2~deb10u1_all.deb cloud-guest-utils_0.29-1_all.deb echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg rm /etc/network/interfaces.d/50-cloud-init.cfg
