[Bug 1354375] [NEW] lxc-snapshot destroys container

Dan McGrath 1354375 at bugs.launchpad.net
Fri Aug 8 10:13:03 UTC 2014

Public bug reported:

Was following instructions for lxc-snapshots at:


The problem I am reporting is that when I create a snapshot with:

  lxc-snapshot -n c1

which creates snap0 (snap1...snapN, etc.), after I try restore the
snapshot with:

  lxc-snapshot -r snap0 -n c1

lxc seems to happily remove snap0 and c1, thus destroying the entire
container. I would paste the output, but it was via a vbox vm and wasn't
easy to copy/paste the text, so I have attached a screenshot instead.

The release was LTS with lxc 1.0.5-0ubuntu0.1. What I expected
was for the snapshot to first remove c1 and then rename snap0 to c1.
Seeing as how the c1 container was a LVM snapshot I can see that
removing c1 (the origin of snap0) might be the reason for it killing
snap0 and c1, but it seems a little unpexted, especially if this had
been more than a test.

Is this a real bug?

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: lxc 1.0.5-0ubuntu0.1
ProcVersionSignature: Ubuntu 3.13.0-32.57-generic
Uname: Linux 3.13.0-32-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
Date: Fri Aug  8 05:58:41 2014
InstallationDate: Installed on 2014-08-07 (0 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
 PATH=(custom, no user)
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
 lxc.network.type = veth
 lxc.network.link = lxcbr0
 lxc.network.flags = up
 lxc.network.hwaddr = 00:16:3e:xx:xx:xx

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: amd64 apport-bug trusty

** Attachment added: "Screenshot of the problem"

You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.

  lxc-snapshot destroys container

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list