February 3, 20224 yr Hello all, the other day I rebooted my server and didn't realize that the motherboard battery was dead. After the reboot I tried to start my windows VM and it errored out. The error said something about configuration being wrong which I thought was funny as I was just running my VM prior to rebooting the server. I rebooted the server again and this time when it came up the VM was not even listed in my VM's tab. I later found out that the motherboard reverted to default which turned off the virtual machine settings in the bios. I installed a new battery and booted again but no lock the VM is still not listed. I am hoping someone can point me in the right direction to help me not only get my VM back if possible but to also find the information to learn more about where all the files are kept and what those files are that manage a VM. Signed please help!!!
February 3, 20224 yr Check your libvrt.img file for corruption. Maybe it is corrupted by the outage. It is where your VM details are stored. The default path is /mnt/user/system/libvirt/libvirt.img
February 13, 20224 yr Author Thanks for the advice, how would one go about checking to see if the libvert.img file is corrupted?
February 13, 20224 yr Author OK so I have done a little more reading about the libvirt.img file and I did find the file in the location suggested above. I am not sure how to check to see if the file is corrupt so if someone can suggest a method for this I would appreciate it. I loaded an Ubuntu desktop vm after my windows VM disappeared and it is working fine. looking to see if the libvirt.img file also contains the xml for ubuntu. I would guess if this is the case then the file is not corrupt. I guess it still could have bad info in it. I also see the vdisk.img files in my VM directories for my windows installs. I have done a few searches on this forum as well as the internet and can't seem to find a method for restoring my windows VM. please can someone point me in the right direction for a step by step guide on how to do this or at least let me know it can't be done.
February 14, 20224 yr Author I found a backup that I had done where I used the user script backup. from there I was able to restore one of my VM's. I don't seem to have the XML for the other VM machines so I am wondering can I use the XML for the machine that I did find and point it toward one of the other VM images that I have?
February 14, 20224 yr 5 hours ago, Papa_TJ said: so I am wondering can I use the XML for the machine that I did find and point it toward one of the other VM images that I have? Yes, if you have doubts, first backup in different places your vdisks.img, that's all you need to restore a vm. You should have also the uuid code, but if you don't have the old xml you probably don't have it: this is important for windows activation, changing/replacing the uuid could mean reactivating windows. Steps you have to follow are just to create new vms (new templates) and point them to existing vdisks. Edited February 14, 20224 yr by ghost82
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.