VirtualBox

Opened 15 years ago

Last modified 8 years ago

#3241 closed defect

discard fails with Accessibility check was not yet performed — at Initial Version

Reported by: Jim O'Connor Owned by:
Component: other Version: VirtualBox 2.1.2
Keywords: Cc:
Guest type: other Host type: other

Description

When I try to delete a snapshot of a VM with an immutable disk, I get the following error:

VirtualBox Command Line Management Interface Version 2.1.2 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

0%...10%...20%...30%...40%...50%...60%...FAILED Error: failed to discard. Error message: Medium '/engine/native/vmm/virtualbox/dsl-linux/instances/linux01/linux01/Snapshots/{e639aca4-81b9-4986-a475-3304563db1df}.vdi' is not accessible. Accessibility check was not yet performed

The following script produces this error:

============= zen:test jim$ cat manual.sh /usr/bin/VBoxManage registerimage disk /engine/native/vmm/virtualbox/dsl-linux/vdi/dsl-linux-master.vdi -type immutable

/usr/bin/VBoxManage createvm -name linux01 -register -basefolder /engine/native/vmm/virtualbox/dsl-linux/instances/linux01

/usr/bin/VBoxManage modifyvm linux01 -memory 256 -vrdpport 3390 -hda /engine/native/vmm/virtualbox/dsl-linux/vdi/dsl-linux-master.vdi

/usr/bin/VBoxHeadless -s linux01 &

sleep 20

/usr/bin/VBoxManage snapshot linux01 take base

/usr/bin/VBoxManage controlvm linux01 poweroff

sleep 20

VBoxManage snapshot linux01 discardcurrent -all =============

There seems to be a race condition with this error. If I change the final sleep in the script to "sleep 5", the discardcurrent works every time. With it set to 20, it fails every time.

============= Here is the complete output from running the script (with the sleep set to 20):

zen:test jim$ ./manual.sh VirtualBox Command Line Management Interface Version 2.1.2 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

VirtualBox Command Line Management Interface Version 2.1.2 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

Virtual machine 'linux01' is created and registered. UUID: 56bf98f6-9ed9-4067-b247-90850f4e9996 Settings file: '/engine/native/vmm/virtualbox/dsl-linux/instances/linux01/linux01/linux01.xml' VirtualBox Command Line Management Interface Version 2.1.2 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

VirtualBox Headless Interface 2.1.2 (C) 2008-2009 Sun Microsystems, Inc. All rights reserved.

Listening on port 3390 VirtualBox Command Line Management Interface Version 2.1.2 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% VirtualBox Command Line Management Interface Version 2.1.2 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

VirtualBox Command Line Management Interface Version 2.1.2 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved.

0%...10%...20%...30%...40%...50%...60%...FAILED Error: failed to discard. Error message: Medium '/engine/native/vmm/virtualbox/dsl-linux/instances/linux01/linux01/Snapshots/{0496f61c-d92b-4fc8-8a35-9b44a3fd09e1}.vdi' is not accessible. Accessibility check was not yet performed

=============

The above error occurs on Windows XP, Centos, and Mac OSX. This is a showstopper for me because it prevents be from deleting my VM (except for manually editing the VirtualBox.xml).

BTW, it would be really nice to be able to delete a VM, snapshots and all, with a single command.

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use