2016-12-21 1 views
1

Ich habe am Ende 2 Snapshots mit dem gleichen Namen für eine VM in einem vagrant Multi-Computer-Setup. Ich dachte, das Speichern mit dem gleichen Namen würde übergehen. Jetzt möchte ich einen von ihnen löschen, aber wenn ich den Namen gebe ich bekommenSo löschen Sie Vagrant Snapshots

➜ vagrant vagrant snapshot list trusty     
my-pkg_1.0 
my-pkg_1.0 

➜ vagrant vagrant snapshot delete trusty 'my-pkg_1.0' 
Progress: 0%There was an error while executing `VBoxManage`, a CLI used by Vagrant 
for controlling VirtualBox. The command and stderr is shown below. 

Command: ["snapshot", "11ea7bf9-717c-453d-91e3-4185cec6be92", "delete", "my-pkg_1.0"] 

Stderr: VBoxManage: error: Snapshot 'my-pkg_1.0' of the machine 'vagrant_trusty_1482140927350_10789' cannot be deleted, because it is the current snapshot and has one child snapshot 
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component SessionMachine, interface IMachine, callee nsISupports 
VBoxManage: error: Context: "DeleteSnapshot(bstrSnapGuid.raw(), pProgress.asOutParam())" at line 421 of file VBoxManageSnapshot.cpp 
+1

die Virtualbox GUI verwenden. –

Antwort

2

Sie können direkt von VBoxManage CLI löschen, indem

Lauf
$ vboxmanage list vms --> this list all your VM with name and UUID 
$ vboxmanage snapshot <virtualbox_vm_name> list --> this list the snapshot with vbox name and snapshot UUID 
$ vboxmanage snapshot <virtualbox_vm_name> delete <snapshot_UUID_from_previous_command>