[solved] Cannot delete snapshot

This is for discussing general topics about how to use VirtualBox.
harley-peter
Posts: 26
Joined: 27. Mar 2011, 17:38
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows 7, Windows 10, Siduction Linux

Re: Cannot delete snapshot

Post 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! :)
azazy
Posts: 7
Joined: 24. Dec 2016, 23:34

Re: [solved] Cannot delete snapshot

Post 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 .
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [solved] Cannot delete snapshot

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
azazy
Posts: 7
Joined: 24. Dec 2016, 23:34

Re: [solved] Cannot delete snapshot

Post by azazy »

@socratis I read it. However, i still dont understand the commands. What do you mean setting and command :O Please explain.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [solved] Cannot delete snapshot

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
azazy
Posts: 7
Joined: 24. Dec 2016, 23:34

Re: [solved] Cannot delete snapshot

Post 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
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [solved] Cannot delete snapshot

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
azazy
Posts: 7
Joined: 24. Dec 2016, 23:34

Re: [solved] Cannot delete snapshot

Post by azazy »

Is there other way to clone it? Instead of doing terminal?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [solved] Cannot delete snapshot

Post by socratis »

No.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [solved] Cannot delete snapshot

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
azazy
Posts: 7
Joined: 24. Dec 2016, 23:34

Re: [solved] Cannot delete snapshot

Post 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
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [solved] Cannot delete snapshot

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [solved] Cannot delete snapshot

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
azazy
Posts: 7
Joined: 24. Dec 2016, 23:34

Re: [solved] Cannot delete snapshot

Post by azazy »

So sorry about that ! Thank you so much. @socratic
I will find other way :/
azazy
Posts: 7
Joined: 24. Dec 2016, 23:34

How do i remove after i clone?

Post 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
Post Reply