Re: VM won't start from virt-manager -- Unable to open system.token

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael,

Thanks for the quick response.

I see the following:

[Tue, 02 Jan 2024 15:27:09 virt-manager 4054] DEBUG (connection:482)
conn=qemu:///system changed to state=Active
[Tue, 02 Jan 2024 15:27:13 virt-manager 4054] DEBUG (vmmenu:210)
Starting vm 'testFedora'
[Tue, 02 Jan 2024 15:27:13 virt-manager 4054] DEBUG (error:101) error
dialog message:
summary=Error starting domain: can't connect to virtlogd: Unable to
open system token /run/libvirt/common/system.token: Permission denied
details=Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in
cb_wrapper 
    callback(asyncjob, *args, **kwargs) 
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, 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
1402, in startup
    self._backend.create()
  File "/usr/lib64/python3.12/site-packages/libvirt.py", line 1373, in
create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: can't connect to virtlogd: Unable to open system
token /run/libvirt/common/system.token: Permission denied

[Tue, 02 Jan 2024 15:46:48 virt-manager 4054] DEBUG (manager:196)
Closing manager
[Tue, 02 Jan 2024 15:46:48 virt-manager 4054] DEBUG (engine:323) window
counter decremented to 0
[Tue, 02 Jan 2024 15:46:48 virt-manager 4054] DEBUG (engine:343) No
windows found, requesting app exit
[Tue, 02 Jan 2024 15:46:48 virt-manager 4054] DEBUG (connection:838)
conn.close() uri=qemu:///system

After further investigation, I see that /run/libvirt/common has
permissions of:
drwx------. 2 root root 60 Jan  1 22:44 common

Since I am running virt-manager from my userid, I think this is
probably the issue.

Any suggestions on how to access /run/libvirt/common/system.token as a
non-priviledged user of virt-manager?


On Tue, 2024-01-02 at 16:21 +0000, Michael Kjörling wrote:
> On 2 Jan 2024 09:47 -0600, from john@xxxxxxxxxxxx (John W. Himpel):
> > I just updated libvirt to 9.10.0-3 and virt-manager to 4.1.0-4. 
> > Before
> > the update, I could start my defined VMs from virt-manager without
> > issue.  Now I get the following:
> > 
> > Error starting domain: can't connect to virtlogd.  Unable to open
> > system.token /run/libvirt/common/system.token: Permission  denied
> > 
> > I am running virt-manager from my unpriviledged userid.  My userid
> > is
> > already a member of the libvirt group.
> > 
> > I see no error messages in the journal or in any of the logs under
> > /var/log
> > 
> > Any suggestions would be greatly appreciated.
> 
> Have you checked ~/.cache/virt-manager/virt-manager.log for clues?
> See
> virt-manager(1) under --debug.
> 
> -- 
> Michael Kjörling                     🔗 https://michael.kjorling.se
> “Remember when, on the Internet, nobody cared that you were a dog?”
> _______________________________________________
> Users mailing list -- users@xxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxx
_______________________________________________
Users mailing list -- users@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux