Does anybody have a solution to my problem below, sorry for the messy thread.. > 17 apr. 2020 kl. 15:49 skrev mb425018 <andreas.thorn@xxxxxxxxxx>: > > 2020-04-17 11:37 skrev Peter Krempa: >> [please don't top post] >>> On Fri, Apr 17, 2020 at 10:54:24 +0200, Andreas Thörn wrote: >>> I’ve tried that post .. but either I get a new scsi passthrough controller in device manager, but no dvd or the boot in windows hangs >> Note that you don't have to add a scsi <controller> if you already have >> one. You can add the drive to the existing one. > > I don't have a scsi controller in my XML so I added > > <controller type='scsi' index='1' model='virtio-scsi'> > <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> > </controller> > > (0x08 is not used in the xml before) > >>> Either that method won’t work anymore or my config is bad .. im not really sure what to put in controller, target, bus and unit .. >> So there are two addresses for the <hostdev>. >> The one under <source> should be set to the address of the CDROM drive >> on the host. It can be obtained e.g. using lsscsi: >> # lsscsi >> [2:0:1:0] disk ATA ST3500418AS CC38 /dev/sda >> [3:0:0:0] cd/dvd HL-DT-ST DVDRAM GH24NSB0 LN00 /dev/sr0 >> (so 'scsi_host3'(adapter) and bus='0' target='0' unit='0') >> The second address <address type='drive> is the address on the VM's bus. >> <address type='drive' controller='1' bus='0' target='0' unit='0'/> >> You set 'controller' to the 'index' attribute of the <controller> you >> want it to attach to. The 'bus' should be '0'. If you have other devices >> on the controller, pick an unused 'target' value and 'unit' should be '0'. > > And the following hostdev definition.. > > <hostdev mode='subsystem' type='scsi'> > <source> > <adapter name='scsi_host1'/> > <address type='scsi' bus='0' target='0' unit='0'/> > </source> > <readonly/> > <address type='drive' controller='1' bus='0' target='0' unit='0'/> > </hostdev> > > #lsscsi > [1:0:0:0] cd/dvd ASUS DRW-24D5MT 2.00 /dev/sr0 > > But windows won't boot .. the boot screen just keep on loading. > > What I don't understand is why to passthrough as scsi and not SATA > >>> Skickat från min iPad >>>> > 17 apr. 2020 kl. 08:38 skrev Tony Brian Albers <tba@xxxxx>: >>> > >>> > Hi Andreas, >>> > >>> > This might be of some help: >>> > >>> > https://forums.unraid.net/topic/46887-passthrough-optical-drives/?tab=comments#comment-462290 >>> > >>> > Unraid also uses KVM ;) >>> > >>> > >>> > /tony >>> > >>> >> On Fri, 2020-04-17 at 07:24 +0200, Andreas Thörn wrote: >>> >> I want to add my dvd and be able to burn dvd’s. I’ve tried every >>> >> solution I could find, but nothing works. >>> >> >>> >> In my xml i have: >>> >> >>> >> <disk type='block' device='cdrom'> >>> >> <driver name='qemu' type='raw'/> >>> >> <source dev='/dev/sr0'/> >>> >> <target dev='sdb' bus='sata'/> >>> >> <address type='drive' controller='0' bus='0' target='0' unit='0'/> >>> >> </disk> >>> >> >>> >> In my guest (windows 10) it’s shown as "QEMU QEMU DVD-ROM” .. which >>> >> of course means I can’t burn. >>> >> >>> >> If anyone has a solution it would be this mailing list >>> >> >>> >> Thanks >>> >> Andreas >>> >> >>> >> >>> > -- >>> > Tony Albers - Systems Architect - IT Development >>> > Royal Danish Library, Victor Albecks Vej 1, 8000 Aarhus C, Denmark >>> > Tel: +45 2566 2383 - CVR/SE: 2898 8842 - EAN: 5798000792142