qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] unrecognized option --object
@ 2017-07-20 11:06 陳培泓
  2017-07-21  4:10 ` Fam Zheng
  0 siblings, 1 reply; 5+ messages in thread
From: 陳培泓 @ 2017-07-20 11:06 UTC (permalink / raw)
  To: qemu-devel

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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] unrecognized option --object
  2017-07-20 11:06 [Qemu-devel] unrecognized option --object 陳培泓
@ 2017-07-21  4:10 ` Fam Zheng
  2017-07-21  9:15   ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Fam Zheng @ 2017-07-21  4:10 UTC (permalink / raw)
  To: 陳培泓; +Cc: qemu-devel

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.

Fam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] unrecognized option --object
  2017-07-21  4:10 ` Fam Zheng
@ 2017-07-21  9:15   ` Peter Maydell
  2017-07-21  9:26     ` Fam Zheng
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2017-07-21  9:15 UTC (permalink / raw)
  To: Fam Zheng; +Cc: 陳培泓, QEMU Developers

On 21 July 2017 at 05:10, Fam Zheng <famz@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:

$ ./build/x86/qemu-nbd -object foo
Invalid offset `bject'
[ie interpreting it as -o plus an argument]
$ ./build/x86/qemu-nbd --object foo
Invalid number of arguments
Try `./build/x86/qemu-nbd --help' for more information.
[ie it recognized the option]

My guesses for why the original poster is getting
'unrecognized option' are either:
 (1) if the error message really has a space after
"t" and before the closing "'" then they're probably invoking
qemu-nbd via a script whose quoting is wrong and is passing
the literal string "--object " with a trailing space by mistake
 (2) otherwise, accidentally running the system qemu-nbd
(which is presumably an old version without this option)
rather than the one they've just built from git ?

thanks
-- PMM

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] unrecognized option --object
  2017-07-21  9:15   ` Peter Maydell
@ 2017-07-21  9:26     ` Fam Zheng
  2017-07-21  9:32       ` 陳培泓
  0 siblings, 1 reply; 5+ messages in thread
From: Fam Zheng @ 2017-07-21  9:26 UTC (permalink / raw)
  To: Peter Maydell; +Cc: 陳培泓, QEMU Developers

On Fri, 07/21 10:15, Peter Maydell wrote:
> On 21 July 2017 at 05:10, Fam Zheng <famz@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] unrecognized option --object
  2017-07-21  9:26     ` Fam Zheng
@ 2017-07-21  9:32       ` 陳培泓
  0 siblings, 0 replies; 5+ messages in thread
From: 陳培泓 @ 2017-07-21  9:32 UTC (permalink / raw)
  To: Fam Zheng; +Cc: Peter Maydell, QEMU Developers

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 <famz@redhat.com>:

> On Fri, 07/21 10:15, Peter Maydell wrote:
> > On 21 July 2017 at 05:10, Fam Zheng <famz@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
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-21  9:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-20 11:06 [Qemu-devel] unrecognized option --object 陳培泓
2017-07-21  4:10 ` Fam Zheng
2017-07-21  9:15   ` Peter Maydell
2017-07-21  9:26     ` Fam Zheng
2017-07-21  9:32       ` 陳培泓

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).