qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Vasiliy Tolstov <v.tolstov@selfip.ru>
Cc: libvir-list@redhat.com, qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Changing media on network disks (was Re: can't bot from scsi http cdrom)
Date: Mon, 13 Apr 2015 15:31:10 +0200	[thread overview]
Message-ID: <552BC51E.5020203@redhat.com> (raw)
In-Reply-To: <CACaajQuH_+1ziVRRzLZYjcKYHBjyiQJY-V5gFkonRv--7709Dg@mail.gmail.com>



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

      reply	other threads:[~2015-04-13 13:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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     ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=552BC51E.5020203@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=libvir-list@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=v.tolstov@selfip.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).