Quick answer: Install Guest Additions in the virtual machine, then shut the VM down and open Settings → General → Advanced and set both Shared Clipboard and Drag’n’Drop to Bidirectional. Start the VM again and copy-paste works in both directions.

Two things have to be true for this to work, and missing either one is why it so often does not. The setting must be enabled, and Guest Additions must be installed inside the guest. Enabling the setting alone does nothing.

Step 1: Install Guest Additions in the guest

Guest Additions are drivers and utilities that run inside the virtual machine. Without them the guest has no way to talk to the host’s clipboard at all, so start here.

With the VM running, open the Devices menu in the VirtualBox window and choose Insert Guest Additions CD image.

On a Windows guest: open File Explorer, find the mounted CD drive, and run the installer. Reboot when it finishes.

On a Linux guest: the disc mounts but usually needs running manually. Open a terminal in the guest and run:

sudo apt update
sudo apt install build-essential dkms linux-headers-$(uname -r)
cd /media/$USER/VBox_GAs_*
sudo ./VBoxLinuxAdditions.run

Then reboot the guest. The build tools matter, since Guest Additions compiles kernel modules during installation and fails quietly without them.

Step 2: Turn on the shared clipboard

Open VirtualBox, select your virtual machine, and click Settings. The keyboard shortcut is Ctrl + S with the machine selected.

 

VirtualBox Manager with a virtual machine selected and the Settings button highlighted 

 

Go to the General page and open the Advanced tab. Set Shared Clipboard to Bidirectional, and do the same for Drag’n’Drop.

 

VirtualBox General Advanced tab with Shared Clipboard and Drag n Drop set to Bidirectional

 

Click OK and start the machine. Text copied on the host now pastes into the guest, and the reverse works too.

Understanding the four options

Both settings offer the same four choices, and picking the right one is a small security decision rather than just a convenience one.

Setting What it allows When to use it
Disabled No sharing at all Malware analysis, or any VM you want fully isolated
Host to Guest Copy from host into the VM only Feeding commands or config into a VM you do not fully trust
Guest to Host Copy out of the VM only Pulling logs or output from a VM
Bidirectional Both directions freely Everyday development and testing work

Bidirectional is right for normal use. If you are running something deliberately suspicious inside the VM, leave both set to Disabled, since a shared clipboard is a genuine path between the two systems.

Clipboard versus drag-and-drop

These are separate features that people often conflate:

  • Shared Clipboard handles copied text, using the usual Ctrl + C and Ctrl + V.
  • Drag’n’Drop handles files, dragged between the host desktop and the guest window.

Enabling one does not enable the other, which explains the common complaint that text copies fine but files will not move.

When it still does not work

This feature breaks more often than most, and the cause is nearly always one of these.

Symptom Likely cause Fix
Nothing pastes in either direction Guest Additions missing or failed to build Reinstall Guest Additions, ensuring build tools are present first
Worked before, stopped after an update Guest Additions version no longer matches VirtualBox Reinstall Guest Additions to match your current VirtualBox version
Setting will not change VM is running Some options are locked while powered on. Shut the VM down fully and retry
Text works, files do not Drag’n’Drop left disabled Set Drag’n’Drop to Bidirectional as well
Fails on a Linux guest with a modern desktop Wayland session Log out and choose an Xorg session at the login screen
Copies once, then stops Clipboard service crashed in the guest Restart the guest, or restart the VBoxClient clipboard process on Linux

If you are on a Linux guest and want to restart the clipboard service without rebooting:

killall VBoxClient
VBoxClient --clipboard

A more reliable alternative for files

Drag-and-drop is convenient but the least dependable part of this feature set. If you are moving files regularly, a shared folder is far more robust.

Open Settings → Shared Folders, add a folder from your host, and tick Auto-mount and Make Permanent. It appears as a network drive in a Windows guest, or under /media/sf_foldername on Linux.

On a Linux guest you will also need to add your user to the vboxsf group before you can read it:

sudo usermod -aG vboxsf $USER

Log out and back in for that to take effect.

Frequently asked questions

Do I need to restart the VM after changing the setting?
Usually the change applies immediately, but if nothing happens, a guest restart resolves it. Some options can only be altered while the machine is powered off.

Does this work with any guest operating system?
Yes, wherever Guest Additions are available: Windows, most Linux distributions, and Solaris. Support on macOS guests is unreliable.

Can I copy images and formatted text?
Plain text is reliable. Images and rich formatting work inconsistently across platforms, so do not depend on them.

Is a shared clipboard a security risk?
It is a deliberate channel between host and guest, so yes, in the sense that anything with clipboard access in the VM can read what you copy on the host. Keep it disabled for untrusted workloads.

Why does it break after every VirtualBox update?
Guest Additions are version-matched to VirtualBox. Updating the host application leaves the guest running older additions, so reinstall them after each upgrade.

Related guides