LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2016, 09:57 PM   #1
^mitchell
LQ Newbie
 
Registered: Jun 2016
Posts: 3

Rep: Reputation: Disabled
How can I copy files from windows to linux in a vm


I need to copy some files over to my linux vm from windows. Do I need to use ssh or samaba?
 
Old 06-17-2016, 10:41 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
You haven't indicated which virtual software you are using so if it is virtualbox, read the link below. If it's something else I'm sure it will be similar and you should be able to find an answer with a simple web search.

http://www.howtogeek.com/187535/how-...guest-machine/
 
2 members found this post helpful.
Old 06-19-2016, 04:16 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
if the virtualbox vm is set up properly (see the how to linked in the previous post), it should be possible without using the network (so no ssh, no samba).
 
Old 06-19-2016, 05:16 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@^mitchell

The easy way is to copy / upload files to e.g 'Google Drive' (Then you also have a backup).

The files can then be downloaded from any OS.
 
Old 06-19-2016, 07:03 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If you're using VirtualBox or VMWare, another option is to set up a shared folder.

See http://www.howtogeek.com/189974/how-...rtual-machine/.
 
Old 06-19-2016, 07:28 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
mkdir ~/Documents/VboxShared
chmod 777 ~/Documents/VboxShared/
Add that to Shared...
Write to/from ~/Documents/VboxShared/ all day long.
Attached Thumbnails
Click image for larger version

Name:	Shutter_Selection_105.png
Views:	37
Size:	45.6 KB
ID:	22140  
 
1 members found this post helpful.
Old 06-20-2016, 02:33 AM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool

Quote:
Originally Posted by knudfl View Post
@^mitchell

The easy way is to copy / upload files to e.g 'Google Drive' (Then you also have a backup).

The files can then be downloaded from any OS.
Agree with this the files is on the cloud and what is needed is a web browser and internet connection.
 
Old 06-20-2016, 04:23 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by JJJCR View Post
Agree with this the files is on the cloud and what is needed is a web browser and internet connection.
I disagree with it as being the "easy way". It depends on an internet connection being available, can take time if huge files are involved, and is unnecessary given the built-in drag-and-drop and shared folders features of VirtualBox. We also have to get over this idea of the "cloud" being some sort of panacea - why transfer your files over to someone else's machine when you don't need to?

However, if we're going down the path of unnecessary abstraction, it introduces yet another way of transferring the files - copy them to a USB stick and then insert that stick into the VM and copy the files over.
 
Old 06-20-2016, 05:18 AM   #9
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool

Quote:
Originally Posted by hydrurga View Post
I disagree with it as being the "easy way". It depends on an internet connection being available, can take time if huge files are involved, and is unnecessary given the built-in drag-and-drop and shared folders features of VirtualBox. We also have to get over this idea of the "cloud" being some sort of panacea - why transfer your files over to someone else's machine when you don't need to?

However, if we're going down the path of unnecessary abstraction, it introduces yet another way of transferring the files - copy them to a USB stick and then insert that stick into the VM and copy the files over.
True indeed, it would solely depends on how you want to do things.

Of course, if you are technical savvy enough to configure Samba, use SCP, use FTP or other way of doing things. Then there's no point of using other services of course. But since we don't know the expertise level of the OP, I pointed out the easy way.

If you have a lot of task in your hands, for me I would prefer the quickest and easy way. But if time is at my hand then of course I will do the other way.


WinSCP can also be used in this scenario to copy files from Windows to the Linux VM or vice versa.

Last edited by JJJCR; 06-20-2016 at 05:19 AM. Reason: edit
 
Old 06-20-2016, 05:49 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Method #2:
from Linux host to Win guest.
Code:
rdesktop ip.of.win.box -u Administrator -p <Admin_pass> -r disk:LQRocks=/home/<user>/Documents/VboxShared/ -r clipboard:PRIMARYCLIPBOARDARD -g 80%
Look for LQRocks under "My Computer"...
Do stuff.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy linux files to new windows os newbie2linux2 Linux - Newbie 2 03-18-2015 10:08 PM
Copy files between Linux and Windows lee_can Linux - Newbie 7 06-13-2011 03:30 PM
Copy files from Linux onto Windows grob115 Linux - Server 3 11-29-2010 01:08 PM
copy files from Windows to Linux tigertim71 Linux - Newbie 3 01-12-2009 10:56 PM
copy files from linux to windows turbo_acura Linux - General 4 11-23-2004 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration