From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjGl8-0004KT-0K for qemu-devel@nongnu.org; Tue, 28 Oct 2014 20:05:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjGkv-0005FU-HB for qemu-devel@nongnu.org; Tue, 28 Oct 2014 20:05:05 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:40380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjGkv-0005FM-BE for qemu-devel@nongnu.org; Tue, 28 Oct 2014 20:04:53 -0400 Received: by mail-wg0-f47.google.com with SMTP id a1so701278wgh.34 for ; Tue, 28 Oct 2014 17:04:49 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <54502F1E.1080302@redhat.com> Date: Wed, 29 Oct 2014 01:04:46 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <544FCC1D.4040504@convirture.com> In-Reply-To: <544FCC1D.4040504@convirture.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] nbd-server / monitor to copy files/directory in to running VM. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jd , qemu-devel@nongnu.org On 10/28/2014 06:02 PM, Jd wrote: > Hi > I see an option to start nbd-server from running VM via qemu monitor. > This is very useful. The option seems to allow sharing the disk with > read/write permission. Can I really export and use the nbd-served disk > from running vm in read/write ? Isnt there a risk for corrupting the > file system ? You must know what you are doing. In general the answer is yes, you risk corrupting the file system. Paolo > qemu monitor seems to have command to open, write, close commands. I > tried them and I could create a file (after going through encoding). How > can I create a directory using this ? > > I read little bit about live-guestfs, but it needs another agent in to > the VM. Also, is this ready for prime time ? Any plans to have this in > the qemu guest agent. This way we dont have to have multiple agents > required in the guest. > > Is there any other ideas on copying files in to a running VM ? > > Thanks > /Jd > >