Switch to 'mapped' access mode for hostfs
Passthrough mode only works as expected when running as root. On Debian/Ubuntu systems qemu runs as user 'libvirt-qemu' and group 'kvm' so all shared files must be chowned to grant access from guests. Symlinks created on the host are still problematic because the Plan 9 filesystem has no direct notion of symbolic links, see [1]. [1] - http://ericvh.github.com/9p-rfc/rfc9p2000.u.html
This commit is contained in:
committed by
Tobias Brunner
parent
677795c3e7
commit
2c4954ad24
@@ -30,7 +30,7 @@
|
||||
<controller type='usb' index='0'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||
</controller>
|
||||
<filesystem type='mount' accessmode='passthrough'>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<source dir='/var/run/kvm-swan-hostfs'/>
|
||||
<target dir='/hostshare'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<controller type='usb' index='0'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||
</controller>
|
||||
<filesystem type='mount' accessmode='passthrough'>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<source dir='/var/run/kvm-swan-hostfs'/>
|
||||
<target dir='/hostshare'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<controller type='usb' index='0'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||
</controller>
|
||||
<filesystem type='mount' accessmode='passthrough'>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<source dir='/var/run/kvm-swan-hostfs'/>
|
||||
<target dir='/hostshare'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<controller type='usb' index='0'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||
</controller>
|
||||
<filesystem type='mount' accessmode='passthrough'>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<source dir='/var/run/kvm-swan-hostfs'/>
|
||||
<target dir='/hostshare'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<controller type='usb' index='0'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||
</controller>
|
||||
<filesystem type='mount' accessmode='passthrough'>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<source dir='/var/run/kvm-swan-hostfs'/>
|
||||
<target dir='/hostshare'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<controller type='usb' index='0'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||
</controller>
|
||||
<filesystem type='mount' accessmode='passthrough'>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<source dir='/var/run/kvm-swan-hostfs'/>
|
||||
<target dir='/hostshare'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<controller type='usb' index='0'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||
</controller>
|
||||
<filesystem type='mount' accessmode='passthrough'>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<source dir='/var/run/kvm-swan-hostfs'/>
|
||||
<target dir='/hostshare'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<controller type='usb' index='0'>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
||||
</controller>
|
||||
<filesystem type='mount' accessmode='passthrough'>
|
||||
<filesystem type='mount' accessmode='mapped'>
|
||||
<source dir='/var/run/kvm-swan-hostfs'/>
|
||||
<target dir='/hostshare'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
|
||||
|
||||
Reference in New Issue
Block a user