Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VM wont shutdown - assistance needed

Featured Replies

Hi ... am a VM newbie with a couple of vms built and running but how on earth do i PROPERLY shut these down, they just seem to hang around with 'shutting down' status but never do. I'm asuming its not good practice to have to force shut each time so what's the procedure? And ... another if i may, what happens to a vm if UPS kicks in and shuts down the unRAID server? Will the vm be corrupted at all if it's up and running at the time? I appreciate that these are most probably noob questions but they're just what i've got up to in the learning curve so any help is good help!

Hi ... am a VM newbie with a couple of vms built and running but how on earth do i PROPERLY shut these down, they just seem to hang around with 'shutting down' status but never do. I'm asuming its not good practice to have to force shut each time so what's the procedure? And ... another if i may, what happens to a vm if UPS kicks in and shuts down the unRAID server? Will the vm be corrupted at all if it's up and running at the time? I appreciate that these are most probably noob questions but they're just what i've got up to in the learning curve so any help is good help!

What kind of VMs?

Win7 i'd guess ...

 

Sent from my LG-D855 using Tapatalk

 

 

I RDP into my Win7 VMs and run "shutdown.exe /s /f /t 0" from the command line.  If I want to reboot the VM instead I use "shutdown.exe /r /f /t 0".  "/s" is shutdown, "/r" is reboot, "/f" is force the shutdown or reboot and "/t 0" tells it to do it immediately without the 30 second delay you would get if you didn't put the /t parameter on the command.

 

 

Edit: I have also done the same from the console displayed by the VNC browser viewer in unRAID after logging into the VM.

  • Author

Thanks Bob... useful info for me also.

 

Is this to circumvent a non-working shutdown from within unRAID itself which seems to just take so long that i've been resorting to force shutting each time?

I'm also interested in this post.

 

Is supposed that the VM must be shutdown? can I have it always on?

 

In the case is always on, must the S.O go to sleep? (In the tutorial of installing W10 I follow by jonp sleep was deactivated)

 

What about power consumption of a VM at idle?

 

Thankyou

Gus

I RDP into my Win7 VMs and run "shutdown.exe /s /f /t 0" from the command line.  If I want to reboot the VM instead I use "shutdown.exe /r /f /t 0".  "/s" is shutdown, "/r" is reboot, "/f" is force the shutdown or reboot and "/t 0" tells it to do it immediately without the 30 second delay you would get if you didn't put the /t parameter on the command.

 

 

Edit: I have also done the same from the console displayed by the VNC browser viewer in unRAID after logging into the VM.

 

Thanks.

 

Is 'force shutdown' good or bad?

Thanks Bob... useful info for me also.

 

Is this to circumvent a non-working shutdown from within unRAID itself which seems to just take so long that i've been resorting to force shutting each time?

By making the VM shut itself down you might find you could then shutdown unRAID itself and save a parity check on restart.  Also technically from the unRAID VM console window you can just shutdown with the shutdown options from the bottom right corner of the screen you don't even have to login to the VM.  The options I specified will work but they are only required on a RDP session.  The Task Manager in XP use to allow you to do the same thing but Microsoft removed it in Windows 7.

I RDP into my Win7 VMs and run "shutdown.exe /s /f /t 0" from the command line.  If I want to reboot the VM instead I use "shutdown.exe /r /f /t 0".  "/s" is shutdown, "/r" is reboot, "/f" is force the shutdown or reboot and "/t 0" tells it to do it immediately without the 30 second delay you would get if you didn't put the /t parameter on the command.

 

 

Edit: I have also done the same from the console displayed by the VNC browser viewer in unRAID after logging into the VM.

 

Thanks.

 

Is 'force shutdown' good or bad?

The force shutdown in the commands just tell Windows you want it to force close instead of waiting for them to close naturally but windows itself shuts down normally.  So it is a little safer then using the force option in the unRAID GUI.  You could corrupt the windows boot drive and have to run a repair if you force the VM to shutdown in unRAID.  But with the Windows "force" option above the OS should boot and I've yet to have a problem with the application that is forced to close - but it could be possible.  You can leave it out but if Windows is locked because of an application it won't shut down so I always use the option.  It is basically the same thing as the "force close" button when shutting down a bare windows box or the unRAID VM console window.

Another option for your Windows VM for a UPS is to install the Windows version of APCUPSD and set it to get its command to shutdown from the unRAID server it is installed on.  I haven't done this yet my power is fairly reliable and except for this week I've always been home when I lost power.  Anyway on the Windows APCUPSD you just set it to use "net" instead of "usb" to connect.  I will have to set this up in the near future but my time is limited since I got my new job.

Thanks for the replies Bob. Never given a thought to a power outage (rare here - uk) but do run a br900gi ups so will install apcupsd and test it out. Cheers ... i'm learning all the time!

 

Sent from my LG-D855 using Tapatalk

 

 

Re-float:

 

Is supposed that the VM must be shutdown? can I have it always on?

 

In the case is always on, must the S.O go to sleep? (In the tutorial of installing W10 I follow by jonp sleep was deactivated)

 

What about power consumption of a VM at idle?

 

Thankyou

 

 

If you RDP into a Windows VM just hit Alt+F4 on the desktop, the shutdown options will then appear.

 

edit:

I'm also confused of the need (even though I do this for my "seedbox" VM, as it takes a long time for the program to close)?

Even if I stop the array, all VM's will gracefully shutdown without doing anything.

 

I am OCD though, so:

I hit the stop button in the VM manager on each VM, then when they're off, hit the stop array button (or better yet the reboot/power off button from the System Buttons plugin).

If you're having an issue with the VM just sitting at the shutdown screen (which you've mentioned), there has to be something in the VM hanging, and not directly related to UnRAID.

I do not think this is common, so lets try to fix that as opposed to patching the way you shut the VM down to be certain (however still better than not).

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.