filesystem access - document file ownership requirements
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
virt-manager (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
I have configured host filesystem access via virt-manager.
<filesystem type='mount' accessmode=
<source dir='/tmp/share1'/>
<target dir='/hostshare1'/>
<alias name='fs0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
</filesystem>
<filesystem type='mount' accessmode=
<source dir='/tmp/share2'/>
<target dir='hostshare2'/>
<alias name='fs1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
</filesystem>
now, in the guest, I can mount /hostshare1 -t 9p -o trans=virtio,
but I cannot list the directory. I get a permission denied error.
cat /etc/apparmor.
# DO NOT EDIT THIS FILE DIRECTLY. IT IS MANAGED BY LIBVIRT.
"/var/
"/var/
"/var/
"/run/
"/var/
"/run/
"/var/
"/tmp/share1/**" rwl,
"/tmp/share1/" r,
"/tmp/share2/**" rwl,
"/tmp/share2/" r,
/dev/vhost-net rw,
"/dev/net/tun" rw,
but I needed to
sudo aa-complain libvirt/
in order to be able to list the directory. I cannot read or write files, though.
I expected it to work fine.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: libvirt-bin 1.2.12-0ubuntu11
ProcVersionSign
Uname: Linux 3.19.0-13-generic x86_64
ApportVersion: 2.17-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Apr 17 10:15:24 2015
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
Changed in libvirt (Ubuntu): | |
importance: | Undecided → Medium |
summary: |
- virtual machine cannot access p9 filesystem + filesystem access - document file ownership requirements |
Changed in libvirt (Ubuntu): | |
status: | Incomplete → Triaged |
no longer affects: | virt-manager |
Changed in virt-manager (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
libvirt domains are not allowed to access /tmp. Could you please try using
a different path, perhaps under your home directory, as the source dir?
status: incomplete