overcommit an vm when start from CLI

flymin

Dabbler
Joined
Oct 8, 2022
Messages
10
I want to set a schedule to restart my VM. Due to some problems with VM, I have to power off and then start (cannot use the restart command).

I have figured out that I can use command
Code:
midclt call vm.start 2
to start a VM. However, I need to overcommit the memory. This is possible with GUI, but it seems not through CLI. According to the source code on github, there is an option to allow overcommit, but I do not know how to pass the options through CLI.

Any help with this?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
midclt call vm.start 2 '{"overcommit": true}'

This should do it.
 

flymin

Dabbler
Joined
Oct 8, 2022
Messages
10
Top