[Pkg-virtualbox-devel] Bug#633751: virtualbox: Renaming snapshot of running VM fails silently

Ivan Vilata i Balaguer ivan at selidor.net
Wed Jul 13 11:45:51 UTC 2011


Package: virtualbox
Version: 4.0.10-dfsg-1
Severity: normal


Changing the name of a snapshot of a running VM from the command line (which
is useful for rotating old backup snapshots) does nothing without actually
giving any error message or exit code (whether the snapshot is the newest one
or otherwise).

For reproducing the bug, create a VM named "test" and start it.  Then::

  $ VBoxManage list runningvms
  "test" {484d5e8f-48a9-4f6f-aa10-f11d20fb5da2}
  $ VBoxManage snapshot test take test-snap
  0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
  $ VBoxManage snapshot test edit test-snap --name test-snap-one
  $ echo $?
  0
  $ VBoxManage snapshot test edit test-snap-one --name test-snap-two
  VBoxManage: error: Could not find a snapshot named 'test-snap-one'
  VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component Machine, interface IMachine, callee nsISupports
  Context: "FindSnapshot(Bstr(a->argv[2]).raw(), snapshot.asOutParam())" at line 411 of file VBoxManageSnapshot.cpp
  $ echo $?
  1
  $ VBoxManage snapshot test delete test-snap
  0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
  $ echo $?
  0

Stopping the VM and performing the rename works as expected::

  $ VBoxManage list runningvms
  $ VBoxManage snapshot test take test-snap
  0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
  $ VBoxManage snapshot test edit test-snap --name test-snap-one
  $ echo $?
  0
  $ VBoxManage snapshot test edit test-snap-one --name test-snap-two
  $ echo $?
  0
  $ VBoxManage snapshot test delete test-snap-two
  0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
  $ echo $?
  0

Thanks in advance!

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages virtualbox depends on:
ii  adduser                 3.113            add and remove users and groups
ii  libc6                   2.13-10          Embedded GNU C Library: Shared lib
ii  libcurl3                7.21.6-3         Multi-protocol file transfer libra
ii  libgcc1                 1:4.6.1-2        GCC support library
ii  libpng12-0              1.2.44-3         PNG library - runtime
ii  libpython2.6            2.6.7-2          Shared Python runtime library (ver
ii  libqtcore4              4:4.7.3-5        Qt 4 core module
ii  libqtgui4               4:4.7.3-5        Qt 4 GUI module
ii  libsdl1.2debian         1.2.14-6.4       Simple DirectMedia Layer
ii  libssl1.0.0             1.0.0d-3         SSL shared libraries
ii  libstdc++6              4.6.1-2          GNU Standard C++ Library v3
ii  libvncserver0           0.9.7-3          API to write one's own vnc server
ii  libx11-6                2:1.4.3-2        X11 client-side library
ii  libxcursor1             1:1.1.12-1       X cursor management library
ii  libxext6                2:1.3.0-3        X11 miscellaneous extension librar
ii  libxml2                 2.7.8.dfsg-3     GNOME XML library
ii  libxmu6                 2:1.1.0-2        X11 miscellaneous utility library
ii  libxt6                  1:1.1.1-2        X11 toolkit intrinsics library
ii  python                  2.6.6-14         interactive high-level object-orie
ii  python-central          0.6.17           register and build utility for Pyt
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages virtualbox recommends:
ii  libgl1-mesa-glx [libgl1]   7.10.3-3      free implementation of the OpenGL 
ii  libqt4-opengl              4:4.7.3-5     Qt 4 OpenGL module
ii  virtualbox-dkms            4.0.10-dfsg-1 x86 virtualization solution - kern
ii  virtualbox-qt              4.0.10-dfsg-1 x86 virtualization solution - Qt b

Versions of packages virtualbox suggests:
pn  vde2                          <none>     (no description available)
pn  virtualbox-guest-additions-is <none>     (no description available)

-- no debconf information






More information about the Pkg-virtualbox-devel mailing list