Unable to recover snapshot of critical domain controller

Discussions related to using VirtualBox on Linux hosts.
Post Reply
asadz
Posts: 1
Joined: 21. Mar 2023, 08:54

Unable to recover snapshot of critical domain controller

Post by asadz »

I foolishly moved the folder for OS windows 2016 64 bit which is used as my domain controller to a different location, and then at first I was unable to run the VM but that was sorted out my renaming the parent .VDI , this temporary solved the issue but proved fatal latter (more details coming). I had to rename the UUID because it was giving me error of the media currently being used, I should have instead change the .xml or .VBOX file.

Now, when I try to run the snapshot I'm getting

Code: Select all

UUID:           9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b
Parent UUID:    c6230a56-199e-48de-9c1f-0e0fe5f43ca6
State:          inaccessible
Access Error:   UUID {d1b453ea-90c6-4a4d-8247-eea57ad5a5ca} of the medium '/media/asad/Hack Dump/labwork/VirtualBox VMs/windows-server/Win 11 dev/Snapshots/{9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b}.vdi' does not match the value {9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b} stored in the media registry ('/home/asad/.config/VirtualBox/VirtualBox.xml')
Type:           normal (differencing)
Auto-Reset:     off
Location:       /media/asad/Hack Dump/labwork/VirtualBox VMs/windows-server/Win 11 dev/Snapshots/{9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b}.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       0 MBytes
Size on disk:   0 MBytes
Encryption:     disabled
Property:       AllocationBlockSize=1048576
the base image is

Code: Select all

UUID:           c6230a56-199e-48de-9c1f-0e0fe5f43ca6
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /media/asad/Hack Dump/labwork/VirtualBox VMs/windows-server/Win 11 dev/win-server-2016.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       32768 MBytes
Size on disk:   13797 MBytes
Encryption:     disabled
Property:       AllocationBlockSize=1048576
In use by VMs:  win-server-2016 (UUID: ed51531f-1f04-4a21-8d04-e36310c1b1d5) [0 day (UUID: 9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b)]
Child UUIDs:    9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b
The access error you see above related to UUID {d1b453ea-90c6-4a4d-8247-eea57ad5a5ca} is not present in any config files i double check but it seems its loaded as part of UUID history because I changed the UUID multiple times, so in a way it is telling me that this base image has multiple UUID. Due to this error I'm also not able to clone my snapshot as well.

I believe in my .vbox file I have refer the snapshot correctly,

Code: Select all

<VirtualBox xmlns="empty" version="1.19-linux">
  <Machine uuid="{ed51531f-1f04-4a21-8d04-e36310c1b1d5}" name="win-server-2016" OSType="Windows2016_64" currentSnapshot="{9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b}" snapshotFolder="Snapshots" lastStateChange="2023-03-21T06:08:54Z">
    <MediaRegistry>
      <HardDisks>
        <HardDisk uuid="{c6230a56-199e-48de-9c1f-0e0fe5f43ca6}" location="win-server-2016.vdi" format="VDI" type="Normal">
          <HardDisk uuid="{9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b}" location="Snapshots/{9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b}.vdi" format="VDI"/>
        </HardDisk>
      </HardDisks>
.....

Code: Select all

  <StorageControllers>
          <StorageController name="SATA" type="AHCI" PortCount="2" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
            <AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
              <Image uuid="{9f2702d3-8cb2-4e06-9d81-e3d0e8ffe50b}"/>
            </AttachedDevice>
            <AttachedDevice passthrough="false" type="DVD" hotpluggable="false" port="1" device="0"/>
          </StorageController>
        </StorageControllers>
Also, I'm loading the base image first under the snapshot section of the .vbox file

I have also shared the .vbox and .xml files for your review as well. I spend like 2 days troubleshooting this issue with little sleep and I'm unable to recover my snapshot
Attachments
VirtualBox.xml.txt
(3.41 KiB) Downloaded 1 time
win-server-2016-1.15-linux.vbox.txt
(12.44 KiB) Not downloaded yet
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Unable to recover snapshot of critical domain controller

Post by mpack »

I hope you are aware that renaming a file does not change its UUID, but it does mean that the VM can't find it.

I hope you have a backup of this VM. Snapshots are not backups\; they are for allowing alternate states, not backups of one state.
Post Reply