While creating a bach to switch an VDI from immutable state to normal (and vice versa) i came across the following problem:
My construct
VBoxManage.exe unregisterimage disk Vista-Arbeit.vdi
VBoxManage.exe registerimage disk Vista-Arbeit.vdi -type normal
did not work due to the fact that a snapshot (though empty) is registered to an immutable VDI.
So i tried to delete that snapshot via command line:
VBoxManage.exe" snapshot discard VDI-Name (according to THE MANUAL[TM] p.77)
throwing an exception:
[!] Result Code = E_INVALIDARG (0x80070057) - One or more arguments are invalid
[!] Text = Could not find a registered machine named 'discard'
After that I tried several things w VBoxManage snapshot, but not even showvminfo got going...
Where is my fault, if any?
Holgi
VBoxManage snapshot usage
-
- Posts: 6
- Joined: 13. Jul 2007, 11:35
Solved the underlying problem
Managed to switch between immutable and normal VDIs now:
"c:\Programme\innotek VirtualBox\VBoxManage.exe" modifyvm Vista-Kurs -hda none
"c:\Programme\innotek VirtualBox\VBoxManage.exe" unregisterimage disk Vista-Arbeit.vdi
"c:\Programme\innotek VirtualBox\VBoxManage.exe" registerimage disk Vista-Arbeit.vdi -type normal
"c:\Programme\innotek VirtualBox\VBoxManage.exe" modifyvm Vista-Kurs -hda Vista-Arbeit.vdi
But still: Working w "VBoxManage snapshot" seems buggy to me...
Holgi
"c:\Programme\innotek VirtualBox\VBoxManage.exe" modifyvm Vista-Kurs -hda none
"c:\Programme\innotek VirtualBox\VBoxManage.exe" unregisterimage disk Vista-Arbeit.vdi
"c:\Programme\innotek VirtualBox\VBoxManage.exe" registerimage disk Vista-Arbeit.vdi -type normal
"c:\Programme\innotek VirtualBox\VBoxManage.exe" modifyvm Vista-Kurs -hda Vista-Arbeit.vdi
But still: Working w "VBoxManage snapshot" seems buggy to me...
Holgi