It is currently Fri Dec 15, 2017 1:16 am
All times are UTC + 8 hours

[HOWTO] start and stop VM with your NAS.

Just about everything is virtual these days. Topics relating to virutalization go here.

Re: [HOWTO] start and stop VM with your NAS.

Postby sksbir » Thu Oct 05, 2017 3:11 pm

docb wrote:It works like a charm. I probably would have worked from the start if I did not try to run it from shell first :?
Is there a possibility to run your script before/after the NAS goes to standby? Right now I have massive problems with my VM after a NAS wake up on lan from standby - I always need to rebot the VM after that. So it would be better just to shut it down / restart when the NAS goes to standy / wakes up.


I think no : If NAS is going to standby, it's because there is no activity, and you request it to have some activity ( freeze or stop VM ) because it have no activity ? 8-)
imho, a NAS who hosts VM should never standby.
sksbir
 
Posts: 249
Joined: Tue Aug 25, 2015 9:23 pm

Re: [HOWTO] start and stop VM with your NAS.

Postby docb » Thu Oct 05, 2017 3:28 pm

Well I often don't really need the nas running when I am on duty. And to save power that would be a nice thing. Bit maybe I just turn it off then, cause your wonderful script works then ;-) By the way, do you know a way to shut it down remotely from another server by script. I just can imagine to open a ssh via the script and pass the credentials which would really not be a safe way
docb
 
Posts: 30
Joined: Sat Sep 09, 2017 1:34 am

Re: [HOWTO] start and stop VM with your NAS.

Postby sksbir » Thu Oct 05, 2017 4:35 pm

docb wrote:Well I often don't really need the nas running when I am on duty. And to save power that would be a nice thing. Bit maybe I just turn it off then, cause your wonderful script works then ;-) By the way, do you know a way to shut it down remotely from another server by script. I just can imagine to open a ssh via the script and pass the credentials which would really not be a safe way

Yes it's a safe way if you don't pass the credential but use key based authentication.
for example : https://www.digitalocean.com/community/ ... nux-server

With this solution, you can remotely invoke a local shell which will freeze or shutdown your WM, take care that they are no more active, and shutdown down the NAS after that.
Maybe remotely brings your NAS to sleep is still working ( take a look at the end of this topic )
sksbir
 
Posts: 249
Joined: Tue Aug 25, 2015 9:23 pm

Re: [HOWTO] start and stop VM with your NAS.

Postby docb » Fri Oct 06, 2017 8:41 pm

Perfect - it works like a charm! Thany you so much for your help!
docb
 
Posts: 30
Joined: Sat Sep 09, 2017 1:34 am

Previous

Return to Virtualization

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest