From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKrtw-000475-WB for qemu-devel@nongnu.org; Mon, 31 Oct 2011 09:27:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKrtv-0004BO-Ti for qemu-devel@nongnu.org; Mon, 31 Oct 2011 09:27:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKrtv-0004BE-KO for qemu-devel@nongnu.org; Mon, 31 Oct 2011 09:27:43 -0400 From: Kevin Wolf Date: Mon, 31 Oct 2011 14:29:47 +0100 Message-Id: <1320067830-12093-13-git-send-email-kwolf@redhat.com> In-Reply-To: <1320067830-12093-1-git-send-email-kwolf@redhat.com> References: <1320067830-12093-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 12/55] Documentation: Describe NBD URL syntax List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: 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 Signed-off-by: Kevin Wolf --- qemu-options.hx | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 424bae9..c55080c 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 NBD device using TCP +``nbd::[:exportname=]'' + +Syntax for specifying a NBD 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.6.4