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

'vagrant ssh' fails with macvm boxes #435

Closed
bineesh-n opened this issue Mar 20, 2023 · 5 comments · Fixed by #434
Closed

'vagrant ssh' fails with macvm boxes #435

bineesh-n opened this issue Mar 20, 2023 · 5 comments · Fixed by #434

Comments

@bineesh-n
Copy link
Contributor

The 'vagrant ssh' command fails for macvms with latest M-series chips. Their entries are not present in /Library/Preferences/Parallels/parallels_dhcp_leases file, so ipv4 address is empty (it fails to detect whether the system started).

More Info :
IP address correctly displayed with "prlctl list -f --json" option.

@legal90
Copy link
Collaborator

legal90 commented Mar 20, 2023

@alevlasu @romankulikov Can we please get some insights from Parallels / Alludo here?

Is it expected that .macvm VMs don't have their IP listed in /Library/Preferences/Parallels/parallels_dhcp_leases, or maybe there is another file for that? Is there any other way to determine the IP of such VMs except prlctl list call?
Thank you!

@bineesh-n
Copy link
Contributor Author

@legal90 yes, it is expected. Macvms are our VMs using latest apple virtualization SDK. The DHCP server for such VMs are not controlled by parallels, so we cannot put the entry in a leases file.

IPs of macvms available in '/private/var/db/dhcpd_leases', but we will remove the custom network mechanisms sooner or later (as per discussion with management), so I don't think using leases will be a good idea (for pvms specifically).

@bineesh-n bineesh-n linked a pull request Mar 20, 2023 that will close this issue
@romankulikov
Copy link
Collaborator

@alevlasu @romankulikov Can we please get some insights from Parallels / Alludo here?

Is it expected that .macvm VMs don't have their IP listed in /Library/Preferences/Parallels/parallels_dhcp_leases, or maybe there is another file for that? Is there any other way to determine the IP of such VMs except prlctl list call? Thank you!

@legal90, terribly sorry. I don't work for Parallels any more and cannot help with insights.

@romankulikov
Copy link
Collaborator

Probably speaking about .macvm VM-s using prlctl list to get VM IP address may be the reasonable way.

As far as I remember in some recent versions of Parallels Desktop mechanism of guest VM IP detection was reworked on that it could be got from host side, without interaction with guest. This way one may obtain IP with prltctl. Unfortunately I don't have product license to check this out.

@legal90
Copy link
Collaborator

legal90 commented Mar 21, 2023

@romankulikov Thank you for the information!
We will use both mechanisms for now - prlctl and DHCP lease file, as suggested in #434 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants