Find SCSI #:
lsscsi
[root@kvmatrix ~]# lsscsi [#:0:0:0] cd/dvd HL-DT-ST BD-RE WH14NS40 1.03 /dev/sr0
Edit Domain XML and add this:
Note: Replace scsi_host# with the # found in lssci
<controller type='scsi' index='0' model='virtio-scsi'/>
<hostdev mode='subsystem' type='scsi'>
<source>
<adapter name='scsi_host#'/>
<address type='scsi' bus='0' target='0' unit='0'/>
</source>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</hostdev>
I had to force the XML to be accepted as virsh edit gave errors, just press i and then reboot vm to test.