Memory sharing on kvm/qemu

Hello,

If we want to use a shared folder between the guest and the host system on kvm/qemu, we need to enable shared memory in the vm settings.

Doesn’t this create a security risk for the host system? Can malicious stuff pass from the guest to the host system this way? How safe for the host system is this?

Thank you.

1 Like

@knurpht

Hi,

Since no one else seems to be able to answer my question after all this time I’ve posted it, can you help please?

Thanks.

1 Like

Isn’t this about Virtualization? There is a section for Virtualization and that looks much more applicable then just Applications. At least if you want Virtualization gurus to look into this.

2 Likes

@alexsec shared memory is not needed for file sharing? What is the guest operating system?

Edit, unless using virtiofs…

1 Like

@malcolmlewis

Both the host and the guest systems are openSUSE Tumbleweed.

Below are the instructions on how to enable a shared folder on qemu/kvm.

1 Like

@alexsec I just use sshfs to mount a remote filesystem to a linux guest, else you should be fine with virtiofs, AFAIK it’s just a backend.

2 Likes