Start virtual machine with script

Hello everyone, I need to start a virtual machine via a script, could someone give me an example so I can replicate it on my machine?

thanks in advance

Should be the following:

sudo midclt call vm.start 12345

where 12345 is the the numeric id of the vm.

You might have to find the id of the vm by using:

sudo midclt call vm.query

I have a few start/stop vm scripts here:

2 Likes

Thank you for your availability