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

2.2 : the variable %console-port% #2804

Closed
Raizo62 opened this issue May 30, 2019 · 4 comments
Closed

2.2 : the variable %console-port% #2804

Raizo62 opened this issue May 30, 2019 · 4 comments
Assignees
Labels
Milestone

Comments

@Raizo62
Copy link

Raizo62 commented May 30, 2019

Hi

I believe that GNS3-gui doesn't show the variable %console-port% in the tips of "Additional setting" of Qemu.

I have a problem with the value of this variable when the console type of the VM is "none". The value of the console port is "none" : it is not a number, then qemu-system-x86_64 doesn't like it and stop.
I have tried with 0 but qemu-system-x86_64 doesn't like it too because it wants that the cid is > 2.

Can you create a variable %guest-cid% which is equal to %console-port%. But if the %console-port% is "none", %guest-cid% is equal to 3 (+ an increasing number if you have that, to identify each VM)

(PS : i have do a pull request on vpcs)

@Raizo62 Raizo62 added the Bug label May 30, 2019
@grossmj grossmj added this to the 2.2 milestone May 31, 2019
@grossmj grossmj self-assigned this May 31, 2019
grossmj added a commit to GNS3/gns3-server that referenced this issue Jun 4, 2019
@grossmj
Copy link
Member

grossmj commented Jun 4, 2019

I have added a %guest-cid% variable however this will always be an unique integer between 3 and 65535 whatever the %console-port% value is.

@grossmj grossmj closed this as completed Jun 4, 2019
@Raizo62
Copy link
Author

Raizo62 commented Jun 4, 2019

Sorry, I'm annoying you. I prefer that %guest-cid% is equal to %console-port% because i can easily identify each guest with this number (the popup of gns3 shows this value).
I have not tested yet, but i suppose that with your unique integer it is not the same.

(We try to write in C++ a virtual wifi which uses vsock to communicate. And i hope that i will can write a script which uses your API to know the coordinate of each VM)

@grossmj grossmj reopened this Jun 4, 2019
@grossmj
Copy link
Member

grossmj commented Jun 5, 2019

Ok should be good now, %guest-cid% is equal to %console-port% by default.

GNS3/gns3-server@61c87e5

@grossmj grossmj closed this as completed Jun 5, 2019
@Raizo62
Copy link
Author

Raizo62 commented Jun 10, 2019

Thank you :-)

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

No branches or pull requests

2 participants