Keene Scouser Posted March 31, 2023 Share Posted March 31, 2023 I have re-built my unraid server. I urgently need to restore a Windows Server VM I backed up previously. I have the vdisk, XML and fd files but I can't find any info on how to correctly restore these. I have re-created the folder in the domains share and placed the backup vdisk1.img file in there, I've edited the XML file and pasted in the original details. I can get the VM to boot but none of my original data is there, it just looks like a fresh install of Windows. Any help would be appreciated Quote Link to comment
JorgeB Posted March 31, 2023 Share Posted March 31, 2023 Are you sure it's pointing to the original vdisk? All VM data is inside it. Quote Link to comment
Keene Scouser Posted March 31, 2023 Author Share Posted March 31, 2023 Pretty sure yes, I'm just copying the original backup into the domains folder now just to be sure Quote Link to comment
JorgeB Posted March 31, 2023 Share Posted March 31, 2023 Then likely the backup is not from the vdisk/time you think, data either is there or is not, don't see other option. Quote Link to comment
Keene Scouser Posted March 31, 2023 Author Share Posted March 31, 2023 Thanks for your input JorgeB, seems like I'll need to start from scratch on this one. I only have one VM which has been running fine for over 6 months with a small web application and a SQL Serve database. I did my first back of the vdisk just a few days ago before I re-built my unraid server and yet it simply doesn't contain any of my data, very concerning Quote Link to comment
JorgeB Posted April 1, 2023 Share Posted April 1, 2023 What did you use to make a copy of the vdisk? And was the VM shutdown? Quote Link to comment
Keene Scouser Posted April 1, 2023 Author Share Posted April 1, 2023 I used Squids User Scripts which backed up the xml and fd files but it didn't do the vdisk, I manually copied that to a network drive. The VM was shutdown Quote Link to comment
JorgeB Posted April 1, 2023 Share Posted April 1, 2023 If the file was correctly copied and the VM shutdown don't see how you can have missing data, the vdisk either is complete and it works with all data that was there or if it was incorrectly copied it shouldn't even work, not just have some missing data. Quote Link to comment
Keene Scouser Posted April 1, 2023 Author Share Posted April 1, 2023 I agree, I guess this comes down to human error, it's always possible that I had thought the vm was shutdown when I copied but it wasn't, but you're statement still stands, it would either work, or not work. Lesson learned for me thanks again for help Quote Link to comment
Keene Scouser Posted April 1, 2023 Author Share Posted April 1, 2023 Quick question for you: Is there a better way to backup the entire VM (vdisk, XML, fd etc.) rather than the method I used? Quote Link to comment
JorgeB Posted April 1, 2023 Share Posted April 1, 2023 If cache is btrfs or zfs you can also use snapshots and then send/receive to another disk, VM should still be shutdown, but only for the snapshot, so it's quicker. Quote Link to comment
Keene Scouser Posted April 1, 2023 Author Share Posted April 1, 2023 It is btrfs, I'll look into doing snapshots. I'm pretty new to unraid so still learning thank you Quote Link to comment
JorgeB Posted April 1, 2023 Share Posted April 1, 2023 Look for the snapshots plugin. 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.