id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host 8363,Vboxmanage snapshot restorecurrent corrupts media registry,Daniel,,"Occasionally, vboxmanage snapshot restorecurrent results in a broken mediaregistry chain, with virtualbox not registering the new disk uuid in the media registry, and instead keeping the old uuid (that is, the one before the restorecurrent command). This results in an unusable machine configuration. Disk configuration is MultiAttach disk -> Normal disk -> Snapshot disk. The usage pattern is this: system(""$vbox_exe\vboxmanage.exe controlvm $vm_name poweroff""); wait_svc(); system(""$vbox_exe\vboxmanage.exe snapshot $vm_name restorecurrent""); wait_svc(); wait_svc() waits for VBoxSvc.exe to exit. If this pacing mechanism is not used, corruption occurs. This was not happening in 4.0.2, however there were 3.x versions of VirtualBox where the bug was intermittently appearing. This fixes the corruption when only one virtualbox machine is running. Where it mostly happens now is concurrent startvm/restorecurrent commands from 2 or more machines at the same time, as we can no longer check for VBoxSvc.exe exiting, because it will always be running when at least one virtual machine is running.",defect,closed,virtual disk,VirtualBox 4.0.4,fixed,,,Windows,Windows