Page 2 of 3

Re: Cannot delete snapshot

Posted: 7. Dec 2016, 17:10
by harley-peter
After some annoying trials I was able to solve the problem. :D
With the command line tool vboxmanage I was able to make a clone of the aktuell state on the external disk. Then I deleted the vbox folder and moved the clone back at the internal disk. It works! :)

Re: [solved] Cannot delete snapshot

Posted: 24. Dec 2016, 23:39
by azazy
harley-peter wrote:After some annoying trials I was able to solve the problem. :D
With the command line tool vboxmanage I was able to make a clone of the aktuell state on the external disk. Then I deleted the vbox folder and moved the clone back at the internal disk. It works! :)
Hi ! I had some problems on my snapshot which cause my mac no more space. It eating my space. :( Can i ask how do u clone in to the external drive? How to use vboxmanage anyway? I am quite noob on this stuff though. Please help me .

Re: [solved] Cannot delete snapshot

Posted: 25. Dec 2016, 10:54
by socratis
@azazy - Please read Ch. 8.9 VBoxManage clonevm. The "--basefolder <basefolder>" setting should be pointing to your external drive and a proper sub-folder.

Re: [solved] Cannot delete snapshot

Posted: 25. Dec 2016, 16:47
by azazy
@socratis I read it. However, i still dont understand the commands. What do you mean setting and command :O Please explain.

Re: [solved] Cannot delete snapshot

Posted: 25. Dec 2016, 18:54
by socratis
I take it you've never used Terminal. From Wikipedia, on the Command Line Interface:
Unlike a button or menu item in a GUI, a command line is typically self-documenting, stating exactly what the user wants done. In addition, command lines usually include many defaults that can be changed to customize the results. ...
The commands given to a CLI shell are often in one of the following forms:
  • doSomething how toFiles
  • doSomething how sourceFile destinationFile
  • doSomething how < inputFile > outputFile
  • doSomething how | doSomething how | doSomething how > outputFile
where "doSomething" is, in effect, a verb, "how" an adverb (for example, should the command be executed "verbosely" or "quietly") and "toFiles" an object or objects (typically one or more files) on which the command should act.
The "VBoxManage" command uses the syntax style: "doSomething toFiles how". So, in order to clone your VM and eliminate any snapshots, you open up Terminal and give the command:
  • VBoxManage clonevm "<Your_VM_Name>" --basefolder "<Your_External_HD_subfolder>"
It's best if your folder where you're going to store the clone ("<Your_External_HD_subfolder>") is empty, so you don't get confused on what's what.

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 12:08
by azazy
Hi ! @socratis Thank for the tutorial on commands. I found the terminal. However, i enter the line and replace the vm name and the external hd subfolder with my information. It appear --> syntax error near unexpected token `('

I tried again.
It then appeared 0%...

And how do u write the subfolder? Is it inclusive of <> or without?

Edited
There a error

Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Clone VM failed
VBoxManage: error: Could not create the clone medium '/Users/aaa/Library/VirtualBox/MY_PASSPORT(Mac)_Windows_10/windows 10 Clone/windows 10 Clone-disk1.vmdk'.
VBoxManage: error: VMDK: cannot write allocated data block in '/Users/aaa/Library/VirtualBox/MY_PASSPORT(Mac)_Windows_10/windows 10 Clone/windows 10 Clone-disk1.vmdk' (VERR_DISK_FULL)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage: error: Context: "RTEXITCODE handleCloneVM(HandlerArg*)" at line 481 of file VBoxManageMisc.cpp

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 12:20
by socratis
I don't know what you typed => I can't tell you what the error is.
The path is without the <>. But include it in quotes ("").
Read the following: How to use Terminal on the Mac when you have no idea where to start, or search for Terminal tutorials.

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 12:54
by azazy
Is there other way to clone it? Instead of doing terminal?

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 12:57
by socratis
No.

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 13:04
by socratis
Well, come to think about it, there is CloneVDI, but it would require you to install Wine and since you're run out of space, it's not going to work.

You could free space on your hard drive by moving Applications/Games/Data/Files/Movies from your built-in HD to the external one. Enough to be able to make a clone from within VirtualBox. Then delete the original, continue with the clone and move back again your Applications/Games/Data/Files/Movies.

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 16:03
by azazy
@socratic i tried using the terminal to clone it. However, it load until 30-40%. There an error.

The error is this. Do you know how to fix it?
Is it because my external Harddisk full?
If Yes, my ext harddisk has 100 GB available of space.

Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Clone VM failed
VBoxManage: error: Could not create the clone medium '/Volumes/MY PASSPORT (Mac)/Win10/windows 10 Clone/windows 10 Clone-disk1.vmdk'.
VBoxManage: error: VMDK: cannot write allocated data block in '/Volumes/MY PASSPORT (Mac)/Win10/windows 10 Clone/windows 10 Clone-disk1.vmdk' (VERR_DISK_FULL)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage: error: Context: "RTEXITCODE handleCloneVM(HandlerArg*)" at line 481 of file VBoxManageMisc.cpp

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 16:08
by socratis
azazy wrote:
VBoxManage: error: Clone VM failed
VBoxManage: error: Could not create the clone medium '/Volumes/MY PASSPORT (Mac)/Win10
        /windows 10 Clone/windows 10 Clone-disk1.vmdk'.
VBoxManage: error: VMDK: cannot write allocated data block in '/Volumes/MY PASSPORT (Mac)/Win10
        /windows 10 Clone/windows 10 Clone-disk1.vmdk' (VERR_DISK_FULL)
Yes, your external hard drive is also not big enough and it became full. I highlighted the critical part in your error.

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 16:10
by socratis
I just deleted your duplicate posts in OSX hosts. Please do not post duplicates.

Moved topic to "Using VirtualBox" since it has nothing to do with either the host or the guest.

Re: [solved] Cannot delete snapshot

Posted: 26. Dec 2016, 16:20
by azazy
So sorry about that ! Thank you so much. @socratic
I will find other way :/

How do i remove after i clone?

Posted: 26. Dec 2016, 19:19
by azazy
I want to replace the vm but i not sure what to do after i clone.
So how do i remove the vm with the snapshot? :O