Virtual machines let you to run a different operating system in an isolated environment, and using a virtual automobile can considerably improve your productivity. Considering virtual machines, by nature, are isolated, y'all cannot directly access files on your host PC.

Copying text or files from the host PC to the guest, or vice-versa is frequently a major sticking point for virtual machine users. Although it may seem complicated, the bodily process is quite straightforward. Allow's wait at the unlike methods for transferring files between your virtual machine guest operating system and host PC using VirtualBox or VMware.

How To Transfer Files From Virtual Machine To Host

A virtual machine is a software environs that emulates the hardware required to install an operating system (Os). In very general terms, this lets you lot install an operating arrangement on an existing OS, much like an app.

You lot won't be surprised by the options for sharing data between a host PC whatsoever invitee operating system running in a virtual machine. Here are the three main options to share data between a virtual machine and a host PC:

  • Drag and Driblet (Copy and Paste)
  • USB bulldoze
  • Shared Binder

Each of these methods is ideally suited for a specific type of data and expected use. For instance, copy and paste is best for sharing text and pocket-sized files, such every bit copying code from a browser on your host PC into a terminal session in the guest Os.

Below, we'll look at sharing data using these iii methods on virtual machines running on Oracle VirtualBox and VMware Workstation Player

The simplest pick to transfer files betwixt your host PC and a virtual car is to set up upwards a shared clipboard and/or elevate and driblet. This volition permit yous to use a common clipboard, pregnant you volition be free to copy/paste text/images and files betwixt the virtual motorcar and your host PC.

Shared Clipboard in VirtualBox

If you're using Oracle VirtualBox, so you can ready a Shared Clipboardand Drag'northward'Dropin merely a few quick steps:

Virtualbox settings
  1. Select your virtual machine, right-click and selectSettings.
  2. In the window that pops up, click on Generaland so click on theAdvanced tab.
  3. You should now see the Shared ClipboardandDrag'n'Drop dropdown options.

Yous can choose from Host to Guest, Guest to Host, and Bidirectional. At that place's also the default selection, Disabled. Select Bidirectional in both drib-down boxes to enable two-manner file sharing.

How to Re-create and Paste Data in VMware

Similar to the VirtualBox functionality, you can also prepare up a shared clipboard or enable drag and driblet in VMware. Only you might need outset to install the VMware Tools parcel, which brings additional features.

  1. Inside VMware, navigate toVM > Install VMware Tools. If y'all oasis't already downloaded VMware Tools, instructions for doing so will be given.
  2. You can so enable copy and paste inVM > Settings > Options. Select Guest Isolation, so Enable copy and paste and Enable drag and driblet, confirm with OK.

Sharing data betwixt the guest and host operating systems in this fashion is best suited for smaller files. You lot might likewise share text strings, URLs, that sort of thing. Steer clear of large files, though—you have other options for those.

USB Stick

Using a USB stick to transfer data betwixt two physical machines is a time-honored tradition. Although non ideal, a USB stick can transfer files between the host PC and virtual auto. Allow's wait at how you tin can apply a USB drive to share data between a virtual motorcar and your host PC.

Transfer Files From Host To VirtualBox Using A USB stick

To be able to access USB devices from inside VirtualBox, you'll need to enable USB access. For this, you demand to download the VirtualBox Extension Pack

Virtualbox usb settings

Once you accept downloaded the extension pack:

  1. Insert the USB device yous wish to employ
  2. Launch VirtualBox and click File > Preferences, so Extensions and click +. Browse to the downloaded Extension Pack, click Open, then when prompted, Install.
  3. Follow the prompts to complete the procedure. Yous tin can then check to confirm USB is enabled in Settings > USB.
  4. Y'all now need to enable the added USB support. In the main VirtualBox window, right-click the VM you desire to employ and select Settings > USB.
  5. Click + then browse for the USB device. It will be bachelor when you launch the VM. Boosted drives can be added in the same way.

How To Transfer Files To VMWare With A USB Stick

With VMware, when a USB device is connected and the VM is the active window, the device is detected. All the same, it will non be detected by the host PC in this scenario. For this to happen, remove the drive, minimize the VM, so reconnect.

Information technology'due south elementary but can become messy if you lot forget which operating organization the USB stick is connected to.

This pick is best for large files. Of class, yous're express by the capacity of the USB device, then continue that in listen. Whatever VM software you lot utilise, safety ejection of USB devices is recommended on both host and invitee virtual machines.

Your tertiary selection is to fix upward a network share on your host PC that the guest VM can admission. This ways designating a portion of your PC's hd every bit accessible over the local network. With this setup, the VM can then connect to the network and access the drive.

Although physically all on the aforementioned computer, this adds higher capacity to your virtual machine data sharing.

Create a Shared Binder in VirtualBox

Y'all should have already downloaded VirtualBox Guest Additions. This should exist installed via Devices > Install Guest Additions, where you should browse for the appropriate EXE file. Follow the steps to the end, choosing the default options, then Finish.

set up shared folder in virtualbox

Launch VirtualBox and open Devices > Shared Folders > Shared Folders Settings. Click +, so in Folder Path, click the arrow and select Other. Browse (the host OS) for the folder you're using as a share, highlight it, then Select Folder.

In the Add Share window, requite the share a name (keeping the same name in the guest OS as the host OS is wise). Cheque Auto-mount and Make permanent, so OK.

From the guest Os, you'll find the share set up in the usual location for network shares. For case, in Windows ten, this will be under Network Locations in Windows Explorer.

The process of creating a shared binder on VMWare is quite straightforward:

  1. Within VMWare Workstation, choose your virtual machine and click onPlayer > Manage > Virtual Automobile Settings
  2. Click onOptions > Shared Folders. You lot tin and then choose a sharing option underFolder Sharing
  3. Click onAdd together to set up upward your shared folder and follow the on-screen instructions in theAdd Shared Folder Sorcerer.
  4. Y'all tin can and then blazon theHost path to the directory yous desire to share and name your folder.
  5. Once yous clickNext, you decide the folder admission (Read-only or Enable this share, the latter allows both host and the virtual machine complete admission to the shared binder).
  6. Click onEndto create your shared folder.

Linux users can view the shared folder under the /mnt/hgfs directory.

While this is the most complicated option to set, y'all will be able to share larger files effortlessly. These might include installers, disk image files, and hi-res videos.

Transfer Files From VM To Host

Not anybody needs to utilise a virtual auto, but those of united states who practise almost ever demand to share data. If you're not copying files from the host to the invitee Bone, there's reason to copy data from the VM. This is typically when you're nigh to destroy the VM and want to back upwardly your data.

Learning how to share data between a VM and host Os will help super-charge your VM use.

VirtualBox vs. VMware Actor: The Best Virtual Machine for Windows

Read Next

About The Author