Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Discussions about using Linux guests in VirtualBox.

Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby giannino1995 » 10. May 2019, 16:30

I installed Linux Ubuntu 18.04.2 on VirtualBox 6.0.6. I would like to copy strings from a text file to Linux Ubuntu 18.04.2. I would like to use ctrl + c and ctrl + v. I tried to install the 'guest additions' thinking that this option could be a solution to my problem but without success. Below is the problem. How can I copy strings from windows to Linux on VirtualBox?
Thank you
Error:
https://prnt.sc/nmurki
VBox.log
https://paste.ubuntu.com/p/4Tb5JvQhgf/
VBoxHardening.log
https://paste.ubuntu.com/p/RqRbc8VBdd/
VBox.log.1
https://paste.ubuntu.com/p/fJyf8c2DF2/
Last edited by giannino1995 on 22. May 2019, 23:27, edited 1 time in total.
giannino1995
 
Posts: 43
Joined: 28. Nov 2014, 22:11

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby mpack » 10. May 2019, 17:17

Please provide logs locally, as zipped attachments - I have no wish to sign up to an Ubuntu account or provide an email address in order to get a searchable version of your log. Only the "VBox.log" is required.

p.s. The VERR_PDM_MEDIA_LOCKED error has been discussed many times.
https://www.google.com/search?as_q=VERR ... by+licence
Basically, you must eject the existing media before you can mount the GAs virtual CD.
mpack
Site Moderator
 
Posts: 29224
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby giannino1995 » 10. May 2019, 20:34

Thank you very much for your reply.
I had no .iso files inserted on ubuntu.
I removed everything and tried again to install the component using the code that I found on the page that you indicated to me. I haven't solved it.
I am attaching the file.
Attachments
Desktop.zip
(124.76 KiB) Downloaded 5 times
giannino1995
 
Posts: 43
Joined: 28. Nov 2014, 22:11

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby mpack » 11. May 2019, 09:15

As I said before, only the "VBox.log" file is required. I don't need the two backup copies as well (.1 and .2). I do however need you to shut down the VM before grabbing the log: you can't copy currently open files of a running program, the file ends up truncated.

00:00:11.922987 VMMDev: Guest Additions information report: Version 5.2.8 r120774 '5.2.8_KernelUbuntu'

This is not the VirtualBox 6.0.6 Guest Additions. These are GAs for the Ubuntu fork of VirtualBox. These will need to be completely purged from the guest before you install the geniune GAs.

However... I can find no instance of this causing VERR_PDM_LOCKED errors.

Only Linux guest users have this problem, and I am not a Linux user. However the following discussion looks likely to be correct: viewtopic.php?f=3&t=86939.
mpack
Site Moderator
 
Posts: 29224
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby giannino1995 » 12. May 2019, 14:45

I send you the requested file with VM turned off.
Now I understand what you wrote previously and I can answer correctly.
The error that appears to me is due to the presence of a .iso file in VirtualBox. This is very true. In fact I press 2 times on "Insert the image of the Guest Additions CD ...". I press 2 times because nothing happens after pressing once. I can delete everything and do it all over again but I need the exact installation procedure (installation procedure + codes to be used on linux).
Thanks
Attachments
Server Ubuntu 18.04 LTS-2019-05-10-22-17-34.zip
(33.07 KiB) Downloaded 4 times
giannino1995
 
Posts: 43
Joined: 28. Nov 2014, 22:11

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby mpack » 12. May 2019, 19:07

giannino1995 wrote:In fact I press 2 times on "Insert the image of the Guest Additions CD ...". I press 2 times because nothing happens after pressing once.

All that "Insert the Guest Additions CD" does is insert the CD. What happens next depends on how the guest OS is configured: if the guest is configured to auto-run new media then the installer may run. If the guest OS is not configured to allow auto-run then you must browse to the CD inside the guest and run the installer yourself. The GAs installation process is described in detail in the user manual.

I would expect that most modern OS's will not auto-run by default, as it's an invitation for malware.
mpack
Site Moderator
 
Posts: 29224
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby giannino1995 » 12. May 2019, 23:09

What you send me is too distracting, it's useless because it's too long to read. I followed this guide but I still can't use ctrl + c and ctrl + v:
https://www.techrepublic.com/article/ho ... rver-host/
I would like to know if the GAs installed allow you to use ctrl + c and ctrl + v on the keyboard or if I can only use the commands from software such as PuTTY or OS prompts that host VirtualBox.
Thanks
Last edited by socratis on 19. May 2019, 00:48, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
giannino1995
 
Posts: 43
Joined: 28. Nov 2014, 22:11

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby Whiskeyjack » 13. May 2019, 10:20

does your linux has a X server (or Wayland) running? As far as I know you need that in order copy-paste to work.
Whiskeyjack
Oracle Corporation
 
Posts: 28
Joined: 28. Aug 2017, 13:14

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby mpack » 13. May 2019, 14:44

The question is misplaced anyway. Installing the GAs allows the copy/paste feature to work. Whether Ctrl+C and Ctrl+V are the keystrokes to control those functions in a Linux OS - I have no idea.
mpack
Site Moderator
 
Posts: 29224
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby giannino1995 » 13. May 2019, 15:25

Whiskeyjack wrote:does your linux has a X server (or Wayland) running? As far as I know you need that in order copy-paste to work.


I can't answer, how can I check?
I installed ubuntu 18.04.2 (server version), only the operating system, 0 software!
giannino1995
 
Posts: 43
Joined: 28. Nov 2014, 22:11

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby giannino1995 » 13. May 2019, 15:34

mpack wrote:The question is misplaced anyway. Installing the GAs allows the copy/paste feature to work. Whether Ctrl+C and Ctrl+V are the keystrokes to control those functions in a Linux OS - I have no idea.


No idea?!?

The copy function takes place on windows and the function pastes on linux or vice versa.
giannino1995
 
Posts: 43
Joined: 28. Nov 2014, 22:11

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby mpack » 13. May 2019, 16:23

No idea. I am not a Linux user.
mpack
Site Moderator
 
Posts: 29224
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby Martin » 13. May 2019, 16:53

Is your Linux running with a graphical desktop? That is necessary for the guest additions to work (and therefore for the shared clipboard feature).
If your system is only running in text mode you cannot use a shared clipboard over the VirtualBox guest window.

When you use a ssh terminal like Putty on your Windows or another system to connect to your Linux guest then you can use the local clipboard directly.
Martin
Volunteer
 
Posts: 2183
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby giannino1995 » 22. May 2019, 23:27

It is a pity that the GAs do not work on OS without a graphical interface.
Thanks for all
giannino1995
 
Posts: 43
Joined: 28. Nov 2014, 22:11

Re: Copy strings from a text file and paste them into linux ubuntu 18.04.2 (server version)

Postby socratis » 23. May 2019, 00:01

The GAs may not work, but there's another way that could work without the GAs.
VBoxManage controlvm <uuid|vmname>
keyboardputscancode <hex> [<hex> ...]|
keyboardputstring <string1> [<string2> ...]|
keyboardputfile <filename>

That works on every VM, GAs or not.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 23884
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 13 guests