Outils pour utilisateurs

Outils du site


Panneau latéral

Mycélium

Documentation

Travaux

Membres

Wiki

travaux:technique:atelier_24_05_2019

Playbook VLAN dans initramfs

Jérôme a fait un playbook pour faire du VLAN dans initramfs (afin qu'on accède à dropbear pour déchiffrer les disques à distance lors d'un redémarrage de Russule).

  • La config IP était auparavant indiquée directement en ligne de boot via grub. Puisque cette config est désormais faite dans l'initramfs, on la retire (etckeeper: a21982adb07690f4d55eb8c037d09896b4a8ff43)
  • On joue le playbook (etckeeper: b315a3fa7d2e33447842e4db96959623826d94c1)
  • On vérifie que le tout nous semble cohérent, et on reboot.

On remarque au passage pas mal d'entrées concernant ntp dans les logs du serveur : ntp ne parvient pas à résoudre les noms de domaines de ses serveurs… nous n'avons pas enquêté sur le pourquoi. Peut-être dû à une règle de firewall ?

Le log de la console série lorsqu'on démarre Russule est le suivant :

ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
  Volume group "russule" not found
  Cannot process volume group russule
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
ipconfig: enp3s0.170: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
/scripts/init-premount/dropbear: .: line 275: can't open '/run/net-enp3s0.170.conf': No such file or directory
  Volume group "russule" not found
  Cannot process volume group russule

Si l'on remet la ligne GRUB configurant le réseau, on obtient :

ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
ip: command line is not complete, try "help"
ip: "dev" requires an argument
ip: SIOCGIFFLAGS: No such device
IP-Config: enp3s0 hardware address 00:0d:b9:4c:c3:c6 mtu 1500
IP-Config: enp3s0 guessed broadcast address 80.67.168.255
IP-Config: enp3s0 complete:
 address: 80.67.168.245    broadcast: 80.67.168.255    netmask: 255.255.255.0   
 gateway: 80.67.168.246    dns0     : 0.0.0.0          dns1   : 0.0.0.0         
 host   : russule                                                         
 rootserver: 0.0.0.0 rootpath: 
 filename  : 
  Volume group "russule" not found
  Cannot process volume group russule
  Volume group "russule" not found
  Cannot process volume group russule

Bonus, quelques communications IRC :

13:23:28 @taziden | il vous manque pas un ip link add dans votre conf réseau ?
13:27:17 @taziden | pour être droppé dans un shell de l'initramfs, vous pouvez boot en ajoutant break=premount à la commandline linux https://wiki.debian.org/InitramfsDebug
13:27:38 @taziden | ça permet de comprendre ce qu'il y a dedans, comment c'est configuré, etc
13:39:33    emile | la conf m'a l'aire correcte
14:16:14    emile | perso j'ai jamais essayé avec un vlan, je navigue dans le brouillard là :)
14:16:28 @taziden | idem
14:16:35    emile | je cherche ce qui crée le fichier /run/net-*.conf
14:16:49 cacatoes | arggll :p
14:16:53    emile | mon intuition c'est qu'il le nome pas de la bonne façon
travaux/technique/atelier_24_05_2019.txt · Dernière modification: 2019/05/24 14:48 par cacatoes