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

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

Open
basictheprogram opened this issue Dec 29, 2019 · 3 comments
Open

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

basictheprogram opened this issue Dec 29, 2019 · 3 comments

Comments

@basictheprogram
Copy link

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
Copy link

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

More details: hashicorp/vagrant#11288

@KerbenII
Copy link

You can find more details about this issue here:
ruzickap/packer-templates#54 (comment)

@mgmax
Copy link
Contributor

mgmax commented Nov 26, 2023

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.

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

No branches or pull requests

4 participants