tomaae / homeassistant-truenas

TrueNAS integration for Home Assistant
Apache License 2.0
183 stars 17 forks source link

[Feature] Service "TrueNAS: VM Start" - add an option to start with Overcommit #95

Closed Chouffy closed 12 months ago

Chouffy commented 1 year ago

Is your feature request related to a problem? Please describe.

It's not possible to start a VM with overcommit memory from Home Assistant: If the "TrueNAS: VM Start" service is called and the VM is unable to start because of low memory availability, the VM become unavailable.

Describe the solution you'd like

An update to the service "TrueNAS: VM Start" to be able to send a VM Start to TrueNAS with an option to Overcommit memory (or not). The "Automation: Trigger" service has such a toggle. OR a separate service "TrueNAS: VM Start with Overcommit"

Describe alternatives you've considered

Manually start the VM from TrueNAS

Additional context

I know that we need to pass '{"overcommit": true}' (see the TrueNAS API documentation) to the start command, but I don't know how 🤔

Chouffy commented 12 months ago

Thanks a lot ❤️