steve1977 Posted July 21, 2018 Posted July 21, 2018 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
JorgeB Posted July 21, 2018 Posted July 21, 2018 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.
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 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?
JorgeB Posted July 21, 2018 Posted July 21, 2018 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
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 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?
JorgeB Posted July 21, 2018 Posted July 21, 2018 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)
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 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!
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 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?
JorgeB Posted July 21, 2018 Posted July 21, 2018 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
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 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?
JorgeB Posted July 21, 2018 Posted July 21, 2018 I would suggest cache or UD device, and if in cache use /mnt/cache, not /mnt/user as the path.
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 Ok, very clear. Thanks! Let me try to recreate them.
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 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?
JorgeB Posted July 21, 2018 Posted July 21, 2018 Libvirt location must include the image file, e.g., /mnt/cache/VM/libvirt.img
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 Thanks. Shouldn't Unraid automatically add this? Also, the selection of user shares is preferred or a bug?
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 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?
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 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. Libvirt 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
steve1977 Posted July 21, 2018 Author Posted July 21, 2018 I found in another thread about this error. Solution not clear to me though. Any thoughts appreciated!
steve1977 Posted July 28, 2018 Author Posted July 28, 2018 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!
Squid Posted July 28, 2018 Posted July 28, 2018 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 versionSent via Tapatalk because my laptop doesn't fit in my pocket
steve1977 Posted July 28, 2018 Author Posted July 28, 2018 Terrific, this fixed it. Thanks! Unfortunately, it didn't fix the issue that I cannot reset my audio card
Recommended Posts
Archived
This topic is now archived and is closed to further replies.