VirtualBox Clipboard Issues on Ubuntu
2024-12-09
Table of Contents
I'm running Ubuntu on VirtualBox on a Windows host. Despite setting up everything I could think of, the clipboard functionality refuses to cooperate. Here’s a breakdown of my situation and the steps I’ve tried so far.
What’s Set Up:
Guest Additions Installed:
Thevbox_GAs_6.1.36icon appears correctly, and shared folders between the VirtualBox guest and the Windows host work without a hitch.Extension Pack Installed:
I’ve installedOracle_VM_VirtualBox_Extension_Pack.vbox-extpack-6.1.36a.Clipboard Settings:
Clipboard sharing is set to Bidirectional under the Devices menu.Drag and Drop:
Set to Bidirectional as well, but it doesn’t work either.
The Problem:
- Copying text from Google Chrome on the host and pasting it into Firefox within the VirtualBox guest doesn’t work.
- Copying text from Notepad on the host and pasting it into LibreOffice Writer on the guest also fails.
What I’ve Tried:
I’ve double-checked all settings and even reinstalled Guest Additions, but the clipboard issue persists.
Possible Solution:
If you’re facing a similar problem, the following commands might resolve it:
Update and Install Necessary Packages
Run the following commands in your Ubuntu terminal:bashsudo apt-get update sudo apt-get install virtualbox-guest-x11 sudo apt install linux-headers-$(uname -r) build-essential dkmsEnable Clipboard Support
Once the above packages are installed, run:bashsudo VBoxClient --clipboardThen, restart your virtual machine, after restarting the VM if it still does not work do the same command again and it will work inshallah:
These steps should enable clipboard functionality. If it still doesn’t work, double-check that the Guest Additions installation was successful and matches your VirtualBox version.