<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Wed, 29 Apr 2026 05:39:37 +0200 -->
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Wiki Les geekeries de rungis]]></title>
		<atom:link href="https://geekrungis.fr/syndication/rss/wiki/4" rel="self" type="application/rss+xml"/>
		<link>https://geekrungis.fr</link>
		<description><![CDATA[Derniers articles de la catégorie Proxmox]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
            <item>
                <title><![CDATA[Prise en compte du changement de port SSH sur un conteneur LXC]]></title>
                <link>https://geekrungis.fr/wiki/prise-en-compte-du-changement-de-port-ssh-sur-un-conteneur-lxc</link>
                <guid>https://geekrungis.fr/wiki/prise-en-compte-du-changement-de-port-ssh-sur-un-conteneur-lxc</guid>
                <description><![CDATA[Encore un article très rapide, cette fois-ci sur un problématique de prise en compte de port SSH...<br />
Dans la configuration de mes VM et de mes CT LXC, j'aime bien changer le port SSH pour plus de sécurité. Sauf que lorsque vous faites cela sur un conteneur LXC sous Debian, et bien cela ne fonctionne pas...<br />
<br />
Pour rappel, pour modifie le port d'écoute ssh, on modifie le fichier /etc/ssh/sshd_config :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
Port <span style="color: #000000;">8542</span>
&nbsp;</pre></pre></div></div><br />
<br />
Lorsque vous faites :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
systemctl restart sshd.service
&nbsp;</pre></pre></div></div><br />
<br />
et bien ce n'est pas pris en compte...<br />
<br />
Si vous faites :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
systemctl reload sshd.service
&nbsp;</pre></pre></div></div><br />
<br />
cela fonctionne mais après un reboot, le serveur écoute à nouveau sur le port par défaut (22).<br />
<br />
Pour que la configuration soit effective, même après un reboot, deux commandes :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
systemctl disable ssh.socket
systemctl <span style="color: #7a0874; font-weight: bold;">enable</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span>
&nbsp;</pre></pre></div></div><br />
<br />
Et voilà, un reboot, c'est toujours OK  avec le nouveau port !]]></description>
                <pubDate>Sun, 05 Nov 2023 14:43:16 +0100</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Augmenter la taille d'un disque dans un conteneur LXC]]></title>
                <link>https://geekrungis.fr/wiki/augmenter-la-taille-d-un-disque-dans-un-conteneur-lxc</link>
                <guid>https://geekrungis.fr/wiki/augmenter-la-taille-d-un-disque-dans-un-conteneur-lxc</guid>
                <description><![CDATA[<p style="text-align: center;"><img src="https://geekrungis.fr/upload/lxc.png" alt="lxc" title="lxc" /></p><br />
<br />
Le contexte de cet article est le suivant : lors de la mise à jour d'onlyoffice dans un conteneur LXC, je me suis retrouvé en manque de place...<br />
Attention, cet article ne fonctionne que dans le cas particulier ou la partition que vous avez besoin de bouger n'est pas importante...<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-situation">Situation</h2><br />

<br />
Initialement, mon conteneur LXC a un disque de 16 Go avec une partition primaire montée sur / et une partition logique servant de swap, encapsulée dans une seconde partition primaire.<br />
Première étape, on augmente la taille du disque dans proxmox, ça c'est simple : dans l'onglet matériel du conteneur on clique sur le disque puis sur Actions et Redimensionner. On ajoute ensuite la taille que l'on souhaite.<br />
Lorsque vous tentez de déplacer cette partition avec GParted, cela ne fonctionne pas...<br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-premiere-manip-dans-gparted">Première manip. dans GParted</h2><br />

<br />
Dans proxmox, ajouter un disque au conteneur si nécessaire et charger un ISO avec GParted.<br />
La première manip. est donc de supprimer tout simplement la partition primaire dans laquelle se trouve la partition logique utilisée pour le swap.<br />
Puis on redimensionne la partition primaire (/dev/sda1 normalement) en laissant 1Go pour la nouvelle partition swap.<br />
<br />
Puis on créé une nouvelle partition de type swap de la taille restante.<br />
<br />
<span class="message-helper notice"><br />
Ici, on peut penser avoir terminé. Mais puisqu'on a supprimé puis recréé une nouvelle partition, cette dernière a un nouvel UUID donc la machine ne pourra plus démarrer...<br />
</span><br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-modification-de-fstab">Modification de fstab</h2><br />

<br />
On reste dans GParted mais on ouvre un terminal. Tout d'abord on monte la partition sur laquelle se trouve le système :<br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1 <span style="color: #000000; font-weight: bold;">/</span>mnt
&nbsp;</pre></pre></div></div><br />
<br />
Puis on édite le fstab :<br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab
&nbsp;</pre></pre></div></div><br />
<br />
On modifie la ligne où se trouve le swap : on modifie l'UUID pour mettre le nouveau.<br />
<br />
<span class="message-helper notice"><br />
Pour trouver le nouvel UUID, on peut taper la commande suivante : lsblk -f<br />
</span><br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-demarrage-du-conteneur">Démarrage du conteneur</h2><br />

<br />
Vous pouvez redémarrer le conteneur, vous aurez normalement l'erreur suivante : mdadm: No arrays found in config file or automatically<br />
Le système devrait malgré tout démarrer.<br />
<br />
Tapez ensuite les 3 commandes suivantes :<br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
mdadm <span style="color: #660033;">--detail</span> <span style="color: #660033;">--scan</span> <span style="color: #000000; font-weight: bold;">>></span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mdadm.conf
update-initramfs <span style="color: #660033;">-u</span>
update-grub
&nbsp;</pre></pre></div></div><br />
<br />
Redémarrez le système pour vérifier, tout est OK !]]></description>
                <pubDate>Sun, 22 Oct 2023 21:04:02 +0200</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Réveiller son serveur proxmox à distance (Wake on Lan)]]></title>
                <link>https://geekrungis.fr/wiki/reveiller-son-serveur-proxmox-a-distance-wake-on-lan</link>
                <guid>https://geekrungis.fr/wiki/reveiller-son-serveur-proxmox-a-distance-wake-on-lan</guid>
                <description><![CDATA[Article très court sur le paramétrage de proxmox pour le réveiller à distance.<br />
<br />
La première chose primordiale à faire est de configurer votre BIOS pour accepter le transfert de "paquets magiques" qui permettent le réveil à distance. Pour cela, faite une recherche sur votre moteur de recherche préféré avec la référence de votre carte mère ou la version de votre BIOS.<br />
<br />
Côté proxmox, il faut utiliser la méthode debian et dérivés.<br />
<br />
Tout d'abord, vérifiez que votre carte réseau permet le WOL avec la commande suivante :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
ethtool enp2s0 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Wake-on
&nbsp;</pre></pre></div></div><br />
<br />
<span class="message-helper notice">enp2s0 est l'identifiant de votre carte réseau, cela peut-être eth0 ou autre chose. Pour le connaitre, tapez la commende ip a</span><br />
<br />
Si vous avez un retour du style :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
Wake-on: g
&nbsp;</pre></pre></div></div><br />
<br />
C'est Ok.<br />
Si vous avez un retour :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
Wake-on: d
&nbsp;</pre></pre></div></div><br />
<br />
Votre carte réseau à la possibilité de le faire mais c'est désactivé. Pour l'activer, entrez la commande suivante :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ethtool <span style="color: #660033;">-s</span> enp2s0 wol g
&nbsp;</pre></pre></div></div><br />
<br />
Il faut ensuite aller mettre ce paramétrage en définitif sinon, il se désactive à l'extinction. Pour cela modifier le fichier /etc/network/interfaces et ajoutez les lignes suivantes :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
auto lo
iface lo inet loopback
up ethtool <span style="color: #660033;">-s</span> eth0 wol g
&nbsp;</pre></pre></div></div><br />
<br />
Eteignez le serveur, faites un test, cela doit fonctionner ;-)]]></description>
                <pubDate>Thu, 13 Jul 2023 13:50:25 +0200</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Problème avec OpenVPN sous proxmox 7]]></title>
                <link>https://geekrungis.fr/wiki/probleme-avec-openvpn-sous-proxmox-7</link>
                <guid>https://geekrungis.fr/wiki/probleme-avec-openvpn-sous-proxmox-7</guid>
                <description><![CDATA[<h2 class="formatter-title wiki-paragraph-2" id="paragraph-presentation-du-probleme">Présentation du problème</h2><br />

<br />
Sous proxmox, j'utilise un conteneur lxc sous Ubuntu pour faire tourner OpenVPN. Lors de la migration vers proxmox 7, le service OpenVPN ne démarrait plus avec le message d'erreur suivant (visible dans l'interface d'administration d'OpenVPN) :<br />
<br />
<img src="https://geekrungis.fr/upload/screenshot_erreur_openvpn.png" alt="screenshot_erreur_openvpn" title="screenshot_erreur_openvpn" /><br />
<br />
<h2 class="formatter-title wiki-paragraph-2" id="paragraph-resolution">Résolution</h2><br />

<br />
Pour résoudre ce problème, rendez-vous sur le terminal du serveur proxmox, soit directement dans l'interface soit via une connexion ssh.<br />
<br />
<ol class="formatter-ol">
    <li class="formatter-li">Editez le fichier de configuration du container :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pve<span style="color: #000000; font-weight: bold;">/</span>lxc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>ID<span style="color: #7a0874; font-weight: bold;">&#93;</span>.conf</pre></pre></div></div><br />
où ID est le numéro du container
  
    </li><li class="formatter-li">Ajoutez les deux lignes suivantes au fichier<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">lxc.mount.entry: <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>tun dev<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>tun none <span style="color: #7a0874; font-weight: bold;">bind</span>,<span style="color: #007800;">create</span>=<span style="color: #c20cb9; font-weight: bold;">file</span>
lxc.cgroup.devices.allow: c <span style="color: #000000;">10</span>:<span style="color: #000000;">200</span> rwm</pre></pre></div></div>
  
    </li><li class="formatter-li">Redémarrez le conteneur<br />
</li></ol><br />
<br />
Votre service OpenVPN devrait redémarrer correctement !<br />]]></description>
                <pubDate>Fri, 17 Dec 2021 22:12:23 +0100</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Container qui ne démarre pas]]></title>
                <link>https://geekrungis.fr/wiki/container-qui-ne-demarre-pas</link>
                <guid>https://geekrungis.fr/wiki/container-qui-ne-demarre-pas</guid>
                <description><![CDATA[Probablement dû à la mise à jour du système proxmox, je me suis retrouvé avec un container sous debian 10 qui ne démarrait plus.<br />
Voici les logs obtenus via la commande :<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
lxc-start <span style="color: #660033;">-n</span> <span style="color: #000000;">103</span> <span style="color: #660033;">-F</span> <span style="color: #660033;">-l</span> DEBUG <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>lxc-<span style="color: #000000;">103</span>.log
&nbsp;</pre></pre></div></div><br />
<br />
<span class="message-helper notice"><br />
103 est l'ID du container<br />
</span><br />
<br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213926.962</span> INFO     lsm - lsm<span style="color: #000000; font-weight: bold;">/</span>lsm.c:lsm_init:<span style="color: #000000;">40</span> - Initialized LSM security driver AppArmor
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213926.962</span> INFO     conf - conf.c:run_script_argv:<span style="color: #000000;">331</span> - Executing script <span style="color: #ff0000;">"/usr/share/lxc/hooks/lxc-pve-prestart-hook"</span> <span style="color: #000000; font-weight: bold;">for</span> container <span style="color: #ff0000;">"103"</span>, config section <span style="color: #ff0000;">"lxc"</span>
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213927.419</span> DEBUG    conf - conf.c:run_buffer:<span style="color: #000000;">303</span> - Script <span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>lxc<span style="color: #000000; font-weight: bold;">/</span>hooks<span style="color: #000000; font-weight: bold;">/</span>lxc-pve-prestart-hook <span style="color: #000000;">103</span> lxc pre-start produced output: close <span style="color: #7a0874; font-weight: bold;">&#40;</span>rename<span style="color: #7a0874; font-weight: bold;">&#41;</span> atomic <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #ff0000;">'/etc/resolv.conf'</span> failed: Operation not permitted
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213927.420</span> DEBUG    conf - conf.c:run_buffer:<span style="color: #000000;">303</span> - Script <span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>lxc<span style="color: #000000; font-weight: bold;">/</span>hooks<span style="color: #000000; font-weight: bold;">/</span>lxc-pve-prestart-hook <span style="color: #000000;">103</span> lxc pre-start produced output: error <span style="color: #000000; font-weight: bold;">in</span> setup task PVE::LXC::Setup::pre_start_hook
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213927.428</span> ERROR    conf - conf.c:run_buffer:<span style="color: #000000;">314</span> - Script exited with status <span style="color: #000000;">1</span>
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213927.428</span> ERROR    start - start.c:lxc_init:<span style="color: #000000;">798</span> - Failed to run lxc.hook.pre-start <span style="color: #000000; font-weight: bold;">for</span> container <span style="color: #ff0000;">"103"</span>
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213927.428</span> ERROR    start - start.c:__lxc_start:<span style="color: #000000;">1945</span> - Failed to initialize container <span style="color: #ff0000;">"103"</span>
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213927.428</span> INFO     conf - conf.c:run_script_argv:<span style="color: #000000;">331</span> - Executing script <span style="color: #ff0000;">"/usr/share/lxc/hooks/lxc-pve-poststop-hook"</span> <span style="color: #000000; font-weight: bold;">for</span> container <span style="color: #ff0000;">"103"</span>, config section <span style="color: #ff0000;">"lxc"</span>
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213927.849</span> INFO     conf - conf.c:run_script_argv:<span style="color: #000000;">331</span> - Executing script <span style="color: #ff0000;">"/usr/share/lxcfs/lxc.reboot.hook"</span> <span style="color: #000000; font-weight: bold;">for</span> container <span style="color: #ff0000;">"103"</span>, config section <span style="color: #ff0000;">"lxc"</span>
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213928.350</span> ERROR    lxc_start - tools<span style="color: #000000; font-weight: bold;">/</span>lxc_start.c:main:<span style="color: #000000;">308</span> - The container failed to start
lxc-start <span style="color: #000000;">103</span> <span style="color: #000000;">20210703213928.350</span> ERROR    lxc_start - tools<span style="color: #000000; font-weight: bold;">/</span>lxc_start.c:main:<span style="color: #000000;">314</span> - Additional information can be obtained by setting the <span style="color: #660033;">--logfile</span> and <span style="color: #660033;">--logpriority</span> options
&nbsp;</pre></pre></div></div><br />
<br />
Après quelques recherches, l&#8217;enchaînement de commandes suivant m'a permis de résoudre le problème<br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
pct <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000;">103</span>
&nbsp;</pre></pre></div></div><br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>lxc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">103</span><span style="color: #000000; font-weight: bold;">/</span>rootfs<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>.pve-ignore.resolv.conf
&nbsp;</pre></pre></div></div><br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
pct unmount <span style="color: #000000;">103</span>
&nbsp;</pre></pre></div></div><br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
pct start <span style="color: #000000;">103</span>
&nbsp;</pre></pre></div></div>]]></description>
                <pubDate>Sun, 04 Jul 2021 00:10:06 +0200</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Proxmox]]></title>
                <link>https://geekrungis.fr/wiki/proxmox</link>
                <guid>https://geekrungis.fr/wiki/proxmox</guid>
                <description><![CDATA[Ici, je vous présente mes quelques expériences sur l'hyperviseur proxmox que j'utilise aujourd'hui en production chez moi pour héberger toutes mes geekeries  <img src="https://geekrungis.fr/images/smileys/smile.png" alt=":)" title=":)" class="smiley" />]]></description>
                <pubDate>Fri, 12 Feb 2021 16:29:13 +0100</pubDate>
                
            </item>
		
	</channel>
</rss>
