[Spice-devel] [spice-gtk v4 00/13] CD sharing feature

Gerd Hoffmann kraxel at redhat.com
Wed Sep 19 04:41:22 UTC 2018


  Hi,

> > Hmm, so it isn't only usb emulation, but also scsi emulation duplicated
> > in spice-client.  Why this route?  Wouldn't it be simpler to run nbd
> > over spice-chardev, then hook up the iso as blockdev in qemu?  Which
> > you then can attach to any cdrom emulation (ide/sata/scsi/usb) in qemu?
> > 
> > cheers,
> >   Gerd
> > 
> 
> No, we need to redirect a client CD, not a server one.

Sure, the spice client would be the nbd server and provide iso access to
qemu & guest that way.

> PoC with nbd was presented and discarded in favor of client only
> solution.

Can you summarize the reasons to discard the approach?

I'd expect it to be rather simple to implement.  There is nbdkit which
should make it easy to implement the server in spice client.  The client
side in qemu is already there.  And spice-char transport is there too.
So you basically have to take the parts and put them together.  Maybe
some glue code, to call blockdev_remove_medium() on disconnects etc.

thanks,
  Gerd



More information about the Spice-devel mailing list