-
Notifications
You must be signed in to change notification settings - Fork 264
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
VMware networking integration FAILS to work in GNS3 #2109
Comments
Well... Only VMnet0 seems to be changed. VMnet0 should not be changed; I consider that a bug. Of the non-standard VMnets, these all appear to be changed as papparpi says (I could not figure out how it works in gns3-server-master\gns3server\utils\vmnet.py because I can not read python). Now, if a VMnet has a Lan Segment defined, those VMnets are also changed; I consider this is a definite "bug." The use of Lan Segments with VMware Workstation Pro is described wonderfully by Marc Siegel here: However the only network design I can think of is: ....But I see no chance of me ever creating such a design. But yeah, that would be a bug. Edit: For windows 10, gns3 2.2.31, the check box for Edit - Preferences - VMware VM - select a vm - Network - Allow GNS3 to override non custom VMnet Adapters |
So for the attached diagram, the .vmx file for Ubu-2022-Silva-S6 will show: I looked a few days ago and this "pvn" seems to be a proprietary VMware terminology. That Lan Segment is definitely outside of GNS3Land and GNS3 is breaking it. But it does not affect me. |
CLARIFICATION regarding vmware network reassignment: I am using non-default vmnet-s (realistically, any lab topology will utilise several host-only vmnets (i.e.: vmnet 2-7 and possibly beyond). So, can we extend this investigation to non-default vmnet-s NOTE: Based on my testing, the changing of vmnets never happens to VM-s running in vmware when they are NOT yet added as templates to GNS3 (and used in projects). I have observed the following scenarios: SCENARIO 1: GNS3 lab topology is started but the VM is not yet started. At a glance, we are in vmnet 5 (see vmware WS / VM overview screenshot) In reality, when we edit virtual machine settings, we are in vmnet 0 ??? (see vmvare WS / edit VM settings screenshot) This is not even readily apparent at first glance - only if you go into VM settings. SCENARIO 2: In vmware WS: SCREENSHOTS: AFTER VM is started in GNS3 lab, |
As far as the topology that I am using: LAB 2:
LAB3: Every time, the issue is with the clients (VMware WS VM-s) and GNS3 not playing nice with each other. Here is a screenshot of LAB 1 (happened to be open at the time) |
The following vmnet confirgurations from the .vmx file should not be changed An ethernet connection type in VMware Workstation Pro 16.2.1 for a bridged interfaces is NOT defined or is NULL or whatever term they use for python. I have no information on any other VMware version. But the string .connectiontype = "bridged" I see no other indication that an interface is "bridged" in the vmx file. Here is ethernet1 (a nat interface) and ethernet2 (a bridged interface). An ethernet connection type in VMware 16.2.1 for a bridged interfaces is not defined as show below (I will just copy and paste 2 of my four ethernet assignments from the .vmx file) ethernet1.addresstype = "generated" In vmware.py, this line looks to be the culprit, if not self._use_any_adapter and connection_type in self._vmx_pairs and self._vmx_pairs[connection_type] in ("nat", "bridged", "hostonly"): There is no "bridged" in a 16.2.1 vmx file and there is no "pvn" in that vmware.py statement. How the no "bridged" in a 16.2.1 situation should be handled is unknown to me (but I could figure it out in under 8 hours) I renamed the vmx as a txt file so you can go through the text file if you so desire. As far as gns3 changing network adapters in vmware that are not, pvn, hostonly, nat, or bridged, it appears to be cosmetic to me. |
Cosmetic can only be tested after "pvn" is entered into that vmware.py statement. Two VMware VMs in a VMware Workstation Pro 16.2.1 used in a gns3 project that are directly connected to each other on a point-to-point link, from my interpretation, must be connected via a VMware Workstation Pro 16.2.1 lan segment. Edit: It will be tricky to use a lan segment because the link is not in the gns3 topology and you have to go back to Siegel's post and bring in things like powershell and vmnetsniffer like he does |
The fact that GNS3 erroneously changes a VMware WS Pro 16.2.1 bridged adpater to a differnt VMnet makes this a bug. After the pvn situation gets fixed, I recommend
|
At this point let's wait for the developer team to pick this up - I would like to hear their feedback on this as well. |
There is quite a few situations the gns3 developers will have to handle and....they are going to replace ubridge with some kind of linuxbridge thing in the near future...............so, their hands arefull |
I am not going to get into a back-and-forth over a definition of cosmetic.
When I need to model real-life scenarios (involving end-host VM-s), this arbitrary/GNS-driven reassignment of vmnets is impacting network connectivity and so, for me it is absolutely central that I should be able to reliably connect vmware VM-s in a predictable and repeatable manner. I do think that GNS3 has a lot of potential as a platform for uniting virtualisation platforms / network emulators I understand that the developers have their hands full, but I think my original ask has been lost in the chatter. I will restate it here:
In other words: I remember Julien Duponchelle once commenting that GNS3 is like vSphere but for network virtualisation. @ GNS3 Dev team |
First off sorry this is happening. I know is pretty frustrating when a lab doesn't work. It would drive me crazy if the attached networks kept changing like this. I'll poke around in the source. I don't run a GNS3 VM but i'll see if I can find something for you. |
Edit: Joe already pointed this out and the exact line of the test. Does seem interesting that bridge type is really "pvn" and not bridge.
|
I just read the GNS3 docs on vmware. Had no idea it worked like this. |
@papparpi The virtualizataion software is an extremely ambiguous term because:
@spikefishjohn The "bridge" situation I consider a bug because it probably once worked and I suspect vmware changed the behavior and "noone" noticed it in gns3 The Lan segment I consider an enhancement because it probably did not exist when gns3 integrated vmware workstation and "noone" notice that vmware created it - except Marc Siegel. The implementation of gns3 modifying the custom adapters in the Virtual Network setting of VMware Workstation, excluding the Lan segment situation, is kooky.....But, maybe that's the only way the gns3 developers could do it at the time. This situation is between the developers and @papparpi because the gns3 developers may or may not be able to fix the kookiness. |
up route add 172.16.0.0/16 via 172.16.0.1 dev eth0 2.0.0rc3 31/03/2017@grossmj
I can not find Julien's guidelines for people who want to contribute GNS3 development. But, I have I just spent 12 hours over 10 days helping out Francisco with this kookiness. VMware Workstation VMs should be not in GNS3land and not under GNS3 developer responsibility, nor manipulation. As far as not being able to export a project with VMware Workstation VMs, I do not consider VMware Workstation VMs to be part of a single GNS3 project. The VMware user must export their own VMware VMs and pair them with an exported GNS3 project on their own. Only certain VMs can be promoted from a Qemu VM to a VMware VM. As far as the gns3.com documentation and the youtube videos that use VMware Workstation VMs as GNS3 VMware VMs, that is not my responsibility. Presently, I view the whole GNS3 VMware integration a completely illegal design technique (from a freshman level of college student course) and I strongly suspect I can find a published book where the author says do not do what is being done by breaking encapsulation. I recommend withdrawing support, in totality, GNS3 VMware VMs. |
For the most part, I expect this will not really be an issue due to the
local server on windows and OS X will be going away in GNS3 3.0.
The ability to integrate a VMware WS/Virtualbox VM into a GNS3 projects
topology is tied to the local server capability currently, according to my
understanding. This conceivably could be an issue still on Linux host
systems.
Without a local server to manage ubridge and make the api calls to vmrun
there is not really a way to integrate external VM’s.
I know this is an issue for some people, however, I think the dev teams
time is better spent on 3.0.
On Tue, Sep 6, 2022 at 08:31 josephhiggins ***@***.***> wrote:
up route add 172.16.0.0/16 via 172.16.0.1 dev eth0
up route add 10.0.0.0/8 via 172.16.0.1 dev eth0
sudo route add -net 10.0.0.0/8 via 172.16.0.1 dev eth0
sudo route add -net 10.0.0.0/8 via 172.16.0.1 eth0
post-up
cat /etc/debian_version
post-up route add -net 10.0.0.0 netmask 255.0.0.0 gw 172.16.0.1
2.0.0rc3 31/03/2017
@grossmj <https://github.com/grossmj>
I recommend this request should *not* be supported because:
1. I do not believe there are any publicly documented api information
published by vmware for vnetlib64. Although,
I have seen the hack a vmware community user posted, circa 2009.
2. reading VMware's .vmx file is at best a sketchy, borderline, design
technique. There is no:
vmrun -T WS GetNetworkAdapterSchema thevmxfile.vmx
3. The gns3 cloud implementation, circa 2.0.0rc3 31/03/2017,
post-dates gns3's integration with vmware,
circa ## 1.4.0alpha1 09/07/2015
I can not find Julien's guidelines for people who want to contribute GNS3
development. But, I have
read Contributing.md
I just spent 12 hours over 10 days helping out Francisco with this
kookiness.
VMware Workstation VMs should be not in GNS3land and not under GNS3
developer responsibility, nor manipulation.
VMware Workstation VMs should be accessed via the GNS3 Cloud.
As far as not being able to export a project with VMware Workstation VMs,
I do not consider VMware Workstation VMs to be part of a single GNS3
project. The VMware user must export their own VMware VMs and pair them
with an exported GNS3 project on their own.
Only certain VMs can be promoted from a Qemu VM to a VMware VM.
As far as the gns3.com documentation and the youtube videos that use
VMware Workstation VMs as GNS3 VMware VMs, that is not my responsibility.
Nor is the "Use as a linked base VM" (experimental) anything that I am
concerned with.
Presently, I view the whole GNS3 VMware integration a completely illegal
design technique (from a freshman level of college student course) and I
strongly suspect I can find a published book where the author says do not
do what is being done by breaking encapsulation.
I recommend withdrawing support, in totality, GNS3 VMware VMs.
—
Reply to this email directly, view it on GitHub
<#2109 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APZX5IYBICVSK2MWFAN7LPLV442TFANCNFSM6AAAAAAQCJZ7B4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Ean L. Towne
***@***.***
|
@ean, |
Other emulation products on the market like EVE-NG, Cisco CML are only focused on Qemu/KVM integration which offers great support for linked clones VMs. As now the linked clones VM support for VirtualBox and VMWare in GNS3 is stated as experimental. Also the in GNS3 registry most of the appliances are provided in qcow2 format with only few using vmdk disks for which Qemu has good support ( they can be easily converted to qcow2). VirtualBox and VMWare are good for small topologies using individual VMs (Linux, Windows etc) and not recommended to large topologies which involve dozens of networking devices like routers, switches etc. In my opinion maintaining support for these platforms delays the development of other useful features which GNS3 can offer due to bugs and support required by users. |
I am very happy that @grossmj has added this as a 2.2.35 milestone. May I just say that while I appreciate the diversity of opinion that has stemmed from my original request and I enjoy the plethora of suggestions as to what course GNS3 should steer as regards this topic, I would also love to hear what the the GNS developer team have got to say about this... Personally, I have always thought that what sets GNS3 apart from EVE-NG and Cisco CML crowd (these are mentioned in the previous post) is that GNS3 has dared to go where there virtualisation platforms dare not (vmware and virtual box integration, to name but a few). |
It should be possible to tell GNS3 to only use a range of vmnet interfaces. Please try to edit
Please let me know if this solution solves your issue. |
@papparpi have you tried my solution? |
Hi Jeremy, |
Community link: https://gns3.com/community/discussions/vmware-networking-integration-fails-to-work-in-gns3
ISSUE:
--> GNS3 connects VMnets in order: top down / lowest to highest (whichever way of putting it makes more sense to you) REGARDLESS of which vmnet has been assigned to a VM inside Vmware Workstation.
DETAILS:
The issue is that
For example:
You assign vmnet 4 to a VM in Vmware Workstation and when you spin up the VM in a GNS3 topology, GNS3 reassigns the VM's interface to the first available vmnet (starting the assignments at vmnet 2 or whichever your lowest vmnet number is).
As you spin up more VM-s in GNS3, these will get assigned to vmnet 3, vmnet 4, vmnet 5, etc. regardless of which vmnet was originally assigned in vmware.
Changing the vmnet BACK manually inside vmware WS to original assignment results in NO connectivity inside GNS3 between GNS3 appliances and Vmware VM-s in your desired vmnet because --> GNS3 does not notice this manual reassignment.
(desired = the one that you originally set in Vmware WS).
EXPECTED resolution:
Can this be done?
The text was updated successfully, but these errors were encountered: