Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Machine/@currentSnapshot attribute is missing

Tags:

virtualbox

I am working on building some application for linux on a debian distro of linux on a virtualbox. Everything was going great. I turned off my virtualbox and when I start it back up, I get this error and now I cannot even access the os.

Error in /home/****/VirtualBox VMs/Debian/Debian.vbox (line 9) -- 
Snapshots present but required Machine/@currentSnapshot attribute is 
missing.

/build/virtualbox-mnp3zF/virtualbox-5.0.32-dfsg/src/VBox/Main/src-
server/MachineImpl.cpp[480] (nsresult Machine::initFromSettings(VirtualBox*, 
const com::Utf8Str&, const com::Guid*)).

Result Code: NS_ERROR_FAILURE (0x80004005) 
Component: MachineWrap
Interface: IMachine {f30138d4-e5ea-4b3a-8858-a059de4c93fd}
Callee: IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}
like image 885
James Mercer Avatar asked Mar 23 '17 01:03

James Mercer


2 Answers

Try to add the following attribute to the line 9 of your vbox file: currentSnapshot="{xxx}", where xxx should correspond to snapshot uuid (it's a tag within the same file) hope this works for you...

like image 136
Lyoncha Avatar answered Sep 20 '22 14:09

Lyoncha


confirmed, this just happened to me with Oracle VirtualBox 5.1.20 r114628 (Qt5.6.2) ..... and your fix saved all my guest os configuration work of several weeks!!!! thank you so much, Lyoncha!

broken:

<VirtualBox xmlns="http://www.virtualbox.org/" version="1.16-windows">
  <Machine uuid="{d82345e-849b-435402-adgbc-a3210d234d7}" name="MyGuest3" OSType="Ubuntu_64" snapshotFolder="Snapshots" currentStateModified="false" lastStateChange="2017-04-21T17:19:05Z">
    <MediaRegistry>

fixed:

<VirtualBox xmlns="http://www.virtualbox.org/" version="1.16-windows">
  <Machine currentSnapshot="{2345623asdf45sdg}" uuid="{d82345e-849b-435402-adgbc-a3210d234d7}" name="MyGuest3" OSType="Ubuntu_64" snapshotFolder="Snapshots" currentStateModified="false" lastStateChange="2017-04-21T17:19:05Z">
    <MediaRegistry>

like image 42
Henry Avatar answered Sep 19 '22 14:09

Henry