how to burn a dvd from guest on physical dvd-writer/-burner

slotti

New Member
May 8, 2011
5
0
1
Hello all,

I'm new here and I'm hoping, to get help here. I'm from germany - english is not my native language...

I am using Proxmox VE 1.8.

I want to use a physical dvd-writer to write dvds from inside a guest (WinXP).
How can this be done? The writer in Proxmox VE is found under/as "/dev/sr0". So I tried to put a line in the vm-conf-file:
--> "scsi0: /dev/sr0", but that didn't work. The same with "ide2: /dev/sr0".
When I append "...,media=cdrom", I also cannot access the writer as a writer inside the guest-os.

So please tell me: is this feature I want to implement supported at all?

Thanks for your reply.

Dominik
 
Hello Tom,

many thanks for your reply.

No, it didn't help me much. I've read this threat yesterday on my search. There was only mentioned that I have to use "pci_add" in the "monitor-mode". But I can't figure out, how to use this command or what I should hotplug into the virtual machine.
After googling around in the www I found out that I should use "lspci" to find the right device I want to hotplug. But at this point my knowledge ends... :'-(

Here is the output of "lspci":
Code:
vs01:~# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:01.0 PCI bridge: ASUSTeK Computer Inc. RS880 PCI to PCI bridge (int gfx)
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:09.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
00:12.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB7x0 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB7x0 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)
00:14.1 IDE interface: ATI Technologies Inc SB7x0/SB8x0/SB9x0 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:05.0 VGA compatible controller: ATI Technologies Inc 760G [Radeon 3000]
01:05.1 Audio device: ATI Technologies Inc RS780 Azalia controller
02:00.0 RAID bus controller: Adaptec AAC-RAID (rev 09)
03:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
05:06.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)

Is it the "IDE interface" which I should hotplug? My DVD-writer is connected through an IDE-cable and not via SATA. But "dmesg" tells me that it is an SCSI-device...?!
Code:
vs01:~# dmesg | grep sr0
sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
sr 5:0:1:0: Attached scsi CD-ROM sr0

Here is the output of my "pveversion --verbose":
Code:
vs01:~# pveversion --verbose
pve-manager: 1.8-15 (pve-manager/1.8/5754)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.32: 1.8-32
pve-kernel-2.6.32-4-pve: 2.6.32-32
qemu-server: 1.1-30
pve-firmware: 1.0-11
libpve-storage-perl: 1.0-17
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-11
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.14.0-3
ksm-control-daemon: 1.0-5

What to do now? :)

Dominik
 
Hello,

for all people who are standing in front of the same problem like me...

Here's what I've done so far:

Code:
# cat /sys/class/scsi_generic/sg6/device/model
DVDRAM GSA-4120B
# vi /etc/qemu-server/<vmid>.conf

so I added the line:

Code:
scsi0: /dev/sg6,media=cdrom
- halt the virtual machine
- start the virtual machine (all described here: http://pve.proxmox.com/wiki/Tape_Dr..._SCSI_pass_through_.28for_Linux_KVM_guests.29)
(I sadly noticed to late that this solution is only for linux guests...)

- the burning software now recognises the writer correct and I am able to access a CD-RW (read, erase, write)

BUT: every access to the physical DVD-writer with a DVD inside ends in an total collapse of the virtual machine (Windows XP)!

So I decided to try an other way to get this working... (as described here: http://pve.proxmox.com/wiki/Tape_Dr..._as_iSCSI_target_.28for_Windows_KVM_guests.29)

Code:
# apt-get install iscsi-scst scstadmin
# cat /proc/scsi_tgt/scsi_tgt
Device (host:ch:id:lun or name)                             Device handler
0:0:0:0                                                     dev_disk
0:0:1:0                                                     dev_disk
0:1:0:0                                                     dev_disk
0:1:1:0                                                     dev_disk
0:1:2:0                                                     dev_disk
0:1:3:0                                                     dev_disk
5:0:1:0                                                     none
# dmesg | grep 5:0:1:0
scsi 5:0:1:0: CD-ROM            HL-DT-ST DVDRAM GSA-4120B A117 PQ: 0 ANSI: 5
sr 5:0:1:0: Attached scsi CD-ROM sr0
sr 5:0:1:0: Attached scsi generic sg6 type 5
sr 5:0:1:0: [sg6] CDB: cdb[0]=0xa4, sa=0x0: a4 00 00 00 00 00 00 00 00 08 08 00
sr 5:0:1:0: [sg6] CDB: cdb[0]=0xa4, sa=0x0: a4 00 00 00 00 00 00 00 00 08 08 00
sr 5:0:1:0: [sg6] CDB: cdb[0]=0xa4, sa=0x0: a4 00 00 00 00 00 00 00 00 08 08 00
sr 5:0:1:0: [sg6] CDB: cdb[0]=0xa4, sa=0x0: a4 00 00 00 00 00 00 00 00 08 08 00
sr 5:0:1:0: [sg6] CDB: cdb[0]=0xa4, sa=0x0: a4 00 00 00 00 00 00 00 00 08 08 00
sr 5:0:1:0: [sg6] CDB: cdb[0]=0xa4, sa=0x0: a4 00 00 00 00 00 00 00 00 08 08 00
sr 5:0:1:0: [sg6] CDB: cdb[0]=0xa4, sa=0x0: a4 00 00 00 00 00 00 00 00 08 08 00
sr 5:0:1:0: [sg6] CDB: cdb[0]=0xa4, sa=0x0: a4 00 00 00 00 00 00 00 00 08 08 00

But because of the missing "Device handler" "dev_cdrom" of the "Device 5:0:1:0" I am not able to export the DVD-writer - I think.

Here's my "/etc/scst.conf":

Code:
[HANDLER cdrom]
#DEVICE <H:C:I:L>
DEVICE 5:0:1:0
[HANDLER disk]
#DEVICE <H:C:I:L>
[HANDLER vdisk]
#DEVICE <vdisk name>,<device path>,<options>,<block size>
[HANDLER tape]
#DEVICE <H:C:I:L>
[GROUP Default]
#USER <user wwn>
[ASSIGNMENT Default]
#DEVICE <device name>,<lun>
DEVICE 5:0:1:0,0
[TARGETS enable]
#HOST <wwn identifier>
[TARGETS disable]
#HOST <wwn identifier>

And here is the error:

Code:
vs01:~# /etc/init.d/scst reload
Reloading SCST configuration failed!

How can I get this missing "Device handler" ("dev_cdrom") into Proxmox Debian to export the DVD-writer via iSCSI?

Dominik
 
yes yes - here we go... :D

Code:
vs01:~# lsmod | grep scst_cdrom
vs01:~# modprobe scst_cdrom
vs01:~# cat /proc/scsi_tgt/scsi_tgt
Device (host:ch:id:lun or name)                             Device handler
0:0:0:0                                                     dev_disk
0:0:1:0                                                     dev_disk
0:1:0:0                                                     dev_disk
0:1:1:0                                                     dev_disk
0:1:2:0                                                     dev_disk
0:1:3:0                                                     dev_disk
5:0:1:0                                                     dev_cdrom
vs01:~# vi /etc/modules

add the line:

Code:
scst_cdrom

connect through iscsi-initiator to the targeted dvd-writer and enjoy...

= )

Dominik
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!