Not able to copy and paste

Discussions about using Linux guests in VirtualBox.
Post Reply
RJD
Posts: 7
Joined: 7. Sep 2016, 10:01

Not able to copy and paste

Post by RJD »

Hi. I have installed a Ubuntu Server 16.04 in Virtualbox and I wanted to copy& paste commands from my Host (local) machine to the Guest (VM) which I'm not able to do so! Even after enabling the 'Bidirectional' option from the Settings - General - Advanced tab, it doesn't work. Tried installing guest additions also.

And I have created a NAT network for all the 3 VMs created so that they all can communicate with each other but which is not happening. They do not connect to internet too. What should be done so that my VM's connect to the internet.

I'm a new user, so pls help me!



Thanks in advance!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Not able to copy and paste

Post by mpack »

RJD wrote:Tried installing guest additions also.
Copy/paste shared clipboard is a feature of the Guest Additions, I would certainly hope that installing the Guest Additions was more than the afterthought you made it sound!

Please post a VM log file. With the VM fully shut down, right click and "Show Log" in the GUI, save "VBox.log" (ONLY) to a zip, and attach the zip here.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Not able to copy and paste

Post by Perryg »

Servers by default do not have a GUI and as such do not have X windows which are required for C/P to work. So unless you installed the graphics packages to the server ( which if you do you might as well just install the desktop version and be done with it ) it will not work. As for the rest we can discuss after the log file is attached.
RJD
Posts: 7
Joined: 7. Sep 2016, 10:01

Re: Not able to copy and paste

Post by RJD »

Attached the file. Pls check!
Attachments
ubuntu server-2016-12-12-16-24-12.log
(107.88 KiB) Downloaded 10 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Not able to copy and paste

Post by Perryg »

First question is already answered.
And I have created a NAT network for all the 3 VMs created so that they all can communicate with each other but which is not happening. They do not connect to internet too. What should be done so that my VM's connect to the internet.
Second question above is more than likely due to the fact that you have created an internal network ( intnet ) which only allows communications between guests and no Internet. See chapter 6 in your VBox manual for a description on networking modes. I would suggest you either use bridged or a combination of NAT and host-only.
RJD
Posts: 7
Joined: 7. Sep 2016, 10:01

Re: Not able to copy and paste

Post by RJD »

Thanks and sorry that I didn't zip the file. So, what I understand from your clarifications are,

1. Install Guest additions and try to copy/paste.
2. I either use bridged or a combination of NAT and host-only.

Correct?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Not able to copy and paste

Post by Perryg »

Not really. I said that unless you installed the graphics packages required provided by the guest OS you will not be able to use copy/paste. Linux servers do not have these installed by default because you do not need them and if you do you should install a standard desktop OS instead.

Your #2 question is correct.
RJD
Posts: 7
Joined: 7. Sep 2016, 10:01

Re: Not able to copy and paste

Post by RJD »

Even in the desktop OS I was not able to copy/paste!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Not able to copy and paste

Post by Perryg »

I will need to see the guests log file from the desktop then.
RJD
Posts: 7
Joined: 7. Sep 2016, 10:01

Re: Not able to copy and paste

Post by RJD »

Attached the zipped ubuntu desktop log file.


Thanks!
Attachments
ubuntu-2016-12-13-10-11-52.rar
(15.19 KiB) Downloaded 7 times
RJD
Posts: 7
Joined: 7. Sep 2016, 10:01

Re: Not able to copy and paste

Post by RJD »

By the way, I installed the guest additions in my ubuntu desktop machine, but still I'm not able to copy/paste. Attached the recent logs.
Attachments
ubuntu-2016-12-13-10-22-22.rar
(15.54 KiB) Downloaded 10 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Not able to copy and paste

Post by Perryg »

Did you reboot the guest after you installed the guest additions and did you see any warnings when you installed the additions? What exactly are you trying to copy and paste? C/P only works for text by the way.

Post the guests /var/log/vboxadd-install.log
Post Reply