Skip to contentSkip to conversation

lightscribe support

DISCUSSION Nerijus Baliunas 5 participants 11 messages Feb 15, 2014 – Feb 16, 2014 KVM

lore
Share & tools
lore
#0 lore raw

Hello,

is it possible to support lightscribe in KVM? Now Windows VM sees QEMU DVD-ROM ATA Device and labeling software shows "No LightScribe Drives Found".

Regards,
Nerijus

#1 lore raw

Hi Nerijus,

Am 14.02.2014 22:29, schrieb Nerijus Baliunas:

Quoted 5 lines

Hello,

is it possible to support lightscribe in KVM? Now Windows VM sees QEMU DVD-ROM ATA Device and labeling software shows "No LightScribe Drives Found".

Normally kvm emulates the cdrom drive. If you want to use the native functionality, you have to passthrough the drive (depending on the your device usb or pci sata-hardware). If your drive is attached via usb, you can try passthrough the usb-device, if it is connected via sata, you have to passthrough the sata-pci-device.

Regards
Oliver

#2 lore raw
Quoted 5 lines · Oliver Rath <rath <at> mglug.de> writes:

Normally kvm emulates the cdrom drive. If you want to use the native functionality, you have to passthrough the drive (depending on the your device usb or pci sata-hardware). If your drive is attached via usb, you can try passthrough the usb-device, if it is connected via sata, you have to passthrough the sata-pci-device.

It is connected via PCI IDE controller (Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller). Is it possible to passthrough it?

Thanks,
Nerijus

#3 lore raw
Quoted 2 lines · Nerijus Baliunas <nerijus <at> users.sourceforge.net> writes:

It is connected via PCI IDE controller (Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller). Is it possible to passthrough it?

Tried it, but unsuccessfully:

Error starting domain: internal error: early end of file from monitor:
possible problem:
qemu-system-x86_64: -device pci-assign,configfd=26,host=04:00.0,id=hostdev0,bus=pci.0,addr=0x8: PCI region 5 at address 0xf7ce0000 has size 0x100, which is not a multiple of 4K. You might experience some performance hit due to that.
qemu-system-x86_64: -device pci-assign,configfd=26,host=04:00.0,id=hostdev0,bus=pci.0,addr=0x8: No IOMMU found. Unable to assign device "hostdev0"
qemu-system-x86_64: -device pci-assign,configfd=26,host=04:00.0,id=hostdev0,bus=pci.0,addr=0x8: Device initialization failed.
qemu-system-x86_64: -device pci-assign,configfd=26,host=04:00.0,id=hostdev0,bus=pci.0,addr=0x8: Device 'kvm-pci-assign' could not be initialized

#4 lore raw
Quoted 2 lines · Nerijus Baliunas <nerijus <at> users.sourceforge.net> writes:

pci-assign,configfd=26,host=04:00.0,id=hostdev0,bus=pci.0,addr=0x8: No IOMMU found. Unable to assign device "hostdev0"

I added intel_iommu=on' to the kernel cmdline, # dmesg|grep -i iommu

[    0.000000] Command line: ro root=/dev/md0 intel_iommu=on
[    0.000000] Kernel command line: ro root=/dev/md0 intel_iommu=on
[    0.000000] Intel-IOMMU: enabled

But still the same. My CPU is i5-3570K, and I do not see it in
https://en.wikipedia.org/wiki/List_of_IOMMU-supporting_hardware, so it means it cannot be supported?

Thanks,
Nerijus

#5 lore raw
Quoted 5 lines · Nerijus Baliunas
Quoted 2 lines · Nerijus Baliunas <nerijus <at> users.sourceforge.net> writes:

pci-assign,configfd=26,host=04:00.0,id=hostdev0,bus=pci.0,addr=0x8: No IOMMU found. Unable to assign device "hostdev0"

Quoted 8 lines

I added intel_iommu=on' to the kernel cmdline, # dmesg|grep -i iommu

[    0.000000] Command line: ro root=/dev/md0 intel_iommu=on
[    0.000000] Kernel command line: ro root=/dev/md0 intel_iommu=on
[    0.000000] Intel-IOMMU: enabled

But still the same. My CPU is i5-3570K, and I do not see it in
https://en.wikipedia.org/wiki/List_of_IOMMU-supporting_hardware, so it means it cannot be supported?

Correct, most of the unlocked 'K' models do not support VT-d:

http://ark.intel.com/products/65520/Intel-Core-i5-3570K-Processor-6M-Cache-up-to-3_80-GHz

#6 lore raw
In reply to Nerijus Baliunas
Quoted 4 lines · Nerijus Baliunas

Hello,

is it possible to support lightscribe in KVM? Now Windows VM sees QEMU DVD-ROM ATA Device and labeling software shows "No LightScribe Drives Found".

You could try to use virtio-scsi and scsi passthru. I believe there's been a post on this in the past (more than likely on the qemu-devel mailing list.

Quoted 8 lines

Regards,
Nerijus

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 3 lines · Brian Jackson <iggy <at> theiggy.com> writes:

You could try to use virtio-scsi and scsi passthru. I believe there's been a post on this in the past (more than likely on the qemu-devel mailing list.

I see I can choose VirtIO SCSI bus type in virt-manager. I added as a raw cdrom, then changed VM.xml like this:

    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/dev/sr0'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

Red Hat VirtIO SCSI pass-through controller was installed in a Vista VM, and additional QEMU CD-ROM SCSI CdRom Device appeared. But Lightscribe software still does not find lightscribe capable drives.

#8 lore raw
Quoted 10 lines · Nerijus Baliunas <nerijus <at> users.sourceforge.net> writes:

I see I can choose VirtIO SCSI bus type in virt-manager. I added as a raw cdrom, then changed VM.xml like this:

    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/dev/sr0'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
Quoted 3 lines

Red Hat VirtIO SCSI pass-through controller was installed in a Vista VM, and additional QEMU CD-ROM SCSI CdRom Device appeared. But Lightscribe software still does not find lightscribe capable drives.

I changed device from 'cdrom' to 'lun':

    <disk type='file' device='lun'>

also tried
<disk type='block' device='lun'>

but in both cases VM does not start:

Error starting domain: unsupported configuration: disk device='lun' is only valid for block type disk source.

maintainer
#9 lore raw

Il 16/02/2014 02:55, Nerijus Baliunas ha scritto:

Quoted 7 lines

<disk type='block' device='lun'>

but in both cases VM does not start:

Error starting domain: unsupported configuration: disk device='lun' is only valid for block type disk source.

It should work with <disk type='block' device='lun'>, but you also need to use

<source dev='/dev/sr0'/>

(i.e. dev instead of file).

Paolo

#10 lore raw
Quoted 6 lines · Paolo Bonzini <pbonzini <at> redhat.com> writes:

It should work with <disk type='block' device='lun'>, but you also need to use

    <source dev='/dev/sr0'/>

(i.e. dev instead of file).

Thanks, it worked! VM now sees the lightscribe drive, Just for the information, the following works:

    <disk type='block' device='lun'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/sr0'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>