Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?)

Edit:

  • 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?
share|improve this question
add comment

7 Answers

up vote 1 down vote accepted

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.

share|improve this answer
add comment

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.

share|improve this answer
    
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
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
    
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
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

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

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.