It works when I replace /usr/bin/qemu-nbd with qemu-nbd which I just built from qemu github.
2017-07-21 17:26 GMT+08:00 Fam Zheng <f...@redhat.com>: > On Fri, 07/21 10:15, Peter Maydell wrote: > > On 21 July 2017 at 05:10, Fam Zheng <f...@redhat.com> wrote: > > > On Thu, 07/20 19:06, 陳培泓 wrote: > > >> I build qemu from the https://github.com/qemu/qemu, and it didn't > show any > > >> errors. > > >> > > >> I tried qemu-nbd --object secret,id=sec0... > > >> but it shows unrecognized option '--object ' > > >> > > >> how to solve it? > > > > > > -object it is. Thanks. > > > > Hmm? For me the help message says '--object' and the implementation > > agrees that it wants two hyphens: > > Yup, sorry for the misinformation. (I was confused by qemu-system-* > options). > > Fam >