Keep certain VM's running without array started


Recommended Posts

  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 3 weeks later...

I could definitely use the ability to keep the VM's running, from the cache drive, when the array has been stopped.

 

When you create you'r VM there could be a checkbox, that activates this feature.

 

I know this have been mentioned many times, but have there ever been made a feature request for it.

 

 

 

 

Link to comment
  • 2 weeks later...

The only issue I see here is that the drivers for vms are loaded when the disk array starts. The config file is stored on the flash still though so I don't know if it can be loaded without the array

I see no reason why the relevant drivers could not be loaded at the time that the system is started up in the same way that plugins are initialised at that point.  The flash drive remains mounted regardless of whether the array is started or not so that is not an issue.

 

I run my VMs from a drive that is not under unRAID control so that is probably all that I personally would need.  I would be quite happy to start/stop some VMs via the go/stop files.  There may be a significant number of users who would be happy with just this level of support for running VMs independently of the array.

 

Having said that a way to keep the cache drive mounted when the array is stopped would be good.  However doing that would mean that GUI support would have to be added for explicitly mounting/unmounting the cache drive for the few occasions where that is needed.  I can also see complications arising in cases where a specific users VMs have a dependency on array drives being available.  There would also have to be general enhancements around starting/stopping VMs via the GUI.

  • Like 1
Link to comment

I have my vms running off a disk outside the arrays too. I think if the gui finds that the disk images used for the vms can't be found, it should prevent the starting of the vms. That would prevent any issues and wouldn't need any extra work from a user.

 

It's also very easy to do in php so the gui can handle that

Link to comment
  • 3 weeks later...
  • 1 month later...
  • 1 year later...
  • 11 months later...
  • 2 months later...
9 hours ago, MrSmith3101 said:

I know this is an old thread but I would really appreciate functionality to run VMs without the array started.
Especially for pfSense!
Please consider this functionality.

Thanks for your time and KR,

EDIT: It is definitely not built-in. I had auto-start of my array enabled so it looked like my VM started without the array.

Editing my old post for clarification.

Thx itimpi for explaining what happened!

 

ORIGINAL (WRONG):

Well, seems like this functionality is already built-in! Sorry for the confusion.

 

I had a power outage due to a short at an outdoor power outlet.

I was not at home and suddenly couldn‘t connect via VPN anymore. What really happened is that my server did not automatically boot from the USB-stick. The server was just idling and stalled at the boot screen.

After correct rebooting Unraid started array checking which of course shuts down the array. BUT, my pfsense VM was booting up fine!

My VM HDD image is located (fixed) on my cache drive.

 

Works perfectly! Thx Unraid ;)

Edited by MrSmith3101
Link to comment
3 minutes ago, MrSmith3101 said:

Well, seems like this functionality is already built-in! Sorry for the confusion.

 

I had a power outage due to a short at an outdoor power outlet.

I was not at home and suddenly couldn‘t connect via VPN anymore. What really happened is that my server did not automatically boot from the USB-stick. The server was just idling and stalled at the boot screen.

After correct rebooting Unraid started array checking which of course shuts down the array. BUT, my pfsense VM was booting up fine!

My VM HDD image is located (fixed) on my cache drive.

 

Works perfectly! Thx Unraid ;)

It is NOT built in.     If is certainly something I would like to have.

 

At the moment the VM service is only fired up when the array is started.   If you stop the array then the VM service gets shut down.    In most cases this does not matter as most people have their arrays set to auto-start when Unraid loads and only stop the array when they are shutting down (or rebooting) the server.     However there are times where it would be convenient to be able to stop the array and keep a VM running (if it does not need access to any array or cache disks).  

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.