Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running VirtualBox 4.1.4 on my Windows 7 laptop, running an Ubuntu 11.10 guest.

I would like to copy text from Ubuntu's terminal and paste it into a file on the Windows host. This doesn't work for some reason.

Any ideas?

share|improve this question
    
Note that if you have "Locate pointer" enabled (highlights your pointer when you fit Ctrl), there is a bug in 12.04 that prevents this from working. Switch off "Locate pointer" and it will work. See bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/… –  d3vid Sep 25 '13 at 11:49
    
I believe @d3vid is talking about the "Locate pointer" setting in Ubuntu, not in Windows. In Ubuntu 14.04, this setting is found under gnome-tweak-tool; see askubuntu.com/a/425498/159361 –  LarsH Jun 25 at 19:11
add comment

7 Answers 7

up vote 26 down vote accepted

Start your VM then install Virtualbox Guest Addition
You can find this option under "Devices" on virtual box 4.2 or you can follow the explanations at How do I install Guest Additions in VirtualBox?

share|improve this answer
4  
We have a how to for installing guest additions here on AU –  Takkat Oct 28 '11 at 7:08
2  
Thanks! This solved the problem :) –  Misha Moroshko Oct 28 '11 at 9:50
    
This CD image is not available anymore. –  71GA Sep 16 '12 at 18:55
2  
also you need to enable the shared clipboard under Devices menu on the VM's toolbar. Devices > Shared Clipboard > [Host To Guest | Guest To Host | Bidirectional] –  10GritSandpaper Dec 16 '13 at 16:51
add comment

Go to VirtualMachine's Settings->General->Advanced->Shared Clipboard (Bidirectional)

Reboot your virtual machine.

for me it solved the problem (it was set on Disabled), I had some machines working some not, so i checked settings in working ones they had bidirectional clipboard. Dont know if this was upgrade issue or... just double check your shared clipboard options.

Hope this helps someone.

VirtualBox V 4.1.20

share|improve this answer
2  
Thank you very much for this answer! It's very helpful! –  VitoShadow Oct 19 '12 at 15:45
1  
how can i paste the text from window to ubuntu server? Ctrl + Shift + V does not help –  Thai Tran Apr 28 at 10:25
add comment

Did you install the required virtual box tools?? (the ones that you should install on guest operating system to gain smooth operation / interaction between the host and the guest)

share|improve this answer
    
Probably not. What tools should I install, and how? –  Misha Moroshko Oct 28 '11 at 4:04
    
It is called "Guest additions" as @soekarmana answered. –  Beniamin Oct 28 '11 at 8:04
add comment

You could use Pastebin.com if you have access to the Internet.

share|improve this answer
3  
Or, alternatively, pastebin.ubuntu.com. –  WarriorIng64 Oct 28 '11 at 4:33
add comment

In VirtualBox 4.x:

Start the Ubuntu instance, then in the VirtualBox menu at the top of the running instance window, Machine > Settings..., Advanced tab, change Clipboard Sharing to Bidirectional. It's set to Disabled by default for some reason - not clear on why I'd ever want that.

share|improve this answer
add comment

this worked http://www.helpfulbox.com/ans/Humanities_Races/758885

share|improve this answer
4  
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  fossfreedom May 3 '12 at 22:21
add comment

The summary of "Main OS and Virtual OS Integration":

  1. Install Vbox Guest Additions
  2. Enable Shared Clipboard
  3. Enable Drag'n'Drop
  4. Enable Shared Folder (optional)
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.