Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-29-2021, 01:42 PM
|
#1
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,936
|
How do I enable drag & drop files to and from Host & Guest VMs in GNOME Boxes?
Hi.
I'm using Debian 11 + MATE.
I can mount a USB in the VM but would also like to copy text + files to and from the Host~Guest. I've installed the spice-vdagent package inside the VM.
Thanks.
|
|
|
11-29-2021, 09:13 PM
|
#2
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
I cannot answer about the gui. I suspect not because those are 2 different machines.
However, rsync will copy files back and forth for you all day if you wish.
|
|
|
11-30-2021, 06:37 AM
|
#3
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,936
Original Poster
|
Quote:
Originally Posted by computersavvy
I cannot answer about the gui. I suspect not because those are 2 different machines.
However, rsync will copy files back and forth for you all day if you wish.
|
Hi computersavvy. Hmm, where to begin with rsync from host to guest. 🤔
Last edited by linustalman; 11-30-2021 at 07:15 AM.
|
|
|
11-30-2021, 08:54 AM
|
#4
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Rsync is quite flexible. If not already installed then install it. The man page tells how it works. Once you have tried it ask questions specifically about what you do not understand.
The following is part of the help that it provides if the command is given no arguments.
Code:
$ rsync
rsync version 3.2.3 protocol version 31
Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, hardlink-specials, symlinks, IPv6, atimes,
batchfiles, inplace, append, ACLs, xattrs, optional protect-args, iconv,
symtimes, prealloc, stop-at, no crtimes
Optimizations:
SIMD, asm, openssl-crypto
Checksum list:
md5 md4 none
Compress list:
zstd lz4 zlibx zlib none
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
rsync is a file transfer program capable of efficient remote update
via a fast differencing algorithm.
Usage: rsync [OPTION]... SRC [SRC]... DEST
or rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST
or rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST
or rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST
or rsync [OPTION]... [USER@]HOST:SRC [DEST]
or rsync [OPTION]... [USER@]HOST::SRC [DEST]
or rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect
to an rsync daemon, and require SRC or DEST to start with a module name.
|
|
|
11-30-2021, 09:05 AM
|
#5
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,936
Original Poster
|
Rsync between a host and VM surely brings lots of hurdles though?
|
|
|
11-30-2021, 09:29 AM
|
#6
|
Senior Member
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,522
|
I sftp from guest to host, that's easier than setting up shared folders.
Open file manager, put sftp://hostname into address bar.
Then you can drag and drop within the file manager....
Not sure how to do it without using file manager tho.
|
|
|
11-30-2021, 09:32 AM
|
#7
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Almost none. Particularly between the host and VM. Rsync is a very capable copy tool and can be easily used in almost any scenario.
Once you try it and get comfortable it should handle all your needs at least as well as drag & drop.
Just as a further tidbit of info.
I use Fedora with a fedora VM running under QEMU/KVM. I tried a drag & drop between the 2 systems (host to guest) and it worked (the transferred file was placed in the Downloads folder). So it is possible drag & drop could work for you as well. It really depends on the type of vm manager you are using and I have no experience with gnome boxes.
Last edited by computersavvy; 12-01-2021 at 10:32 AM.
|
|
|
11-30-2021, 05:43 PM
|
#8
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,191
|
VirtualBox, for instance, does support "drag and drop" between host and guest, but this does require you to install a particular kernel module on the Linux side as explained in the instructions.
|
|
|
12-11-2021, 02:19 AM
|
#9
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,936
Original Poster
|
I'll just stick to using a USB drive to copy the odd file from host to guest - keeping it simple. 
|
|
|
12-12-2021, 10:25 PM
|
#10
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,191
|
"Drag and drop" between host and guest is available in some virtual-machine environments, and it requires a custom kernel module and related software to be installed onto the guest. I have had decidedly-mixed results with it. "Shared drives," where a host directory appears as a mount-point to the guest, are usually a more successful approach to me, and the concept works regardless of what sort of guest/host it is. It's now a two-step instead of a one-step process but it usually works well enough to get by.
|
|
|
12-14-2021, 12:35 AM
|
#11
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,936
Original Poster
|
Quote:
Originally Posted by sundialsvcs
"Drag and drop" between host and guest is available in some virtual-machine environments, and it requires a custom kernel module and related software to be installed onto the guest. I have had decidedly-mixed results with it. "Shared drives," where a host directory appears as a mount-point to the guest, are usually a more successful approach to me, and the concept works regardless of what sort of guest/host it is. It's now a two-step instead of a one-step process but it usually works well enough to get by.
|
Hi sundialsvcs. I'll stick to the shared folder/USB route.
|
|
|
12-14-2021, 06:50 AM
|
#12
|
Senior Member
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: LMDE 6
Posts: 1,236
|
This is one of the many benefits of keeping a small home file server around. In my case I just have the shares mounted in both the vms and the hosts. I don't have to bother moving anything around for the most part.
|
|
|
All times are GMT -5. The time now is 03:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|