Schuduled shut down/start of VM


Recommended Posts

Yes. Use User Scripts plugin. Write a script to start / shut down the VM and schedule it using the same plugin.

The commands are

virsh start {domain-id, domain-name or domain-uuid}
virsh shutdown {domain-id, domain-name or domain-uuid}
virsh destroy {domain-id, domain-name or domain-uuid}

First 2 are self-explanatory. Last one is a forced shutdown (the equivalent of unplugging it in old tech).

 

 

 

 

 

Link to comment
3 hours ago, testdasi said:

Yes. Use User Scripts plugin. Write a script to start / shut down the VM and schedule it using the same plugin.

The commands are


virsh start {domain-id, domain-name or domain-uuid}
virsh shutdown {domain-id, domain-name or domain-uuid}
virsh destroy {domain-id, domain-name or domain-uuid}

First 2 are self-explanatory. Last one is a forced shutdown (the equivalent of unplugging it in old tech).

 

 

 

 

 

Thanks.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.