From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzzoq-0008Lk-Qd for qemu-devel@nongnu.org; Wed, 12 Sep 2018 03:44:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzzol-0006uk-2W for qemu-devel@nongnu.org; Wed, 12 Sep 2018 03:44:12 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34636 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fzzok-0006uN-T7 for qemu-devel@nongnu.org; Wed, 12 Sep 2018 03:44:07 -0400 Date: Wed, 12 Sep 2018 15:44:02 +0800 From: Fam Zheng Message-ID: <20180912074402.GB11164@lemon.usersys.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Can I convert backing file to internal snapshot? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: lampahome Cc: QEMU Developers On Wed, 09/12 15:35, lampahome wrote: > I have two qcow2 A & B, and A is backing file of B. > > Can I convert both A&B to one image and containing data of both? > > ex: > one new image will contain data of A and B. When I check it by qemu-img > info, I can see one snapshot in the new image. I believe it's possible to create an internal snapshot in A and then qemu-img commit B to A. From here, the active content is B, and the snapshot is A. Fam