Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: comp.os.linux.networking Subject: Re: Lightweight nodes for learning hands-on TCP/IP networking and administration Date: Fri, 13 May 2016 08:06:16 -0400 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <980fd0b7-3cfd-4583-9e32-68f25e950a74@googlegroups.com> <6042d950-ae4c-4e63-ba90-7757482299f5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="3c2c8098bb84e5a81ab2e76178705d28"; logging-data="4545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UuUA7lwLDcbROkCifYtl9" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:QAbdaSKZ1MCNhS0IZmw7PUZ1okY= sha1:+xAQVQRvlO6+jbdxHcbRHEFnYRo= Xref: csiph.com comp.os.linux.networking:3755 > 2. This creates u2 as a lightweight snapshot of u1. Hoever, subsequent > changes made to u1's filesystem get reflected in u2's as well - which is not > what I want. Apparently, snapshotting has the semantics of 'marking' to > which you could revert later. > > Not what I wanted; I wanted both u1 and u2 to be independent. > > $ lxc-copy -n u1 -N u2 -B overlayfs -s If you want 2 independent ones, then you do: $ lxc-copy -n u1 -N u2 -B overlayfs -s $ lxc-copy -n u1 -N u3 -B overlayfs -s and then u2 and u3 are independent. Better not touch u1 after that. Stefan