-
Notifications
You must be signed in to change notification settings - Fork 78
Landrush doesn't start with Vagrant 2.2.0 on VMWare Fusion #334
Comments
I would expect at some Landrush trace to be in the log, provided of course the configuration hooks for Fusion get triggered - landrush/lib/landrush/plugin.rb Line 36 in e10f684
A couple of things I would try:
|
Yeah, I was thinking the same. So I ran with [...]
==> default: Machine booted and ready!
INFO warden: Calling IN action: #<Landrush::Action::InstallPrerequisites:0x000000010226a090>
DEBUG ssh: Checking whether SSH is ready...
[...]
INFO warden: Calling OUT action: #<Landrush::Action::InstallPrerequisites:0x000000010226a090>
[...]
[successfully booted box; end]
The one thing I haven't done yet is replicating the whole situation on a completely different host machine. |
So it seems these hooks are working at least. What version of VMWare Fusion are you using and more importantly which Vagrant plugin do you have installed? Do you use the latest vagrant-vmware-desktop plugin? As far as I understand there have been some changes on how VMware and Vagrant integrate - https://www.hashicorp.com/blog/introducing-the-vagrant-vmware-desktop-plugin. It might be that due to the new plugin further changes are needed to get Landrush working again. Unfortunately, support for Fusion has always been best effort, since one needs licences for VMWare as well as the Vagrant plugin. For the latter there is not even a trial version available. Looking at the gist, I am wondering whether the Landrush hooks run too early, but that's atm just a guess. |
I looked at this again just now to see if it was still an issue with the collection of moving parts. I can confirm that it's still an issue with: VMWare Fusion: 10.1.6 Can you suggest somewhere I could go looking to see if I can solve this? |
I'm happy to say I've worked out what the problem is here. It is related to the renaming of the Vagrant VMware Plugin, which explains why the hooks just never get called, see: landrush/lib/landrush/plugin.rb Lines 35 to 39 in bfef5eb
These are now in the The solution here is to rename those constants. We'll also need to rename the constant in here too:
|
A pull request would be great! :) I'm not aware of the same issue on Parallels, can you verify please? |
Great! I'll get on with that. I'm not able to test with Parallels, and I'd expect that to be unrelated to this particular issue. The interesting bit with Parallels is how it writes a warning to the user; any change we make would likely be breaking unless the end-user upgraded all of Vagrant from when it was a Fusion specific provider. What do you think? |
On 2016-03-26, HashiCorp released the VMware Desktop Plugin, which replaced the existing VMware Fusion implementation. With the rename, the hooks that Landrush needs to start services can no longer be called. Renaming those makes those work again. Fixes vagrant-landrush#334.
Sorry @nickcharlton , I didn't see your comment here before. The warning you mentioned is this? landrush/lib/landrush/action/common.rb Lines 49 to 51 in bfef5eb
|
Ah yes, that's the one. I think I mentioned this on #358, but it's been long enough I think we can get away with not doing this (I'm happy to make a change if you think otherwise, of course.) |
A warning like that would make sense. |
I just went to look into adding that warning and hit a snag. Looking at: landrush/lib/landrush/action/common.rb Lines 45 to 47 in bfef5eb
This will now catch the lack of support, but with an error like:
Which wouldn't strictly be true, we do, you just need to upgrade to the one with a new name. I'm thinking here that we could:
What do you think? |
@nickcharlton I honestly don't know. Leaving it as is will probably result in some user being confused. My suggestion: leave it as is, but document this somewhere else. Maybe the README? @hferentschik do you want to weight in on this? |
Hah yeah, I had the same problem! I think it's reasonable to document it, so I'll wait if there's another reply before just doing that on the PR. |
I ended in the unfortunate situation where I uninstalled the old vmware plugin trying to fix an issue only to find I can't re-install and have had to use the new desktop plugin. I was using vmware-hostmanager which is similarly afflicted, but there is no activity there. I found landrush this evening but found it wasn't working, and now I know why. I will be very happy if you release a new version soon that works with the new vmware-desktop plugin. I've been tearing my hair out for days :) Tony. |
I documented the change in the README, in the install section as that seemed a good way to go about it. Let me know if there's a better way to do this! |
When bring up a basic Vagrant box using VMWare Fusion, Landrush doesn't appear to start (at all). I am able to start the daemon manually, but when doing that, the IP/hostname isn't configured.
I've confirmed that to bring up the same configuration on VirtualBox (5.2.20) works successfully.
This has worked in the past, so I figure it's a regression somewhere. What do you recommend I look into?
Box:
Log output:
Vagrant: 2.2.0
VMWare Fusion: 10.1.2
Landrush version: 1.3.0
OS: macOS Mojave (10.14.1)
The text was updated successfully, but these errors were encountered: