Summary of script:
1. poweroff running vms.
2. clone vms (not on default folder) (delete previous clone folder if existing) NOTE: Not using --register option
3. start vms.
Problem:
After first backup, it works just fine. Second backup after deleting previous backups, i got next error:
VBoxManage: error: cannot register the hard disk '/location/file.vdi' {some_uuid} because a hard disk '/same/location' with {some_uuid} already exists.
After some research I found this: virtualbox/ticket/10096 <- This is the exact error I was having.
I'm not aware of this bug is fixed, but this is the workaroud I used to get rid off this error:
Code: Select all
vboxmanage closemedium disk /backup/location/file.vdiI just wanted to share this in case some of you are having same problems.
Regards.