-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
WinRM usage not fixed in latest release on Pop_OS (Ubuntu derivative) #13211
WinRM usage not fixed in latest release on Pop_OS (Ubuntu derivative) #13211
Comments
I also obtained and reproduced this issue on a machine running Ubuntu 23.04, same basic configuration as above. |
I have a working theory about what might be going on. The patch has the following block:
This checks for the presence of the OpenSSL development libraries on the machine, and if they exist, builds the helper; but if they do not exist, it creates a zero-byte file where the helper would go. The .deb and .rpm packages have this zero-byte file:
I think the machine that's building the release packages does not itself have the development OpenSSL library installed, so it's taking the "touch an empty file" code path, and that empty file is being included in the packages. I did try building Vagrant from source enough to get the actual version of this file:
but I was unable to figure out where to put it in the It does seem to get read:
but just having it there isn't doing the trick, and I don't understand Ruby load paths well enough to troubleshoot any further. |
@adamc-formlogic Thanks for reporting this. Some modifications to the extension and the package build have resolved this. A dev build with these changes included is available here. If you have any issues with it, please let me know. Cheers! |
Hi ! @chrisroberts The docs (https://developer.hashicorp.com/vagrant/docs/installation/source) doesn't mention how to compile it for windows, any tips about how to use it using the |
@hedocode Are you running Vagrant from source? |
@chrisroberts Does this fix make it possible to undo the OpenSSL legacy providers work-around? I am testing the updated package now. It seems to work on Ubuntu 20.04 LTS, on which I also encountered the problem despite the different OpenSSL version. I've moved on to 22.04 (with out removing openSSL legacy providers), and it also appears to get rid of the error. FWIW, when I opened #13216, I had searched github but this ticket did not seem relevant based on the summary I saw in the search results. |
@salderma Yes, this removes the need for attempting to have them loaded via the configuration file. Instead a small extension is used to load them when Vagrant starts up. |
@hedocode If you are running from source, you can build the extension by running |
Thanks a lot ! I'm testing this right now |
I tested this and it worked great. Thanks so much for your help and for the quick fix! |
When version 2.3.8 will be released? |
I can also confirm the dev build fixed the issue. I was using 2.3.7 and was battling with the problem for 2 weeks. |
Got the issue, and also confirm this works well with the 2.3.8 for Windows (this development build) |
I believe it is almost about time to release. I cannot wait for. |
Hello,
I am seeing the same behavior as #13076 still, even though I am running the latest version of Vagrant. I believe I have enabled the legacy OpenSSL provider as described in this issue:
I am able to do other things that require the legacy provider:
But running WinRM things like
vagrant rdp
still fails with theDigest initialization failed: initialization error
message.Debug output
Debug log gist: https://gist.github.com/adamc-formlogic/2c77f6b5bc0b1eeeb6a354f5f0955937
Expected behavior
vagrant rdp
should begin an RDP session to the running Windows VM.Actual behavior
vagrant rdp
failed with the following error:Reproduction information
Vagrant version
Host operating system
Guest operating system
Windows Server 2016
Steps to reproduce
Vagrantfile
belowvagrant up
vagrant rdp
Vagrantfile
The text was updated successfully, but these errors were encountered: