restricting users to only power control of VMs
Hi,
As the subject suggests, we are wondering whether there is any way to restrict certain classes of users from performing any action other than powering a VM up and down, and resetting it?
If this can't be done with KVM, does anybody have suggestions on how this can be accomplished? The only way I can think of is with a setuid binary that can only start VMs and send reset and shutdown commands to its monitor socket. However, this does seem hackish and can be insecure if it's not written perfectly.
Cheers,
Iordan
Quoted 5 lines · Iordan Iordanov
Hi,
As the subject suggests, we are wondering whether there is any way to restrict certain classes of users from performing any action other than powering a VM up and down, and resetting it?
If this can't be done with KVM, does anybody have suggestions on how this can be accomplished? The only way I can think of is with a setuid binary that can only start VMs and send reset and shutdown commands to its monitor socket. However, this does seem hackish and can be insecure if it's not written perfectly.
It's a job for the management layer; I think it should be easy to script libvirt to do this.
Signature · 1 line
error compiling committee.c: too many arguments to function
Hi Avi,
Quoted 4 lines · Avi Kivity
Quoted 3 lines · Iordan Iordanov
As the subject suggests, we are wondering whether there is any way to restrict certain classes of users from performing any action other than powering a VM up and down, and resetting it?
snip...
Quoted 4 lines
It's a job for the management layer; I think it should be easy to script libvirt to do this.
I read the documentation of libvirt, and out of the box, I don't see how this can be "configured". So, I understand your reply as meaning that we need to write a program that uses the libvirt API to control this? If I haven't understood properly, can you please correct me?
Thanks!
Iordan
Quoted 7 lines · Iordan Iordanov
Quoted 5 lines
It's a job for the management layer; I think it should be easy to script libvirt to do this.
I read the documentation of libvirt, and out of the box, I don't see how this can be "configured". So, I understand your reply as meaning that we need to write a program that uses the libvirt API to control this?
Yes.
Signature · 1 line
error compiling committee.c: too many arguments to function