xapi-project / xapi-storage

Experimental new storage interface for xapi
https://xapi-project.github.io/xapi-storage/
9 stars 19 forks source link

Possibility to pass a raw device? #103

Closed olivierlambert closed 4 years ago

olivierlambert commented 4 years ago

Is it possible to pass/attach a raw device (eg a whole disk? or any block device) directly to a VM?

If yes, what would be the best way to do so?

MarkSymsCtx commented 4 years ago

Use blkback. Implementation of datapaths is an exercise for the implementer. Some of the example code in this archived repository might be informative. https://github.com/xapi-project/xapi-storage-plugins/tree/master/datapath.

This repository just contains the API definitions.

olivierlambert commented 4 years ago

Thanks, I'll take a look there 👍

gaborigloi commented 4 years ago

https://github.com/xapi-project/xapi-storage/pull/105 added an up to date example datapath implementation that should be a good starting point for this

olivierlambert commented 4 years ago

Thanks a lot!