Re: [Libguestfs] Provide NBD via Browser over Websockets

2020-05-29 Thread Richard W.M. Jones
Going back to the original email from 2018: > It might be neat to attach ISOs to KVM guests via websockets.  Basically > the  browser would be the NBD "server" and an NBD client would run on the > hypervisor, then use `virsh change-media vm1 hdc --insert /dev/nbd0` could > use an ISO from my

Re: [Libguestfs] Provide NBD via Browser over Websockets

2020-05-29 Thread Eric Wheeler
On Thu, 28 May 2020, Richard W.M. Jones wrote: > On Thu, May 28, 2020 at 12:24:22AM +, Eric Wheeler wrote: > > On Mon, 15 Oct 2018, Nir Soffer wrote: > > > On Sat, Oct 13, 2018 at 9:45 PM Eric Wheeler > > > wrote: > > > Hello all, > > > > > > It might be neat to attach ISOs to

Re: [Libguestfs] Provide NBD via Browser over Websockets

2020-05-29 Thread Daniel P . Berrangé
On Fri, May 29, 2020 at 07:50:14AM -0500, Eric Blake wrote: > [adding qemu list] > > On 5/29/20 4:37 AM, Richard W.M. Jones wrote: > > Going back to the original email from 2018: > > > > > It might be neat to attach ISOs to KVM guests via websockets.  > > > Basically > > > the  browser

Re: [Libguestfs] Provide NBD via Browser over Websockets

2020-05-29 Thread Eric Blake
[adding qemu list] On 5/29/20 4:37 AM, Richard W.M. Jones wrote: Going back to the original email from 2018: It might be neat to attach ISOs to KVM guests via websockets.  Basically the  browser would be the NBD "server" and an NBD client would run on the hypervisor, then use `virsh

Re: [Libguestfs] Provide NBD via Browser over Websockets

2020-05-29 Thread Eric Blake
On 5/29/20 8:50 AM, Daniel P. Berrangé wrote: (2) You need to persuade qemu's NBD client to read from a WebSocket. I didn't really know anything about WebSockets until today but it seems as if they are a full-duplex protocol layered on top of HTTP [a]. Is there a WebSocket proxy that turns WS

Re: [Libguestfs] Provide NBD via Browser over Websockets

2020-05-29 Thread Richard W.M. Jones
On Fri, May 29, 2020 at 08:58:06AM -0500, Eric Blake wrote: > On 5/29/20 8:50 AM, Daniel P. Berrangé wrote: > > >>>(2) You need to persuade qemu's NBD client to read from a WebSocket. > >>>I didn't really know anything about WebSockets until today but it > >>>seems as if they are a full-duplex

Re: [Libguestfs] Provide NBD via Browser over Websockets

2020-05-29 Thread Eric Wheeler
On Fri, 29 May 2020, Richard W.M. Jones wrote: > On Fri, May 29, 2020 at 08:58:06AM -0500, Eric Blake wrote: > > On 5/29/20 8:50 AM, Daniel P. Berrangé wrote: > > > > >>>(2) You need to persuade qemu's NBD client to read from a WebSocket. > > >>>I didn't really know anything about WebSockets

Re: [Libguestfs] Provide NBD via Browser over Websockets

2020-05-29 Thread Eric Wheeler
On Fri, 29 May 2020, Richard W.M. Jones wrote: > Going back to the original email from 2018: > > > It might be neat to attach ISOs to KVM guests via websockets.�  Basically > > the�  browser would be the NBD "server" and an NBD client would run on the > > hypervisor, then use `virsh