Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Appliance ? #2271

Closed
Raizo62 opened this issue Jun 21, 2023 · 19 comments · Fixed by #2272
Closed

Import Appliance ? #2271

Raizo62 opened this issue Jun 21, 2023 · 19 comments · Fixed by #2272
Labels

Comments

@Raizo62
Copy link
Contributor

Raizo62 commented Jun 21, 2023

Hi

Perhaps i have do a wrong thing, and the bug comes from me.

But, the code of gns3server contains appliances files.
When i configure GNS3 for the first time, my account contains no appliance

On GNS3, in "New Template", "Install on appliance from the GNS3 server", there are no config, and i must update from online registry.
This updates my account folder with them.

So, why does gns3server contains appliances files if it must upload them ?
Why does gns3server not send these locales files to GNS3-gui ?

@Raizo62 Raizo62 added the Bug label Jun 21, 2023
@lovrenco
Copy link

I downloaded Virtualbox and ESXi version from https://www.gns3.com/software/download-vm

It imported OK, but there is no way to import appliance, at least not obvious one.
I looked at web UI, and in config on Ubuntu host.

https://docs.gns3.com/docs/using-gns3/beginners/install-from-marketplace/

Some sort of written guide or better menu for this would be helpful.

@josephmhiggins
Copy link

@lovrenco,
You have to create your own post and delete your post in this thread..........
The reason is I can write code to take a screenshot, save the file, send the file to powerpoint, put labels in the powerpoint slide, save the powerpoint slide to a file, put the slide into a word document....In other words, it will make it easy enough for me to write a guide. But, I have to see what the developers are doing with any updates to documentation, vis a vis gns3 version 3.0. By you putting your thread in Raizo's thread - it took me 5 days to find it from your original gns3 community board post.

@grossmj
Copy link
Member

grossmj commented Jul 6, 2023

@Raizo62

The server installs the appliances only when its version is more recent than the previous one. You can force this if you edit ~/.config/GNS3/2.2/gns3_controller.conf and remove the version like this:

Image

Then you can restart the GNS3 server and you should see that the appliances are installed in the ~/.config/GNS3/2.2/appliances folder.

@Raizo62
Copy link
Contributor Author

Raizo62 commented Jul 14, 2023

This morning, i have build the last version 2.2.
I have reset the GNS3's config, to create a new one
I have no file in ~/.config/GNS3/2.2/appliances
I must update from online registry

So, either the files in gns3server are useless, or there is a bug in the creation, or I did not understand something

@grossmj
Copy link
Member

grossmj commented Aug 2, 2023

So, either the files in gns3server are useless, or there is a bug in the creation, or I did not understand something

There must be a bug somewhere. You should see the following message first time the server copies the appliances:

2023-08-02 17:46:38 INFO appliance_manager.py:102 Installing built-in appliances in '/home/xxx/.config/GNS3/2.2/appliances'

I have pushed a fix, hopefully that's the reason it does not work on your side.

@Raizo62
Copy link
Contributor Author

Raizo62 commented Aug 5, 2023

No, it doesn't work :-(

the folder "/usr/local/lib/python3.9/dist-packages/gns3server/appliances/" is not empty

-rw-r--r-- 1 root root  1879  5 août  08:20 6wind-turbo-router.gns3a
-rw-r--r-- 1 root root  2639  5 août  08:20 a10-vthunder.gns3a
-rw-r--r-- 1 root root   785  5 août  08:20 aaa.gns3a

I erase my GNS3 config

I run GNS3 and create a new default config

The appliance folder is empty :

user@raizo:~$ ls -l GNS3/appliances
total 0

The appliance folder in the GNS3 config is also empty :

user@raizo:~$ ls -l /home/user/.config/GNS3/2.2/appliances
total 0

Here the logs generated by GNS3 ( i added the txt extension to bypass the limitation of github) :
GNS3_config.tgz.txt

I must click on the button "Update from online registry" to have them

@grossmj
Copy link
Member

grossmj commented Aug 5, 2023

Please can you try again? You should see something similar to this: Comparing controller version 2.2.42.dev2+f4dab148 with previous version 2.2.42.dev1+f4dab148

@Raizo62
Copy link
Contributor Author

Raizo62 commented Aug 6, 2023

gns3_server.log-2023-08-06 08:39:44 INFO web_server.py:318 Starting server on localhost:3080
gns3_server.log-2023-08-06 08:39:45 INFO __init__.py:70 Load controller configuration file /home/user/.config/GNS3/2.2/gns3_controller.conf
gns3_server.log-2023-08-06 08:39:45 INFO __init__.py:74 Controller is starting
gns3_server.log-2023-08-06 08:39:45 INFO __init__.py:311 Installing base configs in '/home/user/GNS3/configs'
gns3_server.log-2023-08-06 08:39:45 INFO __init__.py:324 Installing built-in disks in '/home/user/GNS3/images/QEMU'
gns3_server.log:2023-08-06 08:39:45 INFO __init__.py:254 Comparing controller version 2.2.42.dev2 with config version 2.2.42.dev2
gns3_server.log-2023-08-06 08:39:45 INFO compute.py:64 Create compute local
gns3_server.log-2023-08-06 08:39:45 INFO compute.py:364 Connecting to compute 'local'
gns3_server.log-2023-08-06 08:39:45 INFO web_log.py:206 ::1 [06/Aug/2023:08:39:45 +0000] "GET /v2/compute/capabilities HTTP/1.1" 200 562 "-" "Python/3.9 aiohttp/3.8.5"
gns3_server.log-2023-08-06 08:39:45 INFO notification_handler.py:50 New client has connected to compute WebSocket
gns3_server.log-2023-08-06 08:39:45 INFO compute.py:431 Connected to compute 'local' WebSocket 'http://localhost:3080/v2/compute/notifications/ws'

GNS3_config.tgz.txt

@nuqleo
Copy link

nuqleo commented Aug 10, 2023

With gns3-server 2.2.42 and appliances located in /usr/lib/python3.11/site-packages/gns3server/appliances/ at GUI first start I still se no available appliances from GNS3 server without updating from online registry.

@josephmhiggins
Copy link

What operating systems are in play here?
i use gns3 2.2.39 with windows 10 and the GNS3 VM with VMware Workstation 16.2.5 as the underlying hypervisor.
There is no problem here.
My script to start gns3 on Windows is extremely powerful on logging.
I can switch to 2.2.42 on Windows and then Ubuntu 23 tomorrow - if this is not a Mac problem.
If this is a Mac problem....

@nuqleo
Copy link

nuqleo commented Aug 10, 2023

I use Fedora packages with local gns3server.

@grossmj
Copy link
Member

grossmj commented Aug 12, 2023

@nuqleo

Please can you show the logs after starting the GNS3 server?

python3 -m gns3server --local

Thanks.

@grossmj grossmj transferred this issue from GNS3/gns3-gui Aug 12, 2023
@grossmj grossmj linked a pull request Aug 12, 2023 that will close this issue
@nuqleo
Copy link

nuqleo commented Aug 12, 2023

$ python3 -m gns3server --local
2023-08-12 07:20:05 INFO run.py:217 GNS3 server version 2.2.42
2023-08-12 07:20:05 INFO run.py:219 Copyright (c) 2007-2023 GNS3 Technologies Inc.
2023-08-12 07:20:05 INFO run.py:222 Config file /home/liveuser/.config/GNS3/2.2/gns3_server.conf loaded
2023-08-12 07:20:05 WARNING run.py:228 Local mode is enabled. Beware, clients will have full control on your filesystem
2023-08-12 07:20:05 INFO run.py:235 HTTP authentication is enabled with username 'admin'
2023-08-12 07:20:05 INFO run.py:241 Running with Python 3.11.0 and has PID 3077
2023-08-12 07:20:05 INFO run.py:77 Current locale is en_US.UTF-8
2023-08-12 07:20:05 INFO web_server.py:318 Starting server on localhost:3080
2023-08-12 07:20:05 INFO __init__.py:69 Load controller configuration file /home/liveuser/.config/GNS3/2.2/gns3_controller.conf
2023-08-12 07:20:05 INFO __init__.py:73 Controller is starting
2023-08-12 07:20:05 INFO __init__.py:310 Installing base configs in '/home/liveuser/GNS3/configs'
2023-08-12 07:20:05 INFO __init__.py:323 Installing built-in disks in '/home/liveuser/GNS3/images/QEMU'
2023-08-12 07:20:05 INFO __init__.py:253 Comparing controller version 2.2.42 with config version 2.2.42
2023-08-12 07:20:05 INFO compute.py:63 Create compute local
2023-08-12 07:20:05 INFO compute.py:363 Connecting to compute 'local'
2023-08-12 07:20:05 INFO web_log.py:206 ::1 [12/Aug/2023:11:20:05 +0000] "GET /v2/compute/capabilities HTTP/1.1" 200 553 "-" "Python/3.11 aiohttp/3.8.5"
2023-08-12 07:20:05 INFO notification_handler.py:50 New client has connected to compute WebSocket
2023-08-12 07:20:05 INFO compute.py:430 Connected to compute 'local' WebSocket 'http://localhost:3080/v2/compute/notifications/ws'

@grossmj
Copy link
Member

grossmj commented Sep 6, 2023

Thanks, I have fixed the issue and the fix will be included in v2.2.43. Please comment back if you still have the problem.

@grossmj grossmj closed this as completed Sep 6, 2023
@Raizo62
Copy link
Contributor Author

Raizo62 commented Sep 7, 2023

No, it doesn't work on my system :-(
@grossmj : On August 16, I shared with you an ISO of the system so that you can test it live. Have you received it ?
( @grossmj : Have you see my post on vpcs [ issue arp and apple ] ? )

@grossmj
Copy link
Member

grossmj commented Sep 7, 2023

No, it doesn't work on my system :-(

Please can you double-check? there is a new location for appliance files: ~/.local/share/GNS3/appliances

@grossmj : On August 16, I shared with you an ISO of the system so that you can test it live. Have you received it ?

No please can you share it again?

Have you see my post on vpcs [ issue arp and apple ] ?

Yes, I will reply.

@Raizo62
Copy link
Contributor Author

Raizo62 commented Sep 7, 2023

No, it doesn't work on my system :-(

Please can you double-check? there is a new location for appliance files: ~/.local/share/GNS3/appliances

All right. You are right. I built the latest version and it works :-)

@nuqleo
Copy link

nuqleo commented Sep 19, 2023

With gns3-gui-2.2.43 there are files in ~/.local/share/GNS3/appliances the same as in /usr/lib/python3.11/site-packages/gns3server/appliances.
Will the files in directory ~/.local/share/GNS3/appliances be synced after the server is updated?

@grossmj
Copy link
Member

grossmj commented Sep 20, 2023

The first time the server starts and if this is a new version then all appliances files are copied from /usr/lib/python3.11/site-packages/gns3server/appliances to ~/.local/share/GNS3/appliances. Any update will be done in the ~/.local/share/GNS3/appliances` directory if you sync the appliance files with the GNS3 registry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants