[GH-ISSUE #182] Feature-Request: Staff users staring their own VMs #121

Closed
opened 2026-02-27 15:57:25 +03:00 by kerem · 4 comments
Owner

Originally created by @lord-kyron on GitHub (Sep 13, 2018).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/182

@catborise rise - is it too hard do add a logic decision to the start instance process. For example I exposed createing VM to my staff users, but I don't want they to see the actual compute nodes. So when they create a new VM and press the start button, I need some logic which can check the available compute nodes ram capacity for example and always start the VM to the one with more free resource.

Originally created by @lord-kyron on GitHub (Sep 13, 2018). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/182 @catborise rise - is it too hard do add a logic decision to the start instance process. For example I exposed createing VM to my staff users, but I don't want they to see the actual compute nodes. So when they create a new VM and press the start button, I need some logic which can check the available compute nodes ram capacity for example and always start the VM to the one with more free resource.
kerem closed this issue 2026-02-27 15:57:25 +03:00
Author
Owner

@catborise commented on GitHub (Sep 14, 2018):

scheduling mechanism is hard and webvirtcloud does not provide any feature which is not presented in libvirt. this mechanism is "Dynamic resource scheduler" in vmware and it needs solid migration mechanism.
but we can do some simple job to workaround. while creating(not starting) instance we can check all compute's resources and pick available one to create vm on that compute. is it a solution for you?

<!-- gh-comment-id:421366286 --> @catborise commented on GitHub (Sep 14, 2018): scheduling mechanism is hard and webvirtcloud does not provide any feature which is not presented in libvirt. this mechanism is "Dynamic resource scheduler" in vmware and it needs solid migration mechanism. but we can do some simple job to workaround. while creating(not starting) instance we can check all compute's resources and pick available one to create vm on that compute. is it a solution for you?
Author
Owner

@lord-kyron commented on GitHub (Sep 14, 2018):

Yes, it soulds perfectly fine. I just need two basic things to be done:

  • when a staff user is creating a VM, the prompt window for "Choose a compute" to NOT appear (only for staff users, but for Admin it should still be available)
  • when this prompt widnows is NOT shown, actually some simple logic of checking computes free resources (I think RAM is the one that matter most in this case) and choose the one with the most free resources to create the VM on.
<!-- gh-comment-id:421373623 --> @lord-kyron commented on GitHub (Sep 14, 2018): Yes, it soulds perfectly fine. I just need two basic things to be done: - when a staff user is creating a VM, the prompt window for "Choose a compute" to NOT appear (only for staff users, but for Admin it should still be available) - when this prompt widnows is NOT shown, actually some simple logic of checking computes free resources (I think RAM is the one that matter most in this case) and choose the one with the most free resources to create the VM on.
Author
Owner

@lord-kyron commented on GitHub (Sep 14, 2018):

By the way @catborise you can look at my modified repo yo check how I've exposed the vm creation for my staff users

<!-- gh-comment-id:421398470 --> @lord-kyron commented on GitHub (Sep 14, 2018): By the way @catborise you can look at my modified repo yo check how I've exposed the vm creation for my staff users
Author
Owner

@lord-kyron commented on GitHub (Sep 18, 2018):

@catborise I will be very thankful you to take a look and help with such simple logic wheb you have time for it. It will hrlp me a lot.

<!-- gh-comment-id:422344065 --> @lord-kyron commented on GitHub (Sep 18, 2018): @catborise I will be very thankful you to take a look and help with such simple logic wheb you have time for it. It will hrlp me a lot.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#121
No description provided.