LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 11-29-2021, 01:42 PM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,754

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question 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.
 
Old 11-29-2021, 09:13 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
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.
 
Old 11-30-2021, 06:37 AM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,754

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by computersavvy View Post
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.
 
Old 11-30-2021, 08:54 AM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
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.
 
Old 11-30-2021, 09:05 AM   #5
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,754

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Rsync between a host and VM surely brings lots of hurdles though?
 
Old 11-30-2021, 09:29 AM   #6
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,417

Rep: Reputation: 565Reputation: 565Reputation: 565Reputation: 565Reputation: 565Reputation: 565
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.
 
Old 11-30-2021, 09:32 AM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
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.
 
Old 11-30-2021, 05:43 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,715
Blog Entries: 4

Rep: Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951
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.
 
Old 12-11-2021, 02:19 AM   #9
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,754

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I'll just stick to using a USB drive to copy the odd file from host to guest - keeping it simple.
 
Old 12-12-2021, 10:25 PM   #10
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,715
Blog Entries: 4

Rep: Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951
"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.
 
Old 12-14-2021, 12:35 AM   #11
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,754

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Thumbs up

Quote:
Originally Posted by sundialsvcs View Post
"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.
 
Old 12-14-2021, 06:50 AM   #12
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,161

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
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.
 
  


Reply

Tags
drag & drop, files, gnome boxes, share


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Qemu/VMS, new guest not cooperating with passed-through GPU despite working on old guest. lawnm0wer Slackware 0 04-06-2020 11:45 PM
LXer: VirtualBox 5.0 Brings Full Drag and Drop Between Host and Guest LXer Syndicated Linux News 0 07-10-2015 08:42 AM
LXer: VirtualBox 4.2.0 Released With Support For Drag'n'drop From Host To Linux Guests, More LXer Syndicated Linux News 0 09-13-2012 03:20 PM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
moved to Gnome 3 and can't drag and drop urls anymoe pwalden Linux - Desktop 3 01-05-2012 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:56 PM.

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