Get/set guest clipboard

Here you can provide suggestions on how to improve the product, website, etc.
Post Reply
Pernat1y
Posts: 30
Joined: 11. Jun 2018, 11:43
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows 10, Kali, Fedora/RHEL

Get/set guest clipboard

Post by Pernat1y »

Is it somehow possible to get/set clipboard in guest OS without altering host's clipboard?
If no, it will be nice to have such a feature.
Hosts: Arch Linux, Windows 10;
Guests: Windows 10, Kali, Fedora/RHEL.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Get/set guest clipboard

Post by scottgus1 »

The vast majority of the time you can see if Virtualbox does something by searching the PDF of the manual found in your Virtualbox installation folder.

The 6.1.4 manual does not seem to have a function to set the guest clipboard to a determined value without altering the host clipboard. This appears to be a roll-your-own situation. See the 'VBoxManage getextradata/setextradata' commands, and write host and guest scripts to pass strings. Some scripting languages can also alter the clipboard.

You can enter an Enhancement Request in the Bugtracker, but if the request happens to not coincide with the Oracle paying customers' needs or wants, then the request is likely not going to be implemented for some time, if ever. User-contributed code is considered and has been used, though.
Pernat1y
Posts: 30
Joined: 11. Jun 2018, 11:43
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows 10, Kali, Fedora/RHEL

Re: Get/set guest clipboard

Post by Pernat1y »

Got it. Thanks.
Hosts: Arch Linux, Windows 10;
Guests: Windows 10, Kali, Fedora/RHEL.
Post Reply