* tape support
@ 2008-09-11 10:54 Dietmar Maurer
2008-09-11 11:01 ` Laurent Vivier
0 siblings, 1 reply; 7+ messages in thread
From: Dietmar Maurer @ 2008-09-11 10:54 UTC (permalink / raw)
To: kvm
Is there a way to use a scsi tape? I tried -drive file=/dev/sg0, but
that does not work (eject, rewind works, but read/write fails - no date
is written - no errors)
- Dietmar
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: tape support
2008-09-11 10:54 tape support Dietmar Maurer
@ 2008-09-11 11:01 ` Laurent Vivier
2008-09-11 11:24 ` Dietmar Maurer
2008-09-13 4:51 ` Avi Kivity
0 siblings, 2 replies; 7+ messages in thread
From: Laurent Vivier @ 2008-09-11 11:01 UTC (permalink / raw)
To: Dietmar Maurer; +Cc: kvm
Le jeudi 11 septembre 2008 à 12:54 +0200, Dietmar Maurer a écrit :
> Is there a way to use a scsi tape? I tried -drive file=/dev/sg0, but
> that does not work (eject, rewind works, but read/write fails - no date
> is written - no errors)
try "-drive file=/dev/sg0,if=scsi"
Laurent
--
----------------- Laurent.Vivier@bull.net ------------------
"La perfection est atteinte non quand il ne reste rien à
ajouter mais quand il ne reste rien à enlever." Saint Exupéry
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: tape support
2008-09-11 11:01 ` Laurent Vivier
@ 2008-09-11 11:24 ` Dietmar Maurer
2008-09-11 11:43 ` Soren Hansen
2008-09-13 4:51 ` Avi Kivity
1 sibling, 1 reply; 7+ messages in thread
From: Dietmar Maurer @ 2008-09-11 11:24 UTC (permalink / raw)
To: Laurent Vivier; +Cc: kvm
I already tried that - it does not work (the tape is seen as st0 as expected, but read/write operation does not work).
- Dietmar
> -----Original Message-----
> From: Laurent Vivier [mailto:Laurent.Vivier@bull.net]
> Sent: Donnerstag, 11. September 2008 13:01
> To: Dietmar Maurer
> Cc: kvm@vger.kernel.org
> Subject: Re: tape support
>
> Le jeudi 11 septembre 2008 à 12:54 +0200, Dietmar Maurer a écrit :
> > Is there a way to use a scsi tape? I tried -drive file=/dev/sg0, but
> > that does not work (eject, rewind works, but read/write fails - no
> date
> > is written - no errors)
>
> try "-drive file=/dev/sg0,if=scsi"
>
> Laurent
> --
> ----------------- Laurent.Vivier@bull.net ------------------
> "La perfection est atteinte non quand il ne reste rien à
> ajouter mais quand il ne reste rien à enlever." Saint Exupéry
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: tape support
2008-09-11 11:24 ` Dietmar Maurer
@ 2008-09-11 11:43 ` Soren Hansen
0 siblings, 0 replies; 7+ messages in thread
From: Soren Hansen @ 2008-09-11 11:43 UTC (permalink / raw)
To: kvm
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
On Thu, Sep 11, 2008 at 01:24:20PM +0200, Dietmar Maurer wrote:
> I already tried that - it does not work (the tape is seen as st0 as expected, but read/write operation does not work).
Does the user running kvm have read/write access to the tape device on
the host?
--
Soren Hansen |
Virtualisation specialist | Ubuntu Server Team
Canonical Ltd. | http://www.ubuntu.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 315 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: tape support
2008-09-11 11:01 ` Laurent Vivier
2008-09-11 11:24 ` Dietmar Maurer
@ 2008-09-13 4:51 ` Avi Kivity
2008-09-13 8:01 ` Laurent Vivier
1 sibling, 1 reply; 7+ messages in thread
From: Avi Kivity @ 2008-09-13 4:51 UTC (permalink / raw)
To: Laurent Vivier; +Cc: Dietmar Maurer, kvm
Laurent Vivier wrote:
> Le jeudi 11 septembre 2008 à 12:54 +0200, Dietmar Maurer a écrit :
>
>> Is there a way to use a scsi tape? I tried -drive file=/dev/sg0, but
>> that does not work (eject, rewind works, but read/write fails - no date
>> is written - no errors)
>>
>
> try "-drive file=/dev/sg0,if=scsi"
>
How would that work? Won't qemu attempt to show the tape as a disk? Or
does it detect this special case and passes-through the scsi device?
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: tape support
2008-09-13 4:51 ` Avi Kivity
@ 2008-09-13 8:01 ` Laurent Vivier
2008-09-13 14:43 ` Avi Kivity
0 siblings, 1 reply; 7+ messages in thread
From: Laurent Vivier @ 2008-09-13 8:01 UTC (permalink / raw)
To: Avi Kivity; +Cc: Dietmar Maurer, kvm
Le samedi 13 septembre 2008 à 07:51 +0300, Avi Kivity a écrit :
> Laurent Vivier wrote:
> > Le jeudi 11 septembre 2008 à 12:54 +0200, Dietmar Maurer a écrit :
> >
> >> Is there a way to use a scsi tape? I tried -drive file=/dev/sg0, but
> >> that does not work (eject, rewind works, but read/write fails - no date
> >> is written - no errors)
> >>
> >
> > try "-drive file=/dev/sg0,if=scsi"
> >
>
> How would that work? Won't qemu attempt to show the tape as a disk? Or
> does it detect this special case and passes-through the scsi device?
Yes, Qemu detects it's SCSI interface and passes the SCSI commands to
devices. But qemu ignores the type of the device but OS (linux) detects
this as a tape (with INQUIRY).
It works well for CD/DVD and disk, but I'm working with Dietmar to make
it working with tape (commands encoding differs)... and I found some
devices to test.
Regards,
Laurent
--
----------------- Laurent.Vivier@bull.net ------------------
"La perfection est atteinte non quand il ne reste rien à
ajouter mais quand il ne reste rien à enlever." Saint Exupéry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: tape support
2008-09-13 8:01 ` Laurent Vivier
@ 2008-09-13 14:43 ` Avi Kivity
0 siblings, 0 replies; 7+ messages in thread
From: Avi Kivity @ 2008-09-13 14:43 UTC (permalink / raw)
To: Laurent Vivier; +Cc: Dietmar Maurer, kvm
Laurent Vivier wrote:
>> How would that work? Won't qemu attempt to show the tape as a disk? Or
>> does it detect this special case and passes-through the scsi device?
>>
>
> Yes, Qemu detects it's SCSI interface and passes the SCSI commands to
> devices. But qemu ignores the type of the device but OS (linux) detects
> this as a tape (with INQUIRY).
>
> It works well for CD/DVD and disk, but I'm working with Dietmar to make
> it working with tape (commands encoding differs)... and I found some
> devices to test.
>
Neat...
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-09-13 14:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 10:54 tape support Dietmar Maurer
2008-09-11 11:01 ` Laurent Vivier
2008-09-11 11:24 ` Dietmar Maurer
2008-09-11 11:43 ` Soren Hansen
2008-09-13 4:51 ` Avi Kivity
2008-09-13 8:01 ` Laurent Vivier
2008-09-13 14:43 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox