On Fri, Feb 12, 2016 at 02:28:33PM +0100, Kashyap Chamarthy wrote:
> On Wed, Feb 10, 2016 at 06:40:58PM +0000, Daniel P. Berrange wrote:
>
> [...]
>
> I've applied all the series in this patches, to yesterday's Git master,
> so I'm here:
>
> $ git describe
> pull-qcrypto-next-2016-02-02-1-378-gf9375d2
>
> > Starting a QEMU system emulator built-in NBD server
> >
> > $ qemu-system-x86_64 \
> > -qmp unix:/tmp/qmp,server \
> > -hda /home/berrange/Fedora-Server-netinst-x86_64-23.iso \
> > -object
> > tls-creds-x509,id=tls0,dir=/home/berrange/security/qemutls,endpoint=server
>
> Instead of an ISO, I have this command-line:
>
> $QEMU \
> -display none \
> -nodefconfig \
> -nodefaults \
> -m 2048 \
> -device virtio-scsi-pci,id=scsi \
> -device virtio-serial-pci \
> -serial stdio \
> -drive file=./cirros-0.3.3.qcow2,format=qcow2,if=virtio \
> -object
> tls-creds-x509,id=tls0,dir=/export/security/gnutls,endpoint=server \
> -qmp unix:./qmp-sock,server
>
> > $ qmp-shell /tmp/qmp
> > (qmp) nbd-server-start addr={"host":"localhost","port":"9000"}
> > tls-creds=tls0
>
> However, this invocation seem to work for me, am I doing something wrong?
>
> $ ./qmp-shell ./qmp-sock
> Welcome to the QMP low-level shell!
> Connected to QEMU 2.5.50
>
> (QEMU) nbd-server-start addr={'host:'localhost','port':'9000'}
> tls-creds=tls0
> {"error": {"class": "GenericError", "desc": "Invalid parameter type for
> 'addr', expected: QDict"}}
> (QEMU)
Yes, my bad - I provided the wrong syntax here. it should be
(QEMU) nbd-server-start
addr={"type":"inet","data":{"host":"localhost","port":"9000"}} tls-creds=tls0
{"return": {}}
(QEMU) nbd-server-add device=ide0-hd0
{"return": {}}
I've genuinely tested it this time :-)
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|