[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Provide NBD via Browser over Websockets



On Sat, Oct 13, 2018 at 9:45 PM Eric Wheeler <nbd@lists.ewheeler.net> wrote:
Hello all,

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 desk to boot from.

Here's an HTML5 open file example:
https://stackoverflow.com/questions/3582671/how-to-open-a-local-disk-file-with-_javascript_

and the NBD protocol looks simple enough to implement in _javascript_:
https://stackoverflow.com/questions/17295140/where-is-the-network-block-device-format-describled

What do you think? Does anyone have an interest in doing this?

HTML File API is very limited:
- you cannot access any file except file provided by the user interactively
- no support for sparseness or underlying disk block size

So it will be a pretty bad backend for NBD server.

What are you trying to do?

Nir

Reply to: