chocolatey-community / chocolatey-test-environment

A testing setup related to how the Chocolatey Package Verifier runs testing. Used for manual testing or prior to submission
Apache License 2.0
118 stars 186 forks source link

VBoxManage: error: Unknown option: --clipboard #46

Open basictheprogram opened 4 years ago

basictheprogram commented 4 years ago

Using the an unchanged Vagrantfile vagrant/virtualbox throws an error

$ vagrant up --provider  virtualbox
<snip>
["modifyvm", :id, "--clipboard", "bidirectional"]

The following error was experienced:

#<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "c553546c-59f4-4524-957e-05ef4a7bda54", "--clipboard", "bidirectional"]

$ vagrant --version Vagrant 2.2.6

$ VBoxManage --version 6.1.0r135406

Maybe this is the problem? https://forums.virtualbox.org/viewtopic.php?f=6&t=95992

What's odd, if I REMOVE this line

v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]

from the Vagrantfile I still get the error

GuyWhoKnowsTheGuy commented 4 years ago

It seems like the flag --clipboard got renamed to --clipboard-mode in 6.1.

More details: hashicorp/vagrant#11288

KerbenII commented 4 years ago

You can find more details about this issue here: https://github.com/ruzickap/packer-templates/issues/54#issue-551453456

mgmax commented 11 months ago

It seems that VirtualBox 7 has added a compatibility fallback, so the issue is gone: vboxmanage modifyvm $ID --clipboard bidirectional works correctly.

$ vboxmanage --version
7.0.12r159484

We could just raise the minimum version in the README file. Sooner or later, VirtualBox 6.1 will reach its end of life anyway.