11 Apr 2024 |
Rémy Grünblatt | Coucou | 13:23:38 |
Rémy Grünblatt | Est-ce qu'Anthony Roussel serait dans le coin, à tout hasard ? | 13:23:56 |
Weijia | Peut-être Anthony Rsl ? | 13:24:51 |
Rémy Grünblatt | Ah ! Peut être ! Hello Anthony Rsl ! J'essaye d'utiliser gns3-server (tu as du voir tes mails), et j'ai encore un petit problème : j'ai l'impression que la detection des flags ne fonctionne pas vraiment sur https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/networking/gns3-server.nix | 13:41:38 |
Rémy Grünblatt | i.e. j'ai bien virtualisation.libvirtd.enable = true le SupplementaryGroups ne contient pas libvirtd ( https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/networking/gns3-server.nix#L224-L226 ). | 13:41:59 |
Rémy Grünblatt | (si t'as une idée…) | 13:42:06 |
Anthony Rsl | In reply to @rgrunbla:matrix.org Est-ce qu'Anthony Roussel serait dans le coin, à tout hasard ? Bonjour ! Oui c'est bien moi :) | 16:47:07 |
Anthony Rsl | In reply to @rgrunbla:matrix.org Ah ! Peut être ! Hello Anthony Rsl ! J'essaye d'utiliser gns3-server (tu as du voir tes mails), et j'ai encore un petit problème : j'ai l'impression que la detection des flags ne fonctionne pas vraiment sur https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/networking/gns3-server.nix Ah étrange, c'est un bug dans le module alors :) Je vais regarder ça. C'était mon premier module NixOS, et je crois que le module manque de tests sur la partie virtualisation. | 16:51:17 |
Anthony Rsl | Comment utilises-tu le module dans ta configuration NixOS ?
Il n'est disponible que dans NixOS unstable pour le moment. | 17:21:10 |
Anthony Rsl | Je viens de tester sur ma machine, j'arrive bien à lancer une VM QEMU depuis GNS3 avec mon installation avec une ISO TinyCore Linux. | 17:57:36 |
Anthony Rsl | Comme le module n'est pas dispo dans 23.11, j'importe le module GNS3 Server de mon dépôt nur-packages : https://github.com/anthonyroussel/nur-packages/blob/master/modules/nixos/gns3-server.nix | 17:58:37 |
Anthony Rsl | Et je l'importe dans ma config NixOS comme ceci : https://github.com/anthonyroussel/nixos-config/blob/main/modules/gns3/default.nix | 17:58:50 |
Rémy Grünblatt | Alors, comme ça: services.gns3-server = { enable = true; settings = { "Server" = { "host" = "0.0.0.0"; "port" = 3080; }; }; dynamips = { enable = true; }; vpcs = { enable = true; }; ubridge = { enable = true; }; }; (je suis sur 24.05 / master) | 19:11:14 |
Rémy Grünblatt | Il m'a fallu un petit systemd.services.gns3-server.path = [pkgs.qemu]; déjà, pour que qemu soit détecté | 19:12:13 |
Rémy Grünblatt | Je teste en VM ( nix build github:rgrunbla/GNS3-Server && ./result/bin/run-nixos-vm ) | 19:14:59 |
Rémy Grünblatt | si tu fais un systemctl cat gns3-server, tu vois bien libvirtd dans SupplementaryGroups ? | 19:15:29 |
Anthony Rsl | Oui j'ai bien SupplementaryGroups=libvirtd | 20:32:46 |
Anthony Rsl | J'arrive bien à reproduire le problème avec le dépôt github.com/rgrunbla/GNS3-Server | 21:02:18 |
Anthony Rsl | Mais ça se corrige en suivant la structure dans le README de nixos-generators: https://github.com/nix-community/nixos-generators?tab=readme-ov-file#setting-the-disk-image-size | 21:02:54 |
Anthony Rsl | Et après j'ai bien docker et libvirtd dans SupplementaryGroups avec votre projet dans le fichier result/system/etc/systemd/system/gns3-server.service | 21:04:06 |
Rémy Grünblatt | hm | 21:05:12 |
Anthony Rsl | Download patch | 21:05:50 |
Anthony Rsl | avec ceci j'ai bien le bon résultat | 21:06:57 |
Anthony Rsl | mais je n'ai pas trop l'explication | 21:07:25 |
Rémy Grünblatt | je vais tenter de simplement update le flake, on va voir… | 21:07:35 |
Rémy Grünblatt | merci en tout cas (et si je trouve la "vraie" raison je remets un message ici) | 21:09:51 |
Anthony Rsl | ah je viens de jeter à nouveau un coup d'oeil ça à l'air de venir de
virtualisation = {
forwardPorts =
[
{ from = "host"; host.port = 3080; guest.port = 3080; }
];
memorySize = 4096;
};
qui override tout virtualisation j'ai l'impressio
| 21:12:05 |
Anthony Rsl | * ah je viens de jeter à nouveau un coup d'oeil ça à l'air de venir de
virtualisation = {
forwardPorts =
[
{ from = "host"; host.port = 3080; guest.port = 3080; }
];
memorySize = 4096;
};
qui override tout virtualisation j'ai l'impression
| 21:12:14 |
Rémy Grünblatt | duh | 21:12:35 |
Rémy Grünblatt | je pensais qu'il allait merge | 21:12:45 |