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

Support for shared clipboard #4894

Closed
sobrinho opened this issue Dec 2, 2014 · 5 comments
Closed

Support for shared clipboard #4894

sobrinho opened this issue Dec 2, 2014 · 5 comments
Labels

Comments

@sobrinho
Copy link

sobrinho commented Dec 2, 2014

Hi guys,

I don't see any way to make a shared clipboard between the guest and the host.

I would to be able to do something like that:

echo something | xclip
echo something | xsel

And the content goes to the clipboard of the host.

Currently I got:

/vagrant (2.1.3p242) (master)
λ echo something | xsel
xsel: Can't open display: (null)
: Inappropriate ioctl for device

/vagrant (2.1.3p242) (master)
λ echo something | xclip
Error: Can't open display: (null)

/vagrant (2.1.3p242) (master)
λ echo something | xvfb-run xclip
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":99"
      after 10 requests (7 known processed) with 0 events remaining.

/vagrant (2.1.3p242) (master)
λ echo something | xvfb-run xsel

The last one does return success but the content doesn't go the host clipboard.

I have configured the shared clipboard on Vagrantfile as this:

    web.vm.provider :virtualbox do |vb|                                                                                 
      vb.memory = 4096                                                                                                  
      vb.cpus = 2                                                                                                       

      vb.customize ['modifyvm', :id, '--clipboard', 'bidirectional']                                                    
    end                                                                                                                 

Am I missing something or there is no way to do that today?

@sethvargo
Copy link
Contributor

Did you reload the VM after making those changes in the Vagrantfile?

@sobrinho
Copy link
Author

sobrinho commented Dec 2, 2014

Yes. It was supposed to work?

Note that it's a headless guest, ubuntu trusty 64.

@sethvargo
Copy link
Contributor

Even though this issue mentions Windows as the host, this is a VirtualBox issue (https://www.virtualbox.org/ticket/10057).

As a workaround, I would recommend using vagrant ssh and pasting the content via the terminal.

@ankostis
Copy link

ankostis commented May 8, 2019

@sobrinho wrote:

Did you reload the VM after making those changes in the Vagrantfile?

Thanks. When i re-launched the VM, the setting was there.

 

 

@ghost
Copy link

ghost commented Apr 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants