[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] No permission to write to a mounted filesystem in a KVM g
From: |
W Forum W |
Subject: |
[Qemu-discuss] No permission to write to a mounted filesystem in a KVM guest |
Date: |
Thu, 4 Feb 2016 15:47:10 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 |
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!!
- [Qemu-discuss] No permission to write to a mounted filesystem in a KVM guest,
W Forum W <=