kimchi-project / wok

A cherrypy framework for multi-purpose plug-ins
https://github.com/kimchi-project/wok/releases/latest
Other
236 stars 77 forks source link

Working with no sudo rights #260

Open tmtuanctu opened 5 years ago

tmtuanctu commented 5 years ago

Hello all,

Can we use Kimchi to manage KVM with non-sudo users? Kimchi is working perpecfly in my system with sudo users. However, when I log in with a non-sudo user, there's no Wok tab and the Guests tab show "No guests found."

Thank you, Tuan

alinefm commented 5 years ago

Hi @TuanThai !

You can give user access to the virtual machines you want non-sudo users to access. Select the VM > Edit VM > Permission tab and select users and/or groups you want to access this specific VM.

Yes, you need to do that for all the VMs you want others to access.

I hope that is enough for your use case.

brizao commented 5 years ago

Hi,

If I use the latest version of branch master, Guests tab also shows "No guests found" even if I'm logged with root. The log shows:

wokd[24374]: ERROR:cherrypy.error:Problem in lookup of resource 'debian9'. Detail: No section: 'kimchi'

But if I use the stable 2.5.x version (kimchi and wok), it works normally, I don't know if that's the cause, using different versions...

alinefm commented 5 years ago

Hey @brizao

Wok and Kimchi from master branches are on Python3, which means a lot of changes. But any of those should cause this behavior. Do you have all python3 dependencies installed?

brizao commented 5 years ago

Hi Aline,

When I replied it still was on python2 version. I couldn't fully test with python3 because I'm still using debian 9 and there are some dependencies that are not on the repositories.

Nowadays I'm using cockpit project which works well for me so far, but I'm curious to try with python3 in the future.