[Devel] [Q] Connecting a physical HDD/partition to a container
Stanislav Kinsburskiу
skinsbursky at odin.com
Wed Jan 27 02:29:59 PST 2016
27 янв. 2016 г. 11:12 AM пользователь Evgenii Shatokhin <eshatokhin at virtuozzo.com> написал:
>
> Hi,
>
> Is there a way to make a partition of a physical HDD, say, sdb1 directly
> available to a container, bypassing ploop?
>
Hi,
There is a way of exposing a device to a container.
First of all, you'll need device node in /dev.
You can create it manually.
If you need sysfs layout for this, it's also possible (but a bit more tricky).
Please, note, that device access will be shared with the host. IOW, it's not bypassing, but sharing of a device and you can share it with as many virtual environments as you want.
> In my case, this is only needed to simplify debugging of some issues.
>
> 'prlctl --device-add hdd <...>' adds a ploop device anyway, it seems.
>
> Regards,
> Evgenii
> _______________________________________________
> Devel mailing list
> Devel at openvz.org
> https://lists.openvz.org/mailman/listinfo/devel
More information about the Devel
mailing list