From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJMIO-0007fD-OF for qemu-devel@nongnu.org; Thu, 27 Oct 2011 05:30:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJMIK-0006LQ-JF for qemu-devel@nongnu.org; Thu, 27 Oct 2011 05:30:44 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:40923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJMIK-0006LJ-FS for qemu-devel@nongnu.org; Thu, 27 Oct 2011 05:30:40 -0400 Received: by ywb3 with SMTP id 3so2948158ywb.4 for ; Thu, 27 Oct 2011 02:30:40 -0700 (PDT) From: Ronnie Sahlberg Date: Thu, 27 Oct 2011 20:33:21 +1100 Message-Id: <1319708001-24075-2-git-send-email-ronniesahlberg@gmail.com> In-Reply-To: <1319708001-24075-1-git-send-email-ronniesahlberg@gmail.com> References: <1319708001-24075-1-git-send-email-ronniesahlberg@gmail.com> Subject: [Qemu-devel] [PATCH] Documentation: Describe NBD URL syntax List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, Ronnie Sahlberg This patch adds a short description of how to specify a NBD device to QEMU. Syntax for both TCP and Unix Domain Sockets are provided as well as examples. Signed-off-by: Ronnie Sahlberg --- qemu-options.hx | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 7c434f8..564ae3f 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1757,6 +1757,27 @@ qemu --drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1 iSCSI support is an optional feature of QEMU and only available when compiled and linked against libiscsi. +@item NBD +QEMU supports NBD (Network Block Devices) both using TCP protocol as well +as Unix Domain Sockets. + +Syntax for specifying a NDB device using TCP +``nbd::[:exportname=]'' + +Syntax for specifying a NDB device using Unix Domain Sockets +``nbd:unix:[:exportname=]'' + + +Example for TCP +@example +qemu --drive file=nbd:192.0.2.1:30000 +@end example + +Example for Unix Domain Sockets +@example +qemu --drive file=nbd:unix:/tmp/nbd-socket +@end example + @end table ETEXI -- 1.7.3.1