Managing mediated devices for DASD with libvirt
Use virsh commands to manage the lifecycle of mediated devices for
DASD VFIO pass-through devices.
Before you begin
Procedure
What to do next
You can now use the mediated device to configure a virtual ECKD DASD as a pass-through device
that is based on the DASD at subchannel 0.0.0072 on the host. See Configuring a pass-through DASD.
When you no longer need a mediated device, you can stop it with the virsh
nodedev-destroy
command.
# virsh nodedev-destroy mdev_7b36c4c2_b280_4ea7_8f40_77b192bf6fec_0_0_0072 Destroyed node device 'mdev_7b36c4c2_b280_4ea7_8f40_77b192bf6fec_0_0_0072'
A transient device ceases to exist as a result of the virsh nodedev-destroy
command. A persistent device is deactivated, and you must use the virsh
nodedev-undefine command to remove the inactive device from
libvirt.
# virsh nodedev-undefine mdev_7b36c4c2_b280_4ea7_8f40_77b192bf6fec_0_0_0072 Undefined node device 'mdev_7b36c4c2_b280_4ea7_8f40_77b192bf6fec_0_0_0072'