VirtualBox

Opened 15 years ago

Closed 8 years ago

#3241 closed defect (obsolete)

discard fails with Accessibility check was not yet performed

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

Description (last modified by aeichner)

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 (3)

comment:1 by Jim O'Connor, 15 years ago

This is a regression error. The above functionality works fine in VirtualBox 2.0.6.

comment:2 by Rudolf Blazek, 15 years ago

This problem persists in Virtual Box 2.1.4 and after upgrading also in 2.2.0 !! It should be addressed ASAP because it makes the snapshot function completely unusable which is a disaster.

Thanks! Rudy

VBox: 2.2.0 (and 2.1.4) Host: Ubuntu server 8.04 LTS
Guest: Ubuntu JeOS 8.04 (but the problem is guest-independent)
Tool used: VBoxManage

Snapshots:
Name: Initial Install with Host Networking (UUID: e50fc48a-c441-4026-9671-d2079f3e75a7)
Name: Initial Install with Host Networking (UUID: 42319365-7b3f-44db-81c7-f50785da1e68)
Name: Backup 2009 Apr 11 19:23:22 (UUID: 44800c3d-bd90-4750-b399-3addd62b77f7)
Name: Backup 2009 Apr 11 19:24:02 (UUID: 53c5b44e-3207-41d9-a5e4-fd8aedb95e7e)

testvm@host$ VBoxManage snapshot TestVM discard "Backup 2009 Apr 11 19:23:22"
VirtualBox Command Line Management Interface Version 2.2.0
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

0%...FAILED
Error: failed to discard snapshot. Error message: Medium 
'/home/testvm/.VirtualBox/Machines/TestVM/Snapshots/{b37af01d-0eb5-4ed4-b398-f25185de6928}.vdi' 
is not accessible. Accessibility check was not yet performed

comment:3 by aeichner, 8 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use