From patchwork Tue Jul 3 11:05:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 168839 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EB8BE2C00C4 for ; Wed, 4 Jul 2012 02:07:24 +1000 (EST) Received: from localhost ([::1]:49047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm5dK-0005D9-Ni for incoming@patchwork.ozlabs.org; Tue, 03 Jul 2012 12:07:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm0wF-000077-Kq for qemu-devel@nongnu.org; Tue, 03 Jul 2012 07:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sm0w9-0003Fv-Az for qemu-devel@nongnu.org; Tue, 03 Jul 2012 07:06:35 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:47086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm0w8-0003Cj-IU for qemu-devel@nongnu.org; Tue, 03 Jul 2012 07:06:29 -0400 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2012 16:36:18 +0530 Received: from d28relay05.in.ibm.com (9.184.220.62) by e28smtp07.in.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 3 Jul 2012 16:35:55 +0530 Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q63B5s9K590192 for ; Tue, 3 Jul 2012 16:35:54 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q63GZCqp012326 for ; Wed, 4 Jul 2012 02:35:12 +1000 Received: from 127.0.0.1 (wenchaox.cn.ibm.com [9.115.122.66]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q63GZAJR012255; Wed, 4 Jul 2012 02:35:10 +1000 From: xiawenc@linux.vnet.ibm.com To: qemu-devel@nongnu.org Date: Tue, 3 Jul 2012 19:05:44 +0800 Message-Id: <1341313544-6256-1-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.msysgit.0 x-cbid: 12070311-8878-0000-0000-0000031EF729 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 122.248.162.7 X-Mailman-Approved-At: Tue, 03 Jul 2012 12:06:56 -0400 Cc: pbonzini@redhat.com, stefanha@linux.vnet.ibm.com, anthony@codemonkey.ws, Wenchao Xia Subject: [Qemu-devel] [PATCH] add text about how to use qemu-nbd with qemu X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Wenchao Xia Qemu system emulator reports only fails that make people confused about why, when it is invoked with nbd block device tring to connect qemu-nbd server. In fact qemu will try connect server for several times but server only accept one connect by default. I paid some times to find out why it fails. This patch add special text to explain how to use it in such case. Signed-off-by: Wenchao Xia --- qemu-nbd.texi | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/qemu-nbd.texi b/qemu-nbd.texi index 6955d90..014040a 100644 --- a/qemu-nbd.texi +++ b/qemu-nbd.texi @@ -44,6 +44,12 @@ Export QEMU disk image using NBD protocol. display this help and exit @item -V, --version output version information and exit + + Note: When qemu-nbd was used to export a disk that would be used by QEMU +block device, -t or --persistent must be set for that QEMU nbd client would try +connect more than one time. For eg: + qemu-nbd ./simple.img -p 10809 -t + qemu -hdb nbd:127.0.0.1:10809 @end table @c man end