Ce contenu n'est pas disponible dans la langue sélectionnée.
20.16.6.2. Block / character devices
hostdev
element. Note that this is only possible with container based virtualization.
... <hostdev mode='capabilities' type='storage'> <source> <block>/dev/sdf1</block> </source> </hostdev> ...
Figure 20.30. Devices - host physical machine device assignment block character devices
... <hostdev mode='capabilities' type='misc'> <source> <char>/dev/input/event3</char> </source> </hostdev> ...
Figure 20.31. Devices - host physical machine device assignment block character devices alternative 1
... <hostdev mode='capabilities' type='net'> <source> <interface>eth0</interface> </source> </hostdev> ...
Figure 20.32. Devices - host physical machine device assignment block character devices alternative 2
Parameter | Description |
---|---|
hostdev | This is the main container for describing host physical machine devices. For block/character devices passthrough mode is always capabilities and type is block for a block device and char for a character device. |
source | This describes the device as seen from the host physical machine. For block devices, the path to the block device in the host physical machine OS is provided in the nested block element, while for character devices the char element is used |