NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.16k stars 14.18k forks source link

gns3-server: can't add VMWare Templates #343278

Open MrSom3body opened 1 month ago

MrSom3body commented 1 month ago

Describe the bug

Adding an VMWare Template to GNS3 is not possible due to VMWare Workstation not being found in the Path.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Open Preferences
  2. Go to VMWare VMs
  3. Click on New
  4. Get error

Expected behavior

It should be able to find my VMWare VMs and select them.

Screenshots

image

Additional context

None

Notify maintainers

@anthonyroussel

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.0, NixOS, 24.11 (Vicuna), 24.11.20240916.99dc878`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"home-manager, nixos-24.05"`
 - nixpkgs: `/nix/store/cjz8w4dgc3rd2n3dqv5c208vygndjyba-source`

Add a :+1: reaction to issues you find important.

anthonyroussel commented 1 month ago

Hello, You're correct, the GNS3 NixOS module currently does not support integration with VMware Workstation at the moment. I’d be happy to help you further, but unfortunately, I don't have a VMware Workstation license.

MrSom3body commented 1 month ago

Hey, Actually you don't need a license anymore for personal use. I think this change came a few months ago but I don't remember anymore

MrSom3body commented 1 month ago

Hey, is there any possibility to add the path for VMWare with a workaround until this issue gets resolved?

anthonyroussel commented 3 weeks ago

Hey, is there any possibility to add the path for VMWare with a workaround until this issue gets resolved?

@MrSom3body Sure, looks like it is possible.

You can try the following GNS3 Server configuration:

services.gns3-server.settings."VMware" = {
  host_type = "ws";
  vmnet_start_range = 2;
  vmnet_end_range = 50;
  vmrun_path = "${pkgs.vmware-workstation}/bin/vmrun";
};

It should configure GNS3 to find the path to the vmrun executable.

You might also need to add the gns3 system user into some kind of vmware group.