I have Windows virtualbox virtual machine and i would like to transfer some files from it... i thought about using scp but i don't know what directory path should i write (i guess something like C:\something\something won't work from my Linux machine, will it?)


  • I don't want to use shared folders
  • I would prefer guest (Windows) to not ftp/login/do anything with host (Linux)
  • Could you add command line examples for methods you're writing about?

If you're trying to copy files from the guest system to the host system (or the other way around), the easiest solution is to set up a shared folder. Check out the documentation for VirtualBox Folder Sharing.

If you already have ssh set up on your Linux machine and really want to use scp, you could always install WinSCP on your Windows virtual machine and use it, or use the SFTP client built in to PuTTY.


There are some options you have:

Basically you have two options: using the built-in folder sharing option, for which you'll need the Guest Additions installed and install from the binary VirtualBox (Not the OSE community edition), or using the same approach you'd take with two physical computers, I.E., using the OS provided way to access. In your case, you could use either Samba, SSH or FTP.

If you are in a position to use Guest Additions, it's the easiest way, IMHO.

  • Could you comment what scp command should exactly look like in this case? How do I write Windows directory I want to copy to Linux? It has different directory structure than Linux – Phil Jul 10 '09 at 22:30

You could use rsync, there are some Windows clients for it, such as Deltacopy. FTP is another simple option, or possible Samba.


The fastest method would be to offline the VM and do a loopback mount of the disk image under linux and copy the files. That way you're avoiding the overhead of both the network and the VM execution.

  • You mean mount .vmdk? It's possible? – Phil Jul 10 '09 at 22:31
  • I seem to recall a "vmware-mount.pl" script (or something like that) from the days I had VMWare Workstation. I assume they wouldn't have removed such a handy feature. – Geoff Fritz Jul 10 '09 at 22:56

I'd ftp the files from the windows system to the linux system.


VirtualBox supports virtual network drives. Open VirtualBox and there should be a "Virtual Network Drives" section. Simply add a folder (from linux), reboot your virtual machine and you should be able to access it via network neighbourhood (as you would "shared documents"). You can also map that to a network drive in windows.

Ex: I have my linux home folder mapped to the Z: drive.


you can use WINSCP or FILEzilla client

Another menthod

you can mound the windows drive and copy and paste the file from LINUX to windows nautilus-connect-server

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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