It is currently Fri Dec 15, 2017 1:10 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 » Sun Oct 01, 2017 4:43 am

hi
i have no idea about what's happen. i suggest you to create a ticket to asustor support.
sksbir
 
Posts: 249
Joined: Tue Aug 25, 2015 9:23 pm

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

Postby docb » Sun Oct 01, 2017 5:18 am

thank you very much for all your help! I've created a ticket right now. Let's see if they can help...
docb
 
Posts: 30
Joined: Sat Sep 09, 2017 1:34 am

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

Postby sksbir » Sun Oct 01, 2017 6:51 am

one more question : did you reboot your NAS since you have installed virtualbox ?
sksbir
 
Posts: 249
Joined: Tue Aug 25, 2015 9:23 pm

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

Postby docb » Sun Oct 01, 2017 7:00 am

About 100 times ;-) That's my first choice to solve problems ;-)
docb
 
Posts: 30
Joined: Sat Sep 09, 2017 1:34 am

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

Postby docb » Wed Oct 04, 2017 3:56 pm

OMG, I found it out myself. I did not give up as I hate it when the CPU wins. You wouldn't believe it. Asustor support might laugh at me ;-) It is really the problem no. 1 when something doesn't work on linux and I did not think of it... :lol:
The problem is, that it needs to be started with sudo ;-)
Now I only have one problem left - if I put the scripts in
/usr/local/etc/init.d/S82VName - do they get sudo rights by themselves?
docb
 
Posts: 30
Joined: Sat Sep 09, 2017 1:34 am

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

Postby sksbir » Wed Oct 04, 2017 4:16 pm

docb wrote:OMG, I found it out myself. I did not give up as I hate it when the CPU wins. You wouldn't believe it. Asustor support might laugh at me ;-) It is really the problem no. 1 when something doesn't work on linux and I did not think of it... :lol:
The problem is, that it needs to be started with sudo ;-)
Now I only have one problem left - if I put the scripts in
/usr/local/etc/init.d/S82VName - do they get sudo rights by themselves?

sudo ? I never used sudo here, because the only one account available with ssh connection to the NAS is root. ( so it was with ADM 2.7, I will check if they changed that with ADM 3 )

so how do you connect to your NAS ?

About startup script, you don't need to sudo anything, because it's already root who act here to execute the scripts.
sksbir
 
Posts: 249
Joined: Tue Aug 25, 2015 9:23 pm

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

Postby docb » Wed Oct 04, 2017 4:24 pm

I connect via MobaXterm with ssh in admin account. But I need sudo for some things, eg. to cd into /opt/Virtualbox
I will add a pushover message into your script and test it in the init.d directory.
docb
 
Posts: 30
Joined: Sat Sep 09, 2017 1:34 am

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

Postby docb » Wed Oct 04, 2017 4:28 pm

Do i need to give the script some rights / a specific owner via chmod / chown?
docb
 
Posts: 30
Joined: Sat Sep 09, 2017 1:34 am

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

Postby sksbir » Wed Oct 04, 2017 7:51 pm

docb wrote:I connect via MobaXterm with ssh in admin account. But I need sudo for some things, eg. to cd into /opt/Virtualbox
I will add a pushover message into your script and test it in the init.d directory.

admin and root have the same password, just connect directly with root to your NAS...

docb wrote:Do i need to give the script some rights / a specific owner via chmod / chown?

put the same rights/owner that other stuff in /usr/local/etc/init.d ( root and executable )...
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 1:11 pm

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.
docb
 
Posts: 30
Joined: Sat Sep 09, 2017 1:34 am

PreviousNext

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