Copy/paste in guest console (no GUI)

Discussions about using Linux guests in VirtualBox.
Post Reply
llamafilm
Posts: 14
Joined: 7. Aug 2015, 18:53

Copy/paste in guest console (no GUI)

Post by llamafilm »

I'm running CentOS without a GUI in a macOS host and I can't figure out how to copy/paste text. There is no mouse cursor in the guest, so I can't middle-click. I've tried Cmd-V and Cmd-Shift-V. I have enabled bidirection clipboard setting. I have not yet installed guest additions because I think that's only for a GUI system; is that wrong?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Copy/paste in guest console (no GUI)

Post by mpack »

Copy/paste text is a clipboard function, and a clipboard is a feature of a GUI. If the guest has no GUI then there's no such function.

There is a clunky VirtualBox feature that allows you to inject keycodes (not text, obviously that makes no sense) into a VM, but that is used by scripts calling an API, it isn't typed.
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Copy/paste in guest console (no GUI)

Post by Martin »

A workaround could be to use a ssh terminal app to connect to your centos guest.
This app should allow you to cut&paste text.
llamafilm
Posts: 14
Joined: 7. Aug 2015, 18:53

Re: Copy/paste in guest console (no GUI)

Post by llamafilm »

Ok thanks for the confirmation. Yes ssh works.
Am I right in thinking there is no reason to install guest additions for a text-only OS?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Copy/paste in guest console (no GUI)

Post by mpack »

llamafilm wrote: Am I right in thinking there is no reason to install guest additions for a text-only OS?
No, that would not be correct. For example it ignores features such as shared folders. See Chapter 4 for further info.
Post Reply