Jump to content

Passing SATA DVD burner to VM?


Recommended Posts

I am trying to pass in my DVD burner to a Ubuntu Linux VM to be able to BURN DVDs/BDs with data from the array. The burner is on the same controller as some of the array disk.

"lsscsi" and "System devices tab" lists it as "[9:0:0:0]    cd/dvd  Optiarc  DVD RW AD-7200A  1.08  /dev/sr0"

Executing "cat /proc/sys/dev/cdrom/info" in UNRAID shows:
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name:             sr0
drive speed:            48
drive # of slots:       1
Can close tray:         1
Can open tray:          1
Can lock tray:          1
Can change speed:       1
Can select disk:        0
Can read multisession:  1
Can read MCN:           1
Reports media changed:  1
Can play audio:         1
Can write CD-R:         1
Can write CD-RW:        1
Can read DVD:           1
Can write DVD-R:        1
Can write DVD-RAM:      1
Can read MRW:           0
Can write MRW:          0
Can write RAM:          1

 

I do not know KVM virtualization very well so trying to follow various answers in forums and is right now trying:

 

<hostdev mode='subsystem' type='scsi' managed='no'>

      <source>

        <adapter name='scsi_host9'/>

        <address bus='0' target='0' unit='0'/>

      </source>

      <address type='drive' controller='1' bus='0' target='0' unit='0'/>

</hostdev>

but I am not sure if this is right or how to find what to specify for "controller". The commands "hwinfo --storage-ctrl" and "hwinfo --disk" is not avaialble in UNRAID. 

 

Anyhow this setting do result in the DVD to show up in the VM but NOT as a writer 😞

 

In the VM "lsscsi" shows:
[1:0:0:0]    cd/dvd  QEMU     QEMU DVD-ROM     2.5+  /dev/sr1
[4:0:0:0]    cd/dvd  Optiarc  DVD RW AD-7200A  1.08  /dev/sr0
[9:0:0:0]    cd/dvd  QEMU     QEMU DVD-ROM     2.5+  /dev/sr2
and "cat /proc/sys/dev/cdrom/info":
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name:             sr2     sr1     sr0
drive speed:            4       4       1
drive # of slots:       1       1       1
Can close tray:         1       1       1
Can open tray:          1       1       1
Can lock tray:          1       1       1
Can change speed:       1       1       0
Can select disk:        0       0       0
Can read multisession:  1       1       1
Can read MCN:           1       1       1
Reports media changed:  1       1       1
Can play audio:         1       1       1
Can write CD-R:         0       0       0
Can write CD-RW:        0       0       0
Can read DVD:           1       1       0
Can write DVD-R:        0       0       0
Can write DVD-RAM:      0       0       0
Can read MRW:           1       1       0
Can write MRW:          1       1       0
Can write RAM:          1       1       0

 

Any suggestions on what I can try to make it available with write capability?

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...