after a fresh install of Lubuntu 20.04.1 and installation of kvm, qemu and virt-manager I encountered the following problem:
My VM image (which I still have on my third data partition) - it´s BodhiLinux BTW - can be found by virt-manager but it cannot be accessed due to permission problems.
When trying to access it I get the following messages (translated roughly from German):
The emulator doesn´t have search authorization for the path “[…].img”
virt-manager asks if that should be changed; afterwards: changing of the permissions caused some errors: Errno 1 process not allowed
Installation cannot be completed (no authorization)
“During the installation, libvirt-bin creates its own group, this is called libvirtd. All users who are to use VMM must be added to this group.”
(translated from German)
But this is not the case. The group libvirtd doesn´t exist at all , just libvirt, libvirt-dnsmasq and libvirt-qemu.
As this problem seems to be based on permissions granted (or not granted) I tried the following:
As a test I copied the img-file from the third partition to /home/rosika. Now virt-manager works as desired.
It can access the file without any difficulties, i.e. my VM runs perfectly.
As a second step I looked at permissions:
The img-file has got the same permissions on the third partition and on the home partition.:
Thanks for the suggestion. I was thinking along those lines too but still wanted to know what others might think of the matter.
So I´ll try it out and let you know what I will have achieved.
Thanks again.
Many greetings.
Rosika
P.S.:
I got a bit confused as far as the syntax is concerned. Shouldn´t the command be
You wouldn´t believe it, Mina, but it seems changing ownership didn´t solve the problem at all.
Now it´s: -rw-rw-rw- 1 rosika rosika 18G Jan 20 23:10 testing-image.img
It´s really weird, espescially in view of the fact that I haven´t changed anything (except what I did just now). And in Lubuntu bionic virt-manager had no problem running the VM.
there´s still a slight difference of permissions in the folder in which the img-file resides:
drwxrwxr-x 2 rosika rosika 4,0K Jan 22 18:18 kgw_prov # folder on the home partition
drwxrwxrwx 4 rosika rosika 4,0K Jun 20 2020 für_qemu2 # folder on the 3rd partition
No idea whether that would have any effect on the outcome
So sorry, it didn’t help. I’m a bit lost here as I have never used virt-manager (always virtualbox) but there are a couple of reasons, I could imagine.
The version, you installed, just is buggy. No remedy, just wait for an update.
The disk, you mounted, is dynamically mounted in /media/user. Perhaps it would be better to mount the medium permanently through /etc/fstab.
Hmm, you may very well be right here. The thing is: it used to work (bionic) perfectly despite the fact that there´s no fstab-entry for the third partition.
I have the suspicion your point regarding setuid may worth be investigating as the error-text (see my screenshot) refers to something connected to uid as well.
It´s always good and indeed advisable to talk to knowledgeable people like you before taking action of any kind.
Plus: this way I can learn more about the matter in question.
In fact it´s not time I lost but it´s me who has to thank you for taking time out of your day and putting up with my problems.
So at any rate: be thanked once more.
Have a nice day and keep safe.
Many greetings.
Rosika