Type: unix-block
¶
Note
The unix-block
device type is supported for containers.
It supports hotplugging.
Unix block devices make the specified block device appear as a device in the instance (under /dev
).
You can read from the device and write to it.
Device options¶
unix-block
devices have the following device options:
Key |
Type |
Default |
Description |
---|---|---|---|
|
int |
|
GID of the device owner in the instance |
|
int |
device on host |
Device major number |
|
int |
device on host |
Device minor number |
|
int |
|
Mode of the device in the instance |
|
string |
- |
Path inside the instance (one of |
|
bool |
|
Whether this device is required to start the instance (see Hotplugging) |
|
string |
- |
Path on the host (one of |
|
int |
|
UID of the device owner in the instance |
Hotplugging¶
Hotplugging is enabled if you set required=false
and specify the source
option for the device.
In this case, the device is automatically passed into the container when it appears on the host, even after the container starts. If the device disappears from the host system, it is removed from the container as well.