Fixing VirtualBox Clipboard Issue

Finally I was able to solve my clipboard cut/copy problem in Ubuntu VM.

Here are the steps I followed to solve my clipboard issues.

// Find out the process id used by clipboard. You will two dependent ID created at the time of boot up.
#> ps -ef | grep -i clip

// Kill the process that is running the clipboard
#> kill –9 $ProcessId // Process ID from the process listed from above command

// Execute the clipboard manually.
#> /usr/bin/VBoxClient —clipboard

//Check the id using pstree

// Check the process id again to see if it is running properly.
#> ps -ef | grep -i clip

// Use pstree to check the linking of the processing.
#> pstree -sp $Provide your process id retrieved from above command.

Fixing VirtualBox Clipboard

# Take a current snapshot

# Start appliance and open a terminal
$ sudo apt-get update
$ sudo apt-get install build-essential

# Reinstall the Guest Editions
Devices, "Insert Guest Editions CD Image..."
Run, Enter your credentials, and let it install
Reboot your Appliance

# See if it works, and if it does
Shutdown, delete snapshot and take new snapshot