Jump to content

Pass through a host DVD Drive


Recommended Posts

On 6/21/2020 at 4:26 AM, Germanus4711 said:

I had some success with the following inserted into the <disk> section:

<disk type='block' device='cdrom'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/sr0'/>
  <target dev='hdg' bus='sata'/>
  <readonly/>
</disk>

Given that lsscsi revealed:
[4:0:0:0]    cd/dvd  TSSTcorp DVDWBD SH-B123L  SB04  /dev/sr0 

I confirm it works for me as well. Thanks

And I didn't need the lsscsi command as I could find the correct information from the Tools menu and System Devices

image.thumb.png.e87491cdc6c31129206d2edc16367263.png

Link to comment
  • 2 months later...

Hello, unfortunately I also have the problem that my drive is detected in Windows Device Manager as an unknown SCSI device and I can't install the appropriate driver. What am I doing wrong?

 

<hostdev mode='subsystem' type='scsi' managed='no'>
  <source>
   <adapter name='scsi_host6'/>
   <address bus='0' target='0' unit='0'/>
  </source>
  <readonly/>
  <address type='drive' controller='0' bus='0' target='0' unit='0'/>
</hostdev>

 

image.png.6ecdc1ac3d3ce09b1b30fe1226b0efe0.png

Edited by Pixelpaule
Link to comment

After I have looked at everything again in peace, it has finally worked. My two Blu ray drives, which are connected to the mainboard via SATA, are now also recognized in freshly set up VMs. I made the mistake all the time and forgot the following line:

<controller type='scsi' index='0' model='virtio-scsi'/>

 

  • Like 1
Link to comment
  • 1 year later...
On 6/20/2020 at 10:56 PM, Germanus4711 said:

I had some success with the following inserted into the <disk> section:

<disk type='block' device='cdrom'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/sr0'/>
  <target dev='hdg' bus='sata'/>
  <readonly/>
</disk>

Given that lsscsi revealed:
[4:0:0:0]    cd/dvd  TSSTcorp DVDWBD SH-B123L  SB04  /dev/sr0 

 

I can confirm this is the solution worked for me

 

Thanks alot for saving hours of troubleshooting. 

Edited by Moriarty
Link to comment
  • 1 year later...
On 6/20/2020 at 6:26 PM, Germanus4711 said:

I had some success with the following inserted into the <disk> section:

<disk type='block' device='cdrom'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/sr0'/>
  <target dev='hdg' bus='sata'/>
  <readonly/>
</disk>

Given that lsscsi revealed:
[4:0:0:0]    cd/dvd  TSSTcorp DVDWBD SH-B123L  SB04  /dev/sr0 

 

This is the way :-)

 

Or is it? I cannot update firmware on drive. And I note it says in the XML read only so not good for a burner...

 

Tried adding a separate controller but that is causing my machine to bootloop (old ASM1061 card).

Edited by methanoid
WASNT working
Link to comment

@methanoid

Check out (my) first 2 responses to this post.   I speant a lot of time and went through a lot of controllers to find a solution that worked (full speed read and write, full direct functions in vm, can update firmware, etc ) and would not cause bootloops in my rig.  

 

In short, I'm using an out of the box odd controller that I've blacklisted.     

 

A lot of controllers caused issues.   A specific  ASM1062 one did not.

 

The 1 thing that will not work doing this in my rig is reboot unraid.   I need to power off, then power on. 

 

@testdasi has a post in this chain with a dedicated link to folks that got full read write without a controller.

 

This method did not provide full access to the drive in my rig.

 

Edited by landS
Link to comment

@landS yeah I tried passing two different cards I had but didnt work (as I stated).. Plenty other devices pass so no idea why these wont but not buying a card or tying up a slot for burner. But will put burner in another machine, update FW and then back in unRAID box for bluray ripping and then that XML method will be fine

  • Upvote 1
Link to comment
On 6/20/2020 at 1:26 PM, Germanus4711 said:

I had some success with the following inserted into the <disk> section:

<disk type='block' device='cdrom'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/sr0'/>
  <target dev='hdg' bus='sata'/>
  <readonly/>
</disk>

Given that lsscsi revealed:
[4:0:0:0]    cd/dvd  TSSTcorp DVDWBD SH-B123L  SB04  /dev/sr0 

 

This worked perfectly fine for me. Thanks!

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.

×
×
  • Create New...