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

Share VM between resource set members #340

Open
thiago-felipe-99 opened this issue Jan 27, 2025 · 1 comment
Open

Share VM between resource set members #340

thiago-felipe-99 opened this issue Jan 27, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@thiago-felipe-99
Copy link

Xen Orchestra already supports VM sharing between members in the Resource Set, this can be defined when creating a VM in the Advanced tab:

Image

And in the Misc tab on the VM Advanced page:

Image

Is there a plan to support this feature?

OBS:

  • This property can be defined by xo-cli:
xo-cli vm.create name_label="MY VM" template=<template_id> resourceSet=<resource_set_id> share=true
# Or
xo-cli vm.set id=<vm_id> share=true
  • There is already a comment in client/vm.go and I don't understand the problem of it not being supported.
@gCyrille
Copy link
Collaborator

Hi @thiago-felipe-99

The only way to share a VM is to use the gui or xo-cli.

What you can do with the terraform provider is to attach a resource set to a VM. This resource set can have the option "Share VMs by default" so that the new VM should be shared.
Unfortunately you cannot create a resource set with this option in terraform, but you can import it.

I don't know why there is this comment in the source code, nor why the "shared by default" option is not available in the terraform resource set. I will investigate.

If you feel comfortable, feel free to make a PR for this :)

@gCyrille gCyrille added the enhancement New feature or request label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants