search

Home  >  Q&A  >  body text

ubuntu虚拟机复制文本到主机

window8.1的系统中安装了ubuntu虚拟机,vmtools也安装好了,可以从window中复制文件和文本到虚拟机中,也能从虚拟机中拖出文件到window中个,但不能直接以复制的形式从虚拟机中拿出文件或文本,请诸位帮帮忙

PHPzPHPz2851 days ago901

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-21 10:58:37

    When the host is win and the virtual machine is ubuntu:
    The following is the file transfer method, I don’t know the text (if shift+insert instead of ctrl-v doesn’t work, I really don’t know)
    Method 1 (only supports files, not directories):
    0. In virtual machine software such as vmware/virtualbox,
    Set the Ubuntu virtual machine's settings - network to bridge or hostonly mode.
    1. Download ssh and lrzsz on ubuntu:
    $sudo apt-get install ssh lrzsz
    2. Win next securecrt
    3. After logging into ubuntu with securcret:

    Upload the ubuntu files to win:

    $sz the-file-in-ubuntu #Enter

    Win files are transferred to ubuntu:

    $rz -be #ENTER
    A dialog box will pop up, select the file, click the button next to the file name,
    This will add the file to the list below. The previous line of operation can be repeated multiple times,
    Finally, click the button in the lower right corner.
    btw, I forgot the name of the button... but you are so smart, you will be able to guess it.
    Method 2:
    1. Shared directory.
    Method three:
    1. Install vmtools. This is a legend I have heard. I have never used it and the effectiveness is not guaranteed.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-21 10:58:37

    It is impossible to copy and paste the file directly. You can configure a shared directory, or install samba in ubuntu

    reply
    0
  • Cancelreply