https://rancher.com/ logo
Title
s

stale-painting-80203

10/26/2022, 9:43 PM
On a Harvester server is there a way to start a VM using CLI instead of the WebUI? I need it for a script to shutdown a cluster and to start it up later.
g

great-bear-19718

10/27/2022, 12:15 AM
you could use
virtctl
along with the harvester kubeconfig to manage the state of VM’s if needed
m

miniature-hairdresser-1087

10/27/2022, 3:01 PM
We use terraform for that, but for a scripted usage, I think @great-bear-19718's solution makes sense. TIL about virtctl!
r

red-king-19196

10/28/2022, 5:02 AM
@stale-painting-80203 Maybe you could give [this](https://github.com/belgaied2/harvester-cli) a try
s

stale-painting-80203

10/28/2022, 3:26 PM
Will check it out. Thanks