How to restart Guest Additions?

Discussions about using Linux guests in VirtualBox.

How to restart Guest Additions?

Postby -JK- » 27. Jul 2020, 07:14

I have VirtualBox 5.2.42, host and clients are running Ubuntu Mate 18.04 although the same problem occurred earlier also with Ubuntu Mate 16.04.

My clients are long running, usually couple of weeks between boots. Quite often Guest Additions/shared clipboard stop working after running the client several days. Sometimes they stop working both directions, but e.g. today from host to client works but I cannot copy anything from client to host. This problem occurs with several clients.

They so far have started working again if I reinstall GA and boot the client. Sometimes they have started working also with just reinstalling GA, so without booting client. Sometimes with just booting the client, so without reinstalling GA.

I have also tried to disable shared clipboard (GUI command: Devices/Shared clipboard/disabled) and enable it back to bidirectional without any success.

My question is: Is it possible to restart GA in client without reinstalling the GA or rebooting the client? In most cases the GA version in client is uptodate, so it is most likely no use to first remove GA version X from client and then reinstall same version X into client. Maybe just stopping and restarting the GA would be enough.
-JK-
 
Posts: 9
Joined: 3. Dec 2017, 02:23

Re: How to restart Guest Additions?

Postby scottgus1 » 27. Jul 2020, 15:38

I don't know of a certain way to restart GAs. But a possibility is to try logging out of the logged-in account on the guest OS. Or see if there is a GAs service running and try to restart it.

On an XP guest there was a GAs service running in Services. I stopped it and restarted it, and found a complete apparent restart of the service in the log.

On the same guest I tried logging out and back in. I saw a re-list of GAs capabilities in the log.

Either of these might help?
scottgus1
Site Moderator
 
Posts: 13760
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: How to restart Guest Additions?

Postby fth0 » 27. Jul 2020, 17:03

You could try something like

Code: Select all   Expand viewCollapse view
sudo pkill -fx "/usr/bin/VBoxClient --clipboard" && /usr/bin/VBoxClient --clipboard
fth0
Volunteer
 
Posts: 2606
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: How to restart Guest Additions?

Postby -JK- » 27. Jul 2020, 17:33

fth0 wrote:
Code: Select all   Expand viewCollapse view
sudo pkill -fx "/usr/bin/VBoxClient --clipboard" && /usr/bin/VBoxClient --clipboard


Thanks! I try this next time the problem occurs.

Code: Select all   Expand viewCollapse view
 VBoxClient --help
Usage: VBoxClient --clipboard|--draganddrop|--display|--checkhostversion|--seamless|check3d|--vmsvga|--vmsvga-x11[-d|--nodaemon]
Starts the VirtualBox DRM/X Window System guest services.

Options:
  --clipboard        starts the shared clipboard service
  --draganddrop      starts the drag and drop service
  --display          starts the display management service
  --checkhostversion starts the host version notifier service
  --check3d          tests whether 3D pass-through is enabled
  --seamless         starts the seamless windows service
  --vmsvga           starts VMSVGA dynamic resizing for DRM
  --vmsvga-x11       starts VMSVGA dynamic resizing for X11
  -f, --foreground   run in the foreground (no daemonizing)
  -d, --nodaemon     continues running as a system service
  -h, --help         shows this help text
  -V, --version      shows version information

-JK-
 
Posts: 9
Joined: 3. Dec 2017, 02:23

Re: How to restart Guest Additions?

Postby -JK- » 26. Aug 2020, 20:43

I can now confirm that this really works!

Code: Select all   Expand viewCollapse view
sudo pkill -fx "/usr/bin/VBoxClient --clipboard" && /usr/bin/VBoxClient --clipboard


No need to reinstall GA or logout or boot VM client or disable / enable clipboard etc.
-JK-
 
Posts: 9
Joined: 3. Dec 2017, 02:23


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 14 guests