The officially official Devuan Forum!

You are not logged in.

#1 2023-09-05 07:17:14

hejik
Member
Registered: 2023-07-21
Posts: 10  

Qemu shared folder

Is there a way to run a qemu-kvm VM with a shared folder via terminal?

Offline

#2 2023-09-05 12:18:34

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,132  

Re: Qemu shared folder

Online

#3 2023-09-05 12:41:29

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,427  

Re: Qemu shared folder

I've done it with sshfs, either mounting a directory from the host on the VM or the other way, mounting a directory in the VM on the host.  The former can be done without any network options in the qemu command. You do need to have sshfs installed.

sshfs user@host-ip:/home/user/some-subdirectory  some-mountpoint-in-the-VM

fusermount -u some-mountpoint-in-the-VM   # to un-mount the share

I've done it with nfs, too. That's a little more involved. You can even set it up with autofs so the share mounts automatically when you access the mountpoint.

Offline

#4 2023-09-05 21:19:23

pcalvert
Member
Registered: 2017-05-15
Posts: 195  

Re: Qemu shared folder

ralph.ronnquist wrote:

I've used this. It works. I like the fact that a normal, non-root user can write to the shared directory from the guest system. I seem to recall that on VirtualBox I always had to be root in order to do that.


Freespoke is a new search engine that respects user privacy and does not engage in censorship.
Another one is called Luxxle.

Offline

Board footer