-
Notifications
You must be signed in to change notification settings - Fork 87
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
Support fetching the VM IP using prlctl #434
Conversation
Hi @bineesh-n , |
@legal90 SSH was not working in MacOS vms in M-Series chips, is the main problem. I changed the mechanism of getting the ip from "DHCP leases" to "Guest Tools", which will be more accurate. So I changed the IP detection mechanism for both type of VMs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current implementation with relying on the DHCP and "Shared" network has been done that way intentionally. The VMs not always have guest tools installed, or they could be out of date. Also, I'm not sure, in which version of Parallels Desktop the property ip_configured
became available and what are the requirements for it to be set (compatibility with guest tools).
Using the DHCP lease for detecting the VM IP on the early stage is a way more reliable way than using the host <-> guest integration via prlctl
.
Unfortunately, switching from the DHCP lease to prlctl
output can brake the plugin for a various use-cases. That's why I don't think it's a right track for fixing this issue.
I would rather suggest to fix the SSH via Shared network & DHCP for all use cases, including yours on M-Series chips.
I'm ready to help with that, but I don't have a possibility to test it on M-Series hardware.
Could you please file a new issue here with the details, describing the failure with the latest official provider version (v2.2.6)? Please also include this info:
- Does
/Library/Preferences/Parallels/parallels_dhcp_leases
exist on your mac? - Which IP vagrant tries to use? (It should be shown in
vagrant up
orvagrant ssh-config
output) - Which IP do you see in the output
prlctl list -f <uuid> --json
?
Thank you, @bineesh-n! Now I have a better understanding of the issue. Let's see if we will find any other ways to determine the IP of
The wrapper function |
Requirements : public key should be present in the guest, if using - key authentication. Also, host should be providing the private key with box / with default identity. Currently 'vagrant up' will fail to configure some shared directories - using ssh (After launching the VM). But 'vagrant ssh' will work perfectly.
60b0fa4
to
5a439eb
Compare
@legal90 Thanks for your suggestion. I've updated this pull request as per your suggestions. |
@bineesh-n Thank you! I'll check it later today 👍 |
@bineesh-n I will run acceptance tests and release a new version of |
@bineesh-n I released a new version , v2.3.0 |
@legal90 No, it's not working. |
@bineesh-n Oh, sorry about that! My bad - I didn't test it properly. |
Adding support for 'vagrant ssh' for pvm and macvm.
Requirements : public key should be present in the guest, if using - key authentication. Also, host should be providing the private key with box / with default identity.
Currently 'vagrant up' will fail to configure some shared directories - using ssh (After launching the VM). But 'vagrant ssh' will work perfectly.