Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM management for sanzu broker #52

Open
serpilliere opened this issue Jul 6, 2022 · 4 comments
Open

VM management for sanzu broker #52

serpilliere opened this issue Jul 6, 2022 · 4 comments

Comments

@serpilliere
Copy link
Contributor

Thank you for your help, I have now a better understanding of Sanzu and how it works.

I don't know if I should open another issue for this question, but I was wondering how does your VM cluster work. Indeed, I'm trying to have a better understanding of the structure but I didn't find something in the source code concerning the call of VM or something similar yet.

I saw in SSTIC acts that you are using a VMM and that there is a script run by the broker that took a free VM in a pool of unassigned VMs already started and once it's done, the VMM re-runs another VM so I was wondering what VMM did you use and how do you proceed to create this VM pool (VM templating...) ?

Originally posted by @rbah31 in #40 (comment)

@serpilliere
Copy link
Contributor Author

We have coded a kind of "virtual machine orchestrator".
The code is very simple (about 300 lines of rust):

  • it starts vm until a certain number is reached.
  • those vm are "orphan", ie not linked to a user
  • if someone connects through sanzu_broker the script launched by the broker takes, as you said, an orphan vm and associates it to the connected user. This way, the vm is not marked as orphan anymore.
  • as the number of orphan as decreased, the 'virtual machine orchestrator' spawns new vm.

The 'virtual machine orchestrator' uses xml templates to describe libvirt configuration, and add user informations at connection time.

We haven't published the 'virtual machine orchestrator', as it may be linked to you architecture, but we may add it to the sanzu anyway in the future. Keep in mind that there may be other ways to do this using on the shelves orchestrators and you are not linked to this custom "virtual machine orchestrator"

@rbah31
Copy link

rbah31 commented Jul 18, 2022

Thanks for the answer,

What I would like to do is the deployment of my own VM cluster and indeed, the method that you used was the one I was thinking of because I am also using a custom VM orchestrator (VMware vCenter). I am curious about the parameters you attribute to a VM and how much resources it consumes.

@serpilliere
Copy link
Contributor Author

Hi @serpilliere
the VM resources depend on what you are doing on the vm / what you want to do. You will have different need if you do gaming in the VM or if you only lanch a client mail for example

@rbah31
Copy link

rbah31 commented Jul 19, 2022

Hi,

thank you for all answers @serpilliere !
I will probably come back to you in another thread soon concerning authentication ! (I would like to implement OIDC Authentication but it is for another time 😁)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants