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

Parallels Box Error #3

Closed
zacksiri opened this issue Aug 16, 2018 · 7 comments
Closed

Parallels Box Error #3

zacksiri opened this issue Aug 16, 2018 · 7 comments

Comments

@zacksiri
Copy link

I tried to run this box seems to be getting the error

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: <provider config: parallels>
Line number: 42
Message: ArgumentError: wrong number of arguments (given 4, expected 1..2)
@Tatsh
Copy link

Tatsh commented Aug 19, 2018

Getting the same error.

@ladar
Copy link
Member

ladar commented Aug 20, 2018 via email

@Tatsh
Copy link

Tatsh commented Aug 20, 2018

For now I switched to VirtualBox, but I'll take a look later into the Parallels command set.

@ladar
Copy link
Member

ladar commented Aug 21, 2018 via email

@ladar
Copy link
Member

ladar commented Aug 21, 2018

I'm still investigating, but I tracked down the documentation. My config appears to match the docs available at:

http://parallels.github.io/vagrant-parallels/docs/configuration.html#prlctl

Which explicitly states:

Multiple customize directives can be used simultaneously. They will be executed in the given order.

I'll have to check, but perhaps that doesn't mean what it says. Multiple options can be specified, but they all must appear as part of a single customize directive.

@ladar ladar closed this as completed in bcb297d Aug 21, 2018
@ladar
Copy link
Member

ladar commented Aug 21, 2018

Adding a space between customize, and the opening "[" appears to fix the issue. If you don't want to wait for the next build, feel free to edit the ~/.vagrant.d/boxes/generic-VAGRANTSLASH-BOXNAME/1.8.14/parallels/Vagrantfile file directly. Just replace BOXNAME with the distro in question. Please reopen if the issue resurfaces.

@ladar
Copy link
Member

ladar commented Aug 23, 2018

The v1.2.24 build ran into issues with some of the other hypervisors, so you can expect a v1.2.26 build relatively soon. That said, the Parallels robot was the only one that managed to finish building all of its generic boxes. I tested the centos7 image and it's working fine. Sadly, my Parallels robot is an 8 year old Macbook Air, and to slow for me to check the resulting box images automatically, like I do with the VMWare, Virtualbox and libvirt images. (The Hyper-V robot is also a senior citizen). Long story short, if you run into more problems with the Parallels images, please let me know, and I'll take look, as I can't effectively test them all myself, with any frequency right now.

bash-3.2$ vagrant plugin install vagrant-parallels
Installing the 'vagrant-parallels' plugin. This can take a few minutes...
Fetching: mini_portile2-2.3.0.gem (100%)
Fetching: nokogiri-1.8.4.gem (100%)
Building native extensions.  This could take a while...
Fetching: vagrant-parallels-1.7.8.gem (100%)
Installed the plugin 'vagrant-parallels (1.7.8)'!
bash-3.2$ vagrant up --provider parallels
Bringing machine 'default' up with 'parallels' provider...
==> default: Box 'generic/centos7' could not be found. Attempting to find and install...
    default: Box Provider: parallels
    default: Box Version: >= 0
==> default: Loading metadata for box 'generic/centos7'
    default: URL: https://vagrantcloud.com/generic/centos7
==> default: Adding box 'generic/centos7' (v1.8.24) for provider: parallels
    default: Downloading: https://vagrantcloud.com/generic/boxes/centos7/versions/1.8.24/providers/parallels.box
==> default: Successfully added box 'generic/centos7' (v1.8.24) for 'parallels'!
==> default: Registering VM image from the base box 'generic/centos7'...
==> default: Cloning new virtual machine...
==> default: Unregistering the box VM image...
==> default: Setting the default configuration for VM...
==> default: Checking if box 'generic/centos7' is up to date...
==> default: Setting the name of the VM: centos7_default_1534990472080_67322
==> default: Preparing network interfaces based on configuration...
    default: Adapter 0: shared
==> default: Clearing any previously set network interfaces...
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 10.211.55.3:22
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for Parallels Tools installed on the VM...
==> default: Parallels Tools were not detected on this VM! They are required
==> default: for shared folders, time sync and more. If shared folders are not
==> default: working on this machine, please install Parallels Tools within the
==> default: virtual machine and reload your VM.

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

No branches or pull requests

3 participants