qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] No permission to write to a mounted filesystem in a K


From: W Forum W
Subject: Re: [Qemu-discuss] No permission to write to a mounted filesystem in a KVM guest
Date: Wed, 10 Feb 2016 09:42:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

Hi,
Anyone can help??
Thanks!!

On 02/04/2016 03:47 PM, W Forum W wrote:
Hi,

I am trying to 'squash' a kvm host filesystem to a kvm guest.

My libvirt xml looks like
<filesystem type='mount' accessmode='squash'>
      <source dir='/data/servers'/>
      <target dir='/servers'/>
</filesystem>

I also tried the accessmode passthrough

On the guest I mount the filesystem with
mount -t 9p -o trans=virtio,version=9p2000.L /servers /mnt

When I try to write a file/directory I always get permission denied
but I can read the mounted filesystem normally.

I use qemu-kvm from Debian Stretch
libvirtd --version
libvirtd (libvirt) 1.3.1
kvm --version
QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5), Copyright (c) 2003-2008 Fabrice Bellard
uname -a
Linux 4.3.0-1-amd64 #1 SMP Debian 4.3.3-7 (2016-01-19) x86_64 GNU/Linux
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux stretch/sid"

Is there something I overlook, or do I need to find another solution for sharing host filesystem?

Many Thanks!!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]