445 vagrant up exits with status 1 for macvms#446
Conversation
Making this change to access the module in guest_cap/darwin/*.rb
|
Hi @bineesh-n ! BTW, I finally got the chance to validate |
|
Hi @legal90 , I couldn't find any macvm boxes in public. We are using this document to create macvm box ( |
|
@bineesh-n Could you please try to update the vagrant-parallels/lib/vagrant-parallels/synced_folder.rb Lines 6 to 10 in 0dfc4a1 to this: def usable?(machine, raise_errors=false)
# These synced folders only work if the provider is Parallels and the guest is not *.macvm
machine.provider_name == :parallels &&
machine.provider_config.functional_psf &&
!Util::Common::is_macvm(machine)
endIf that works, then all other changes down in @bineesh-n A side question about running macvm: |
|
@legal90 I'll make the changes now. "prlctl list --full --json" will work for ip address in next release of PD only (soon). |
|
@legal90 I tried the suggestion you provided, but now the system asks me smb password and configures SMB sharing instead. That's also failing. |
|
@bineesh-n It seems that Vagrant tries to find any other usable approach for handling shared folders. It should disable the default synced folder explicitly. Could you please check if that helps? |
|
@legal90 we need to design vagrant-parallels to put the shared folder info in our config.pvs for macvms. But as per your current suggestion, we need to ask users to create box and disable default synced folder. So what about their custom shared folders ? It's not 'macvm' not supporting shared folders, but mounting and unmounting is not required this to work. Just putting entry in config.pvs is enough. I tried your suggestion though. It shows following error. |
Thank you! That makes sense now. Although, as I remember, it was not recommended to edit vagrant-parallels/lib/vagrant-parallels/action/export.rb Lines 125 to 134 in eb8f2df
Yes, that looks like a proper solution. We can implement it as yet another vagrant-parallels/lib/vagrant-parallels/plugin.rb Lines 101 to 104 in eb8f2df Overall, this PR looks OK for me now. Please let me know if you want me to merge it and release as is, or do you want to add synced folder implementation via |
|
@bineesh-n I have created a dummy placeholder class for synced folders for It should fix the issue #445 and it could be used as a starting point for the correct implementation of synced folder for *.macvms (with editing |
Made is_macvm a member of module since I was getting error in accessing the function from guest_cap. Since macvm is actually a darwin guest, darwin guest commands to share folders are getting executed. I skipped this in enable & disable functions for macvms.
@legal90 We need these changes within a week. Please review.