i use virtual box mainly for testing purposes. I am currently running VB 6.1.22 r144080 (Qt5.6.3) on OSX Catalina 10.15.7.
I am going crazy trying to have copy and paste work on a ubuntu server 18.04.5 LTS virtual machine. What have i tried already?
going to the VM preferences -> advanced -> Shared Clipboard as well as Drag'n'Drop set with Bidirectional (still no copy/paste)
sudo apt install virtualbox-guest-x11 and service virtualbox-guest-utils start (install but does nothing)
VBoxClient-all (command not found)
VBoxClient --clipboard (nothing happen)
how can i fix this? it's so annoying to type web addresses and long commands...
If you install these and still don't have shared clipboard, please post a vbox.log:
Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.
Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.
scottgus1 wrote:Guest Additions (and the prerequesites beforehand) need to be installed in the VM for shared clipboard to work. See
If you install these and still don't have shared clipboard, please post a vbox.log:
Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.
Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.
Thank you Scott, the link you sent me aren't supposed to be for a linux host? i have an iMac, the ubuntu server is the VM... so if i'm correct i need to install the guest additions on my mac host? isn't it? where can i find the documentation for that? thanks
antoaunix wrote:
Thank you Scott, the link you sent me aren't supposed to be for a linux host?
The procedure for installing "prerequisites" is the same on a Linux guest as it is for the Linux host, so the GAs section refers you to an earlier description given in a Linux hosts section of the manual. I.e. the section Scott referred you to is correct.
I don't much care for that kind of cross referencing, and that one in particular strikes me as a tad awkward. Normally I would submit a suggested edit, but I'm not enough comfortable enough with Linux to do that this time.
antoaunix wrote:
... so if i'm correct i need to install the guest additions on my mac host? isn't it? where can i find the documentation for that? thanks
No - The Guest Additions are installed in your Linux VM.
To add the CD image to the VM:
1. Give your VM window focus
2. In the Devices Menu on your Mac Menubar - select the item Insert Guest Additions CD Image ...
3. Mount the CD image in your VM - There are a few ways to do this in Linux. If you have a desktop environment you *may* get a popup. Alternatively you could mount the image from a commandline shell session
4. Run the Linux additions installation script that is in the now mounted CD image
inserted from the device menu the Guest Additions CD Image
went to media folder and created a cdrom1 folder cd /media | sudo mkdir cdrom1
mounted the drive sudo mount /dev/cdrom /media/cdrom1
entered the cdrom1 folder cd cdrom1/
installed the additions sudo ./VBoxLinuxAdditions.run
reboot the machine sudo reboot
Both Virtualbox on the host and Guest Additions in the VM require the prerequisites. An explanation for why this prerequisite stuff is not done by the GAs installer is given in one of the two links I posted above.
antoaunix wrote:here you can see my log file
Zipped logs fit. The instructions I posted about posting a log did mention to use a zip file.
But do the prereqs first, then install the GAs, both in the VM. Then if shared clipboard doesn't start working, then zip and post the log.
antoaunix wrote:
is it seriously this hard to just enable a simple copy/paste????
"Simple"? I don't know of anybody that lets you copy/paste between PCs without needing to install software first, let alone between PCs running entirely different Operating Systems with mismatched UIs.
scottgus1 wrote:The listed process does not include installing the prerequisites.
antoaunix should have wrote:
created new ubuntu server VM
installed the prerequistes
inserted from the device menu the Guest Additions CD Image
went to media folder and created a cdrom1 folder cd /media | sudo mkdir cdrom1
mounted the drive sudo mount /dev/cdrom /media/cdrom1
entered the cdrom1 folder cd cdrom1/
installed the additions sudo ./VBoxLinuxAdditions.run
reboot the machine sudo reboot
Both Virtualbox on the host and Guest Additions in the VM require the prerequisites. An explanation for why this prerequisite stuff is not done by the GAs installer is given in one of the two links I posted above.
antoaunix wrote:here you can see my log file
Zipped logs fit. The instructions I posted about posting a log did mention to use a zip file.
But do the prereqs first, then install the GAs, both in the VM. Then if shared clipboard doesn't start working, then zip and post the log.
thanks for your help! actually i'm kinda lost on what to do for prerequisites... i'll tell you my exact steps so you see if i misunderstood something about the prereq.
deleted the old VM and all related files
created a new ubuntu server vm and installed the os
on VBox app i went to preferences > general > advanced and selected bidirectional both for shared clipboard and for drag n drop
sudo apt-get update -y for updating
sudo apt-get install -y qt5-default for installing QT
sudo apt-get install -y libsdl2-dev for installing SDL
00:30:34.274651 VMMDev: Guest Additions information report: Version 6.1.22 r144080 '6.1.22'
However, I don't know if the VM ran long enough to try shared clipboard:
00:30:28.972710 VMMDev: Guest Log: BIOS: Booting from Hard Disk...
00:30:34.274651 VMMDev: Guest Additions information report: Version 6.1.22 r144080 '6.1.22'
00:30:53.787483 Changing the VM state from 'RUNNING' to 'SUSPENDING'
That's only 25 seconds of run time from boot to GAs to turn-off. I wonder if the VM OS services that have to start had time.
Try again, double check shared clipboard Bidirectional is on in the VM, and leave it sit for a few minutes so the OS can stabilize.
Skimming this thread, I may have overlooked something, but I think nobody asked if you're using a GUI (X11/Wayland)?
Linux server variants are often used without a GUI, and the VirtualBox Clipboard doesn't work without X11 or Wayland. When using SSH to connect to the Linux guest OS, copy and paste should work as usual (CMD-X/C/V from the macOS SSH client).
scottgus1 wrote:I'm happy to report that the GAs did install:
00:30:34.274651 VMMDev: Guest Additions information report: Version 6.1.22 r144080 '6.1.22'
However, I don't know if the VM ran long enough to try shared clipboard:
00:30:28.972710 VMMDev: Guest Log: BIOS: Booting from Hard Disk...
00:30:34.274651 VMMDev: Guest Additions information report: Version 6.1.22 r144080 '6.1.22'
00:30:53.787483 Changing the VM state from 'RUNNING' to 'SUSPENDING'
That's only 25 seconds of run time from boot to GAs to turn-off. I wonder if the VM OS services that have to start had time.
Try again, double check shared clipboard Bidirectional is on in the VM, and leave it sit for a few minutes so the OS can stabilize.
just tried, 5 minutes uptime but still nothing i did check for bidirectional, it seems all fine
fth0 wrote:Skimming this thread, I may have overlooked something, but I think nobody asked if you're using a GUI (X11/Wayland)?
Linux server variants are often used without a GUI, and the VirtualBox Clipboard doesn't work without X11 or Wayland. When using SSH to connect to the Linux guest OS, copy and paste should work as usual (CMD-X/C/V from the macOS SSH client).
yeah i'm not using the GUI... there is completely no method for using it? i think i had seen some video on youtube where it was working... but i'm not sure. now i'm curious to learn and fix... but actually with ur suggest i could use copy and paste!!!! i installed openssh server and am just using the server from my host terminal! thank you so much! finally i don't have to type long urls