Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to connect to the VirtualBox kernel service while enabling copy-paste [closed]

I try to enable copy-paste functionality in the Oracle Virtual Box. In order to accomplish this, I run:

sudo /usr/bin/VBoxClient --clipboard

and I get

Failed to connect to the VirtualBox kernel service

What does this mean and how can I solve it? I tried to launch the Virtual Box with sudo, it did not work. I mention that I have virtualbox-guest-utils and virtualbox-guest-x11 installed. Ubuntu 14.04

Thanks!

like image 741
yonutix Avatar asked Jul 28 '15 09:07

yonutix


People also ask

Why can't I copy and paste on VirtualBox?

Steps to enable copy paste in VirtualBox: Under General, select Advanced. The Shared Clipboard is Disabled by default. Choose Bidirectional from the list and click on OK. Additionally, you can select Drag'n'Drop to copy files between the host computer and the virtual machine.

How do I enable copy paste from host to VirtualBox in ubuntu?

Open the VirtualBox Manager window in Windows 11. Right-click on the Ubuntu VM where you want to enable copy and paste, then click on Settings. Click the Advanced Settings tab -> Shared Clipboard, and select Bidirectional (Bidirectionally).

How do I paste into VirtualBox terminal?

At this point, copy and paste (from either guest to host or host to guest) can be enabled. Start the VM, and once it's booted, click Devices | Shared Clipboard | Bidirectional (Figure A). You can now copy and paste from guest to host and host to guest.

How do you make a bidirectional in VirtualBox?

In the “Advanced” tab, you can see the two dropdowns named “Shared Clipboard” and “Drag'n'Drop.” Select each dropdown menu and choose the “Bidirectional” option to enable the machine's clipboard sharing and drag-drop features.


2 Answers

I am assuming you ran Insert Guest Additions CD Image from the VirtualBox menu and ran the disk in your VM.

I had a similar issue where my Bidirectional Clipboard was working and then stopped after an update. I was getting the error message displayed: vboxclient the virtualbox kernel service is not running. Reinserting the Insert Guest Additions CD Image and reinstalling the services FIXED my issue.

I am using VirtualBox ver. 5.0.20. with Fedora 23 VM.

like image 185
Andrew Lobban Avatar answered Oct 13 '22 18:10

Andrew Lobban


I am using VirtualBox 5.0.6 and I got the same error after I updated my guest virtual machine. This solved it for me.

sudo /etc/init.d/vboxadd setup

Then I used sudo /usr/bin/VBoxClient --clipboard to enable clipboard and it worked.

If you are using VirtualBox pre 5.x, use this

sudo /etc/init.d/vboxdrv setup

Check this answer for the VirtualBox Ubuntu 14.04 - vboxclient the virtualbox kernel service is not running question.

like image 37
Lamya Elmorsy Avatar answered Oct 13 '22 18:10

Lamya Elmorsy