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.

VMs disappeared after Unraid tower restart

Featured Replies

I did a clean shut-down of my Unraid Tower. Then restarted. Upon restart, my two VM no longer show properly in the "VM Tab". Instead it shows some random / old configurations.

 

Any idea what is causing this? Also, any idea whether I can somehow still find the VM XML. The image files are still there, but I don't remember the XML setup, so it will be difficult to recreate them (particularly the MacOS one that required XML editing).

 

Attaching diagnostic file. Thanks in advance for your help!

tower-diagnostics-20180721-1455.zip

VMs are store on the libvirt.img, maybe you have more than one on the server and are using a different one, this can happen if it's set e.g. as /mnt/user/system/libvirt.img, as that could be on the cache or the array.

  • Author

This could indeed be the case. I may have an old legacy libvirt.img soewhere that I am no longer using. Any suggestion for trouble-shooting?

Just stop the VM service, point to the correct one and restart it, just don't use /mnt/user, user /mnt/cache or mnt/diskX

  • Author

Thanks for your immediate reply.

 

The VMs are not running. They cannot even run as the "old" XMLs rely on images that no longer exist.

 

How to stop the "VM service"? Settings-VM-Manager-enable:no?

 

Where is the setting where I can point to the correct libvirt.img? I am actually not even sure where it is supposed to be? I know where the vdisk images are. I cannot find any. Did it get wiped out?

 

 

 

How to stop the "VM service"? Settings-VM-Manager-enable:no?

 

 

Yes, libvirt.img path is set on the same page, you might need to turn on advanced view (top right)

 

 

 

 

 

  • Author

Got it. What is the best place to place the libvirt file? On cache (where I currently have dockers) and UD (where my vdisks are). Thanks!

  • Author

I think I know what may have happened. I may have deleted the libvirt by accident. If so, possible to recreate it from the diagnostic file? Or need to rememember it somehow and set it up from scratch? Where to put it?

It's good practice to regularly backup that file, if you don't have one you'll need to recreate the XMLs for all the VMs

  • Author

Ok, let me look into it. In what folder would you suggest to place libvirt? On cache (where I currently have dockers), UD (where my vdisks are), user share, disk share?

I would suggest cache or UD device, and if in cache use /mnt/cache, not /mnt/user as the path.

  • Author

Ok, very clear. Thanks! Let me try to recreate them.

  • Author

Mmh... I am still struggling to get the right settings to reset the VM manager to define the right default directories.

 

When I get it wrong, I seem to get the error message: Fatal error: require_once(): Failed opening required '/usr/local/emhttp/plugins/dynamix.vm.manager/classes/libvirt.php' (include_path='.:/usr/local/emhttp') in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(383) : eval()'d code on line 14

 

I am trying the following

 

Libvirt storage: /mnt/cache/VM/

Default VM storage: /mnt/disks/SAMSUNG [I had to manually type this in. When clicking in the field, it only allows me to select my user shares]

Default ISO storage: /mnt/disk1/

Enable ACS Overide: yes

 

Amy thoughts?

Libvirt location must include the image file, e.g., /mnt/cache/VM/libvirt.img

  • Author

Thanks. Shouldn't Unraid automatically add this? Also, the selection of user shares is preferred or a bug?

  • Author

And another point. When the array is not started yet and I select the VM tab, I am still getting the "fatal error" above. It doesn't really matter, but I prefer to keep things "clean". Is this a bug or can I somehow get rid of it?

  • Author

Below the full error message. All works once starting the array, but I prefer not to have any error messages even if they don't immediate matter:

 

Array must be started to view Virtual Machines.

libvirthotplugusb.pngLibvirt Hotplug USB

Fatal error: require_once(): Failed opening required '/usr/local/emhttp/plugins/dynamix.vm.manager/classes/libvirt.php' (include_path='.:/usr/local/emhttp') in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(383) : eval()'d code on line 14
  • Author

I found in another thread about this error.

 

Solution not clear to me though. Any thoughts appreciated!

  • Author

Any more thoughts on the issue above? It is not the end of the world and the error disappears once the array is started, but it irritates me to see error messages and it may cause some other related issues. Any help appreciated, thanks!

Any more thoughts on the issue above? It is not the end of the world and the error disappears once the array is started, but it irritates me to see error messages and it may cause some other related issues. Any help appreciated, thanks!
OTOH you're running the deprecated version of the hot plug plugin. Remove it and install dlandon's version

Sent via Tapatalk because my laptop doesn't fit in my pocket

  • Author

Terrific, this fixed it. Thanks!

 

Unfortunately, it didn't fix the issue that I cannot reset my audio card 

 

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.