All of lore.kernel.org
 help / color / mirror / Atom feed
* lightscribe support
@ 2014-02-14 21:29 Nerijus Baliunas
  2014-02-15 10:07 ` Oliver Rath
  2014-02-15 20:27 ` Brian Jackson
  0 siblings, 2 replies; 11+ messages in thread
From: Nerijus Baliunas @ 2014-02-14 21:29 UTC (permalink / raw)
  To: kvm

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-14 21:29 lightscribe support Nerijus Baliunas
@ 2014-02-15 10:07 ` Oliver Rath
  2014-02-15 13:07   ` Nerijus Baliunas
  2014-02-15 20:27 ` Brian Jackson
  1 sibling, 1 reply; 11+ messages in thread
From: Oliver Rath @ 2014-02-15 10:07 UTC (permalink / raw)
  To: Nerijus Baliunas, kvm

Hi Nerijus,

Am 14.02.2014 22:29, schrieb 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".
>

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-15 10:07 ` Oliver Rath
@ 2014-02-15 13:07   ` Nerijus Baliunas
  2014-02-15 15:02     ` Nerijus Baliunas
  0 siblings, 1 reply; 11+ messages in thread
From: Nerijus Baliunas @ 2014-02-15 13:07 UTC (permalink / raw)
  To: kvm

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-15 13:07   ` Nerijus Baliunas
@ 2014-02-15 15:02     ` Nerijus Baliunas
  2014-02-15 18:26       ` Nerijus Baliunas
  0 siblings, 1 reply; 11+ messages in thread
From: Nerijus Baliunas @ 2014-02-15 15:02 UTC (permalink / raw)
  To: kvm

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-15 15:02     ` Nerijus Baliunas
@ 2014-02-15 18:26       ` Nerijus Baliunas
  2014-02-15 18:42         ` Alex Williamson
  0 siblings, 1 reply; 11+ messages in thread
From: Nerijus Baliunas @ 2014-02-15 18:26 UTC (permalink / raw)
  To: kvm

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-15 18:26       ` Nerijus Baliunas
@ 2014-02-15 18:42         ` Alex Williamson
  0 siblings, 0 replies; 11+ messages in thread
From: Alex Williamson @ 2014-02-15 18:42 UTC (permalink / raw)
  To: Nerijus Baliunas; +Cc: kvm

On Sat, 2014-02-15 at 18:26 +0000, Nerijus Baliunas wrote:
> 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?

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-14 21:29 lightscribe support Nerijus Baliunas
  2014-02-15 10:07 ` Oliver Rath
@ 2014-02-15 20:27 ` Brian Jackson
  2014-02-16  1:41   ` Nerijus Baliunas
  1 sibling, 1 reply; 11+ messages in thread
From: Brian Jackson @ 2014-02-15 20:27 UTC (permalink / raw)
  To: Nerijus Baliunas, kvm

On 02/14/2014 03:29 PM, Nerijus Baliunas wrote:
> 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.


>
> Regards,
> Nerijus
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-15 20:27 ` Brian Jackson
@ 2014-02-16  1:41   ` Nerijus Baliunas
  2014-02-16  1:55     ` Nerijus Baliunas
  0 siblings, 1 reply; 11+ messages in thread
From: Nerijus Baliunas @ 2014-02-16  1:41 UTC (permalink / raw)
  To: kvm

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-16  1:41   ` Nerijus Baliunas
@ 2014-02-16  1:55     ` Nerijus Baliunas
  2014-02-16 18:34       ` Paolo Bonzini
  0 siblings, 1 reply; 11+ messages in thread
From: Nerijus Baliunas @ 2014-02-16  1:55 UTC (permalink / raw)
  To: kvm

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-16  1:55     ` Nerijus Baliunas
@ 2014-02-16 18:34       ` Paolo Bonzini
  2014-02-16 22:12         ` Nerijus Baliunas
  0 siblings, 1 reply; 11+ messages in thread
From: Paolo Bonzini @ 2014-02-16 18:34 UTC (permalink / raw)
  To: Nerijus Baliunas, kvm

Il 16/02/2014 02:55, Nerijus Baliunas ha scritto:
>     <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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: lightscribe support
  2014-02-16 18:34       ` Paolo Bonzini
@ 2014-02-16 22:12         ` Nerijus Baliunas
  0 siblings, 0 replies; 11+ messages in thread
From: Nerijus Baliunas @ 2014-02-16 22:12 UTC (permalink / raw)
  To: kvm

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>



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-02-16 22:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-14 21:29 lightscribe support Nerijus Baliunas
2014-02-15 10:07 ` Oliver Rath
2014-02-15 13:07   ` Nerijus Baliunas
2014-02-15 15:02     ` Nerijus Baliunas
2014-02-15 18:26       ` Nerijus Baliunas
2014-02-15 18:42         ` Alex Williamson
2014-02-15 20:27 ` Brian Jackson
2014-02-16  1:41   ` Nerijus Baliunas
2014-02-16  1:55     ` Nerijus Baliunas
2014-02-16 18:34       ` Paolo Bonzini
2014-02-16 22:12         ` Nerijus Baliunas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.