All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] can't bot from scsi http cdrom
@ 2015-04-06 10:15 Vasiliy Tolstov
  2015-04-10 10:02 ` Stefan Hajnoczi
  2015-04-10 10:53 ` Paolo Bonzini
  0 siblings, 2 replies; 5+ messages in thread
From: Vasiliy Tolstov @ 2015-04-06 10:15 UTC (permalink / raw)
  To: qemu-devel

Hi. I'm try to boot from http cdrom and can't do that in case of scsi:
    <disk type='network' device='cdrom'>
      <driver name='qemu' type='raw' cache='unsafe'/>
      <source protocol='http' name='/vps/rescue-4.5.2'>
        <host name='xx.xx' port='80'/>
      </source>
      <backingStore/>
      <target dev='sdb' bus='scsi'/>
      <readonly/>
      <alias name='scsi0-0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>

but in case of ide:
    <disk type='network' device='cdrom'>
      <driver name='qemu' type='raw' cache='unsafe'/>
      <source protocol='http' name='/vps/rescue-4.5.2'>
        <host name='xx.xx' port='80'/>
      </source>
      <backingStore/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

all works fine.

libvirt - 1.2.10
qemu - 2.0.0
seabios - 1.7.5

-- 
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru

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

* Re: [Qemu-devel] can't bot from scsi http cdrom
  2015-04-06 10:15 [Qemu-devel] can't bot from scsi http cdrom Vasiliy Tolstov
@ 2015-04-10 10:02 ` Stefan Hajnoczi
  2015-04-10 10:53 ` Paolo Bonzini
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Hajnoczi @ 2015-04-10 10:02 UTC (permalink / raw)
  To: Vasiliy Tolstov; +Cc: libvir-list, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

On Mon, Apr 06, 2015 at 01:15:24PM +0300, Vasiliy Tolstov wrote:
> Hi. I'm try to boot from http cdrom and can't do that in case of scsi:
>     <disk type='network' device='cdrom'>
>       <driver name='qemu' type='raw' cache='unsafe'/>
>       <source protocol='http' name='/vps/rescue-4.5.2'>
>         <host name='xx.xx' port='80'/>
>       </source>
>       <backingStore/>
>       <target dev='sdb' bus='scsi'/>
>       <readonly/>
>       <alias name='scsi0-0-0-1'/>
>       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
>     </disk>
> 
> but in case of ide:
>     <disk type='network' device='cdrom'>
>       <driver name='qemu' type='raw' cache='unsafe'/>
>       <source protocol='http' name='/vps/rescue-4.5.2'>
>         <host name='xx.xx' port='80'/>
>       </source>
>       <backingStore/>
>       <target dev='hda' bus='ide'/>
>       <readonly/>
>       <alias name='ide0-0-0'/>
>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>     </disk>
> 
> all works fine.
> 
> libvirt - 1.2.10
> qemu - 2.0.0
> seabios - 1.7.5

This is a libvirt question.  I have CCed the libvirt mailing list.

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

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

* Re: [Qemu-devel] can't bot from scsi http cdrom
  2015-04-06 10:15 [Qemu-devel] can't bot from scsi http cdrom Vasiliy Tolstov
  2015-04-10 10:02 ` Stefan Hajnoczi
@ 2015-04-10 10:53 ` Paolo Bonzini
  2015-04-13 12:34   ` Vasiliy Tolstov
  1 sibling, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2015-04-10 10:53 UTC (permalink / raw)
  To: Vasiliy Tolstov, qemu-devel



On 06/04/2015 12:15, Vasiliy Tolstov wrote:
> Hi. I'm try to boot from http cdrom and can't do that in case of scsi:
>     <disk type='network' device='cdrom'>
>       <driver name='qemu' type='raw' cache='unsafe'/>
>       <source protocol='http' name='/vps/rescue-4.5.2'>
>         <host name='xx.xx' port='80'/>
>       </source>
>       <backingStore/>
>       <target dev='sdb' bus='scsi'/>
>       <readonly/>
>       <alias name='scsi0-0-0-1'/>
>       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
>     </disk>

Try using target='1' unit='0'.  SeaBIOS only boots from LUN0.

Paolo

> but in case of ide:
>     <disk type='network' device='cdrom'>
>       <driver name='qemu' type='raw' cache='unsafe'/>
>       <source protocol='http' name='/vps/rescue-4.5.2'>
>         <host name='xx.xx' port='80'/>
>       </source>
>       <backingStore/>
>       <target dev='hda' bus='ide'/>
>       <readonly/>
>       <alias name='ide0-0-0'/>
>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>     </disk>
> 
> all works fine.
> 
> libvirt - 1.2.10
> qemu - 2.0.0
> seabios - 1.7.5
> 

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

* Re: [Qemu-devel] can't bot from scsi http cdrom
  2015-04-10 10:53 ` Paolo Bonzini
@ 2015-04-13 12:34   ` Vasiliy Tolstov
  2015-04-13 13:31     ` [Qemu-devel] Changing media on network disks (was Re: can't bot from scsi http cdrom) Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Vasiliy Tolstov @ 2015-04-13 12:34 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

2015-04-10 13:53 GMT+03:00 Paolo Bonzini <pbonzini@redhat.com>:
> Try using target='1' unit='0'.  SeaBIOS only boots from LUN0.


Thanks! This is works fine. Last question - does it possible to create
empty cdrom with type='network'?
I'm try this, but libvrit complains with error:
          <disk type='network' device='cdrom'>
            <driver name='qemu' type='raw'/>
            <target dev='sdb' bus='scsi' tray='open'/>
            <address type='drive' controller='0' target='1' bus='0' unit='1'/>
            <readonly/>
          </disk>



-- 
Vasiliy Tolstov,
e-mail: v.tolstov@selfip.ru
jabber: vase@selfip.ru

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

* [Qemu-devel] Changing media on network disks (was Re: can't bot from scsi http cdrom)
  2015-04-13 12:34   ` Vasiliy Tolstov
@ 2015-04-13 13:31     ` Paolo Bonzini
  0 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2015-04-13 13:31 UTC (permalink / raw)
  To: Vasiliy Tolstov; +Cc: libvir-list, qemu-devel



On 13/04/2015 14:34, Vasiliy Tolstov wrote:
> Thanks! This is works fine. Last question - does it possible to create
> empty cdrom with type='network'?
> I'm try this, but libvrit complains with error:
>           <disk type='network' device='cdrom'>
>             <driver name='qemu' type='raw'/>
>             <target dev='sdb' bus='scsi' tray='open'/>
>             <address type='drive' controller='0' target='1' bus='0' unit='1'/>
>             <readonly/>
>           </disk>

No, unfortunately not because "virsh change-media" wouldn't be able to
convert its argument to the required libvirt XML.  I think you would
need a new virsh change-media option, e.g. --xml, that takes a <disk>
element instead of a source path + target path pair.  However, I am not
a libvirt developer.

Paolo

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

end of thread, other threads:[~2015-04-13 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-06 10:15 [Qemu-devel] can't bot from scsi http cdrom Vasiliy Tolstov
2015-04-10 10:02 ` Stefan Hajnoczi
2015-04-10 10:53 ` Paolo Bonzini
2015-04-13 12:34   ` Vasiliy Tolstov
2015-04-13 13:31     ` [Qemu-devel] Changing media on network disks (was Re: can't bot from scsi http cdrom) Paolo Bonzini

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.