Mapping devices to the guest

Non-persistent mappings can be made using virsh attach-device. The non-persistent mappings can be made persistent by redefining the KVM guests using virsh dumpxml domain followed by virsh define domain. Persistent mappings can be created on the host using either virt-manager or by modifying the guests XML configuration using virsh edit domain.

The device links created in the directory /dev/disk/by-path should be consistent or if possible identical across all the physical hosts. Using different device links can cause issues with virtual machine live migration or VCS KVMGuest Agent failover operations.

See Mapping devices using the virtio-scsi interface.