[solved] Windows 10 VM add CDROM xml


Recommended Posts

I'm trying to have a windows vm as my daily driver.
I can't find the video or forum link I found months ago that showed how to add a cdrom by editing the xml ( or by any other simple way).
 

IOMMU group 26:    [1b4b:9172] 09:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11)

SCSI Devices
[9:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GH22NS50  TN03  /dev/sr0

 

I have the drive connected with a sata pcie 4 port card and is listed as a scsi device. 

 

Can someone please advise me of the next steps

 

Thanks

Edited by ksculland
[solved]
Link to comment
  • 2 weeks later...

https://www.reddit.com/r/unRAID/comments/49isga/optical_drive_passthrough/

 

I found this reddit post.

 

So the answer is edit you windows VM xml, find where it says <devices> then insert the xml from below:

<controller type='scsi' index='0' model='virtio-scsi'/>
    <hostdev mode='subsystem' type='scsi'>
      <source>
        <adapter name='scsi_host5'/>
        <address type='scsi' bus='0' target='0' unit='0'/>
      </source>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </hostdev>

 

SCSI Devices (found under Tools => System Devices)
[9:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GH22NS50  TN03  /dev/sr0

 

Since my cdrom is listed as [9:0:0:0]

scsi_host5 needs to be change to scsi_host9

 

Then save and launch your vm.

 

Go to device manager, you should now have a new device, SCSI Controller, update its driver by pointing it to the virtio-win. Once completed, your cdrom device will now be usable.

 

1392734676_DeviceManagerSCSI.PNG.331e2fc6072d843b89858fcba19129d9.PNG421644454_SCSIUpdated.PNG.5e1be878b37cf836d9bf3bba6209ca41.PNG1166339712_DeviceManagerSCSI-after.PNG.5b1c9a78e5431be76842169d9d37ac37.PNGCDROM.PNG.d0b35b98c1d2b18c0809153f80f7e8c7.PNG

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.