VirtualBox is a program that allows you to run multiple operating systems (guests) on one computer (the host computer). You may need to transfer files between the host and the guest. It’s easy to set up in Windows guests, but tricky in Ubuntu guests.
VirtualBox是一种程序,可让您在一台计算机(主机)上运行多个操作系统(来宾)。 您可能需要在主机和来宾之间传输文件。 在Windows guest虚拟机中设置起来很容易,而在Ubuntu guest虚拟机中设置起来比较麻烦。
We’ll show you how to set up an Ubuntu guest machine so you can access folders on the host machine from within the guest machine. You must enable shared folders to do this, which are available by installing VirtualBox guest additions software (see our article for instructions on how to do this).
我们将向您展示如何设置Ubuntu来宾计算机,以便您可以从来宾计算机中访问主机上的文件夹。 您必须启用共享文件夹才能执行此操作,这可以通过安装VirtualBox来宾添加软件来使用(有关如何执行此操作的说明,请参阅我们的文章 )。
Once you’ve installed the guest additions, enable shared folders by adding a folder from your host machine in the settings for the guest machine. To do this, first make sure the guest machine is powered off. Then, select the guest machine in the list on the left of the VirtualBox Manager and click Settings on the toolbar.
安装来宾添加后,通过在来宾计算机的设置中添加来自主机的文件夹来启用共享文件夹。 为此,请首先确保客户机已关闭电源。 然后,在VirtualBox Manager左侧的列表中选择客户机,然后单击工具栏上的“设置”。