qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH][v2] inetd enabled qemu-nbd


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH][v2] inetd enabled qemu-nbd
Date: Mon, 03 Nov 2014 15:43:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Copying the maintainer.  Please do that yourself in future patch
submissions.  You can list maintainers with "scripts/get_maintainer.pl
--no-git-fallback *.patch".

Jun Sheng <address@hidden> writes:

> run qemu-nbd as an inetd service has some benefits
> * more scriptable, such as serve multiple images to different clients
> on one ip/port
> * access control using tcpd
>
> simple usage:
> #!/bin/sh
> # qemu-nbd wrapper, select image file according to client ip address
> IMG_FILE=`sed -n "s/$REMOTE_HOST //p" /path/to/image_list.txt`
> qemu-nbd -i 10 $IMG_FILE 10<&0- 1>/tmp/log 2>/tmp/log2
>
> #end
>
> #xinetd.conf
> service nbd
> {
>         flags                   = REUSE
>         socket_type             = stream
>         wait                    = no
>         user                    = some_user
>         server                  = /path/to/qemu-nbd-wrapper.sh
>         log_on_failure          += USERID
>         disable                 = no
> }
>
> Signed-off-by: Jun Sheng <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]