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

GNS3 VM cannot be imported in latest versions of VMware #1184

Closed
AJNOURI opened this issue Oct 1, 2017 · 37 comments
Closed

GNS3 VM cannot be imported in latest versions of VMware #1184

AJNOURI opened this issue Oct 1, 2017 · 37 comments
Assignees
Labels
Milestone

Comments

@AJNOURI
Copy link
Contributor

AJNOURI commented Oct 1, 2017

On brand new windows installation + vmware installation, when trying to open an imported GNS3 VM:

selection_005_01_10

ezgif com-video-to-gif

@grossmj grossmj added the Bug label Oct 1, 2017
@grossmj
Copy link
Member

grossmj commented Oct 1, 2017

What VMware version did you use?

@grossmj grossmj added this to the 2.1 milestone Oct 1, 2017
@AJNOURI
Copy link
Contributor Author

AJNOURI commented Oct 1, 2017

14.0.0 build-6661328

@grossmj
Copy link
Member

grossmj commented Oct 1, 2017

Thanks, I suspect this problem is only with the newest version of VMware.

@AJNOURI
Copy link
Contributor Author

AJNOURI commented Oct 1, 2017

Indeed Jeremy, it works fine with the prior release 12.5.7

image

Maybe we should somehow inform users during GNS3 VM download.

@AJNOURI AJNOURI closed this as completed Oct 1, 2017
@grossmj
Copy link
Member

grossmj commented Oct 1, 2017

We need to figure this out. Let's keep that issue open for now ;)

@grossmj grossmj reopened this Oct 1, 2017
@grossmj
Copy link
Member

grossmj commented Oct 1, 2017

Seems this also happens with VMWare Fusion 10 too. Is this a temporary bug with the newest version of VMware or is this an issue with how we build the GNS3 VM.ova?

https://gns3.com/qa/gns-vm-_-vmware_unsupported-valu

@julien-duponchelle
Copy link
Contributor

julien-duponchelle commented Oct 1, 2017 via email

@AJNOURI
Copy link
Contributor Author

AJNOURI commented Oct 2, 2017

I have tested old GNS3 VMs it is the same behavior with VMWare 14.

@ziajka
Copy link
Contributor

ziajka commented Oct 4, 2017

Updating thread. It seems to that VMWare has dropped the support for ExtraConfig or it's a bug on WMware side. We will try to contact with VMWare and get an answer.

@tani10
Copy link

tani10 commented Oct 9, 2017

I had the same problem.The solution: First you install GNS3 VM.ova on VMWare 12 and then just upgrade to VMWare 14. It works fine.

@grossmj
Copy link
Member

grossmj commented Oct 12, 2017

I have posted on VMware forum about this problem: https://communities.vmware.com/message/2711239#2711239

@grossmj grossmj changed the title Unsupported value ethernet GNS3 VM cannot be imported in latest versions of VMware Oct 12, 2017
@grossmj
Copy link
Member

grossmj commented Oct 13, 2017

@jsicuran
Copy link

I did exactly what Tani10 mentioned "I had the same problem.The solution: First you install GNS3 VM.ova on VMWare 12 and then just upgrade to VMWare 14. It works fine."

No luck and it mucked up my VIRL setup too. I opened ticket with VMware and posted link to one of the other threads here about this. This is nonsense to pay for an in place upgrade to 14 and it breaks your other tools.

@jsicuran
Copy link

Here is what I posted at VMware for I just purchased the 14 upgrade last week. This is just unacceptable.
Plus I hear 12 will be EOL in Feb 18.

Note:I removed VMware key and it fixed it so now it runs but it blew up my Cisco VIRL and GNS 3 installations. This is unacceptable what kind of junk release is this. I rely on your product as a solid tool. I should not have to downgrade to get my other tools working because 14 has issues. See support thread at https://gns3.com/qa/unable-to-import-gns3-vm-2-0-3-i

@julien-duponchelle
Copy link
Contributor

We can strip network settings with that:
https://github.com/GNS3/gns3-vm/blob/master/fix_vmware_ova_network.py

But not sure why VMware dropped it. Could be intersting to see what is inside the file .ova when you export it in VMware 14

@ziajka
Copy link
Contributor

ziajka commented Oct 16, 2017

Hi @noplay ,

Yes, stripping that config makes no issue (ESXi release is without ExtraConfig and it can be imported).

I tried to export in VMware 14, basically ExtraConfig is dropped at all.

I'm thinking if we really need that ExtraConfig. We obtain IP in "a guest-way":

https://github.com/GNS3/gns3-server/blob/master/gns3server/controller/gns3vm/vmware_gns3_vm.py#L142

and only if it fails we fall-back to:

https://github.com/GNS3/gns3-server/blob/master/gns3server/controller/gns3vm/vmware_gns3_vm.py#L150

which requires correct order of interfaces.

You know maybe if there are any case that we really need it?

We're also thinking to modify VMX file before running GNS3 VM (after import).

Thanks and cheers,
Dominik

@ziajka
Copy link
Contributor

ziajka commented Oct 17, 2017

I think I was able to solve the issue, except hardware virt. enabled on default. Test VM will come with RC3 which should be in this week.

@tani10
Copy link

tani10 commented Oct 17, 2017 via email

grossmj added a commit that referenced this issue Oct 18, 2017
Set vhv.enable before run for VMware. Fixes #1184
@ziajka
Copy link
Contributor

ziajka commented Oct 19, 2017

This version should run on VMware 14 and older:

https://github.com/GNS3/gns3-gui/releases/download/v2.1.0rc3/GNS3.VM.VMware.Workstation.2.1.0rc3.zip

Please test and if works fine then I will close this issue.

@bigbigmo
Copy link

bigbigmo commented Oct 19, 2017

IT WORK!
But you need install same version on your local machine
Write pls actual link for downloading version 2.1.0rc3 for mac

@grossmj grossmj closed this as completed Oct 19, 2017
@Gauravism2017
Copy link

Gauravism2017 commented Oct 19, 2017

where i can get v2..1.3 for windows to be installed on local machine

@dwright726
Copy link

The matching local installation can be found here :)

https://github.com/GNS3/gns3-gui/releases/tag/v2.1.0rc3

@onpaws
Copy link

onpaws commented Oct 20, 2017

Would it possible to enable VT-x/EPT by default?
I just downloaded and installed 2.1.0rc3 image and noticed it seems to be off by default.

As you know this is necessary for best possible Qemu support.
kvm
image

macOS 10.13
VMware Fusion 10.0.1
GNS3 2.1rc3 + appliance

@onpaws
Copy link

onpaws commented Oct 20, 2017

The correct line to add to the .vmx (Virtual Machine definition file) is
vhv.enable = "TRUE"

I think we should be able to add it to the .OVF file inside the appliance

If possible seems good to provide the best possible Qemu support by default, no?

@grossmj grossmj reopened this Oct 21, 2017
@AJNOURI
Copy link
Contributor Author

AJNOURI commented Oct 21, 2017

works with rc3 VM

selection_010_21_10

@grossmj
Copy link
Member

grossmj commented Oct 21, 2017

@AJNOURI do you have KVM support in the VM?

@AJNOURI
Copy link
Contributor Author

AJNOURI commented Oct 21, 2017

Looks OK (had to check the option in VM processor)

image

@AJNOURI
Copy link
Contributor Author

AJNOURI commented Oct 21, 2017

By the way @grossmj
Looks like Vmware 14 uses different default location for VMs (C:\Users{user}\Documents\Virtual Machines)

and GNS3 looks for (C:\Users{user}\Documents\My Virtual Machines), that's why it cannot detect GNS3 VM nor its IP.

selection_011_21_10

I had to rename the default "Virtual Machines" to "My Virtual Machines" for GNS3 to detect GNS3 VM.

Should I open a new issue?

@grossmj
Copy link
Member

grossmj commented Oct 21, 2017

Yes please.

@onpaws
Copy link

onpaws commented Oct 23, 2017

@AJNOURI
You had to check the Virtualize VT-x/EPT checkbox yourself, right?
I'm suggesting it would be ideal if the appliance was already configured for that.

@grossmj
If you could please direct me to the repo for the GNS3 VM I'd be happy to try and submit a PR.

@ziajka
Copy link
Contributor

ziajka commented Oct 23, 2017

Hi @onpaws,

You're right, when you just load GNS3 VM (without using GNS3) then this option is not enabled. This is because VMware 14 doesn't allow to pass this value. I was trying different options and none of them were working. You may try to do this on your computer and see if you can export -> change VM -> import VM. Any ideas which may enabled it on default are very welcome.

In case you load VM via GNS3 then we add option "vhv.enable = "TRUE"" directly to VMX before start.
Cheers,
Dominik

@grossmj
Copy link
Member

grossmj commented Oct 23, 2017

@onpaws this is the GNS3 VM repo, please feel free to try: https://github.com/GNS3/gns3-vm

In case you load VM via GNS3 then we add option "vhv.enable = "TRUE"" directly to VMX before start.

Indeed, the only problem is when an user doesn't start the VM using GNS3, for example a remote GNS3 VM

@onpaws
Copy link

onpaws commented Oct 23, 2017

Gotcha, it sounds like VMware appliance files don't support this particular setting.
Would be nice to know if that's deliberate or support just may be lagging on VMware's side.

Has anyone filed a bug with VMware before?

@grossmj
Copy link
Member

grossmj commented Oct 23, 2017

I only posted on VMware community forums: https://communities.vmware.com/message/2714144#2714144

@AJNOURI
Copy link
Contributor Author

AJNOURI commented Oct 23, 2017

@onpaws , indeed I had to check it. It was unchecked by default.

@grossmj
Copy link
Member

grossmj commented Oct 24, 2017

VMware 14 ignores the vhv.enable parameter in the .ovf file inside the .ova. Can you confirm that the Virtualize VT-x/EPT is checked when starting the GNS3 VM using the GNS3 GUI?

@grossmj
Copy link
Member

grossmj commented Oct 24, 2017

I have tried on Windows. Importing the last GNS3 VM 2.1 RC3 into VMware 12.x: Virtualize VT-x/EPT was automatically checked as expected. I did the same with VMware 14 and the option was not checked after importing the OVA. Starting the VM from the GNS3 GUI and the option was checked.

I think we cannot do anything more from our side. Maybe VMware is going to fix this or provide a way to automatically activate the Virtualize VT-x/EPT setting on OVA import. Also, we are not the only ones affected by this problem: https://learningnetwork.cisco.com/thread/120789

@grossmj grossmj closed this as completed Oct 24, 2017
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

10 participants