casualsnek / cassowary

Run Windows Applications on Linux as if they are native, Use linux applications to launch files files located in windows vm without needing to install applications on vm. With easy to use configuration GUI
GNU General Public License v2.0
2.93k stars 78 forks source link

Constant requests for sudo password #55

Closed juandpineiro closed 2 years ago

juandpineiro commented 2 years ago

Describe the bug When using the host client in full RDP mode or single app mode, the requests for sudo password are constant, sometimes even several requests at the same time.

To Reproduce Steps to reproduce the behavior:

  1. Run cassowary -f and use guest for a couple of minutes, or run in single-app mode and use for a couple of minutes. Password request reads "System policy prevents management of local virtualized systems" This is the same message displayed when opening virt-manger or running cassowary -f or single-app mode for the first time.
  2. The requests persist even after closing the RDP session or closing the single app. The auto-suspend feature is disabled.

Expected behavior Maybe only an initial request when going into full RDP mode or single-app mode?

System information:

EDIT: As mentioned in #1 I added my user to the libvirt kvm and qemu groups to see if the behavior improves.

casualsnek commented 2 years ago

Looks like the usergroup issue to me, and i don't know much about how silverblue handles groups !

If you are not using using autosuspend you can leave VM name blank and save changes which will prevent cassowary from using libvirt. If is is issue with groups i will check if i can get it working and update readme but this may take some time !

By the way can you check if your user is in libvirt group even after reboot ?

Can you check if starting, stopping or pausing vm using virt-manager shows password prompt too ?

juandpineiro commented 2 years ago

Ok this was dumb. I followed the same procedure as in #1 but I had a typo in my /etc/group file. Now it's working fine and virt-manager and when using cassowary it won't ask for a password. Thanks! Closing.

EDIT: But yeah I would recommend advising that users include their username into the pertinent groups