You are not logged in.
I wish to share a folder, so I created a directory, Shared, in downloads and gave it chmod 777 permissions.
chmod 777 -R Shared Then, I updated the samba config in /etc/sambo/smb.conf
[global]
server role = standalone server
map to guest = bad user
usershare allow guests = yes
hosts allow = 192.168.0.0/16
hosts deny = 0.0.0.0/0
[Shared]
comment = shared folder attempt
path = /home/special/Downloads/Shared
read only = no
public = yes
valid users = special
guest ok = yesAnd reloaded the samba services,
systemctl restart smb The VM works fine, but as soon as I add a file system in virt-manager I get an error, that the permissions to the Shared folder is denied.
Error starting domain: internal error: process exited while connecting to monitor: 2021-04-09T07:15:59.964600Z qemu-system-x86_64: -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=/shared,bus=pci.7,addr=0x0: cannot initialize fsdev 'fsdev-fs0': failed to open '/home/special/Downloads/Shared': Permission denied
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1329, in startup
self._backend.create()
File "/usr/lib/python3.9/site-packages/libvirt.py", line 1353, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2021-04-09T07:15:59.964600Z qemu-system-x86_64: -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=/shared,bus=pci.7,addr=0x0: cannot initialize fsdev 'fsdev-fs0': failed to open '/home/special/Downloads/Shared': Permission deniedThis is the config of the file system in virt manager:
<filesystem type="mount" accessmode="mapped">
<source dir="/home/special/Downloads/Shared"/>
<target dir="/shared"/>
<address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
</filesystem>I have seen a lot of posts about this, but non of the solutions worked.
I have noticed that in the settings for the VM, I don't have "Driver" option, under file system and cannot figure out how to enable that.
***Work around***
I followed the steps for QEMU on the following page and I can at least copy files between image and Host machine, when Image is not running.
https://www.xmodulo.com/mount-qcow2-dis … linux.html
***Solution***
https://github.com/jedi4ever/veewee/issues/996
had to add/change the following in etc/libvirt/qemu.conf
user = "special"
group = "special"Last edited by Lyralei (2021-04-10 11:16:15)
Offline
I assume special is NOT the user running the VM ?
please post the output of
$ ls -l /home /home/special /home/special/Downloads /home/special/Downloads/SharedDisliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
How does that even work together?
valid users = special
guest ok = yes
Offline
Okay, I fount the solution.
https://github.com/jedi4ever/veewee/issues/996
had to add/change the following in etc/libvirt/qemu.conf
user = "special"
group = "special"Many thanks!
Last edited by Lyralei (2021-04-10 11:15:59)
Offline
How does that even work together?
valid users = special
guest ok = yes
I tried all the configs, one but one.
first it was only valid users, then I say a config in which they had the guest line, so I added it and updated samba, it didn't showed any errors.
But I found a solution anyway. Thanks for the reply!
Offline