Results 1 to 7 of 7
aloha, everyone. I'm a newbie in learning Linux. I have Fedora 13 on a virtualBox on my main computer. I am trying to move/copy a file from Linux onto my ...
- 09-16-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
how to copy/transfer files from a VirtualBox linux machine onto host?
aloha, everyone. I'm a newbie in learning Linux. I have Fedora 13 on a virtualBox on my main computer. I am trying to move/copy a file from Linux onto my real machine but I am having trouble finding how...please help. the reason is that my internet won't work on linux. I need to send the file, but i cannot because network is down with the VM machine.
thanks a whole lot for helping! God bless
- 09-16-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Are you SURE the networking is down in the Linux VM? If you open up a terminal, you can run a command to show IP configuration:
If it is up, then you could do several things to get the file across:Code:ip a
1. start an FTP server on Linux (service vsftpd start), then ftp in from your host (I assume it is Windows)
2. start FTP server on Windows and FTP file from Linux side
3. mount Windows/Samba share from Linux, e.g.:
4. start Samba server on Linux, then access the share from WindowsCode:mount -t cifs //<WIN_IPADDR>/<SHARENAME> /localmount -o username=<WIN_USER>
5. start SSH server on Linux, then download WinSCP for Windows and grab the file from the Linux server that way
- 09-16-2011 #3Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
thank you so much! I still don't know how to start ftp on the window 7
ok, so I did activate ftp on linux. where do I configure ftp in window?
- 09-16-2011 #4Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
I ran this command in linux and it got a syntax error
# mount -t cifs //<WIN_IPADDR>/<SHARENAME> /localmount -o username=<WIN_USER>
bash: syntax error near unexpected token `newline'
- 09-16-2011 #5Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
I haven't used Windows 7, but i hope there is still an FTP client there - just open a command prompt (hope there's one of those, too), and do:
ftp <IPADDRESS_OF_LINUX_VM>
I like FileZilla, too.
For mounting the Windows share in Linux, you need to provide somethings, namely the Windows IP address, a valid username on the Windows machine, etc. Don't just copy and paste my command. yours should look something like:
You'll need your Linux ip address (see the 'ip a' command) and your Windows ip address (ipconfig in the command prompt).Code:mount -t cifs //192.168.1.2/MyShare /mnt/window -o username=joeblow
I'd stick with the FTP server in Linux first, before going with Samba/Windows shares.
- 09-16-2011 #6Just Joined!
- Join Date
- Sep 2011
- Posts
- 4
Thank you so much!
I will go try those commands..., I'm greatly appreciated..., l learning new things everyday... so cool this forum!
- 09-17-2011 #7Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Actually, the easiest way is to install the Guest Editions on your VM operating system, then you can specify a directory on your host system to share with the client - in my case I share the host's root directory as /mnt/host-root on the VM system. I have also used NFS to mount directory trees that are exported on the host as well.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote