Auggie Posted November 15, 2019 Share Posted November 15, 2019 I had an unassigned drive as the shared storage for my VMs, then I did some disk and file rearranging, copying all raw VM files to a new cache drive and now my VMs disappeared. Reinstalling the original drive did not restore any VMs. Am I FUBAR'd or can I recover? Quote Link to comment
bastl Posted November 15, 2019 Share Posted November 15, 2019 @Auggie The "libvirt.img" you can find in the default domain share contains all your VM xml and BIOS files. Depending on how you have setup this share before, search for that file. It should be on the array if you never used a cache before. Check if you maybe have multiple folders containing that file on the array drives and the cache drive. Or restore it from an backup if you have. Quote Link to comment
Auggie Posted November 15, 2019 Author Share Posted November 15, 2019 10 hours ago, bastl said: @Auggie The "libvirt.img" you can find in the default domain share contains all your VM xml and BIOS files. Depending on how you have setup this share before, search for that file. It should be on the array if you never used a cache before. Check if you maybe have multiple folders containing that file on the array drives and the cache drive. Or restore it from an backup if you have. It was on the original cache drive, which I upgraded to a larger one and had copied over all of its contents. I had even reselected the libvert location on the "new" cache share, but the VMs still did not show. Unfortunately, UnRAID was also getting errors opening the libvert.img file which prevented VM daemon/application from starting, so I tossed it, not knowing it contained the actual settings of the VMs themselves, and redownloaded a new version which solved the errors and allowed the VM module to start. When I get home I'll check to see if the libvert.img file is still available on the original cache drive which I don't believe I touched or reformatted. Quote Link to comment
bastl Posted November 15, 2019 Share Posted November 15, 2019 11 hours ago, bastl said: "libvirt.img" you can find in the default domain share I have to correct myself. The libvirt.img is located in "/mnt/user/system/libvirt" not the "domain" share. Sorry, my bad. If there is no libvirt.img file inside that share Unraid will create a new empty one when enabling the VM-Manager. If you still have the old one you can easily restore it by disabling the VM-Manger first and than copying it over. Quote Link to comment
Auggie Posted November 17, 2019 Author Share Posted November 17, 2019 (edited) Well, for some reason the libvirt.img on my original cache drive got corrupted beyond accessibility and repair, so I bit the bullet to resinstall an Ubuntu VM from scratch. But lo and behold, after creating a new VM, downloading the latest Ubuntu and firing it all up, my original Ubuntu VM was started ; it appears all my files and settings are still intact. Whew! Apparently, since I had the original vDisk that wasn't corrupted, UnRAID's VM module simply launched it without wiping and installing a clean system. All is well again... Edited November 17, 2019 by Auggie Quote Link to comment
Recommended Posts
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.