All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philipp Hahn <hahn@univention.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] RFH: boot from virtio cdrom?
Date: Thu, 6 Jun 2013 17:10:42 +0200	[thread overview]
Message-ID: <201306061710.42928.hahn@univention.de> (raw)

Hello,

I'm using libvirt to manage my VMs and configured one VM to boot from a CDROM connected via virtio.
This does neither work with QEMU-1.1.2 nor with QEMU-1.5; neither with SeaBIOS is 1.7.0 nor 1.7.2.

/root/qemu-1.5.0+dfsg/qemu-build/x86_64-softmmu/qemu-system-x86_64 \
 -M pc-1.1 \
 -enable-kvm \
 -m 1024 \
 -smp 1,sockets=1,cores=1,threads=1 \
 -name ucs31-64-xxx \
 -uuid 1dae3236-23e8-c87f-ec7b-9f82060fcc72 \
 -nodefconfig -nodefaults \
 -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/ucs31-64-xxx.monitor,server,nowait \
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc \
 -no-shutdown \
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
 -drive file=/var/lib/libvirt/images/ucs31-64-xxx-0.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=unsafe \
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 \
 -drive file=/root/ucs-3.2-0/./virtualization/univention-kvm-virtio/virtio-win-0.1-30.iso,if=none,media=cdrom,id=drive-virtio-disk1,readonly=on,format=raw \
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk1,id=virtio-disk1,bootindex=1 \
 -device usb-tablet,id=input0 \
 -vga cirrus \
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 \
 -sdl

Is this supposed to work or must a bootable CDROM use the ide bus?
I ask because if this is not supposed to work, I need to modify our admin to to prevent CDROMs from being added through virtio by default; later on when Linux is installed, the CDROM works fine through virtio.

Sincerely
Philipp
-- 
Philipp Hahn           Open Source Software Engineer      hahn@univention.de
Univention GmbH        be open.                       fon: +49 421 22 232- 0
Mary-Somerville-Str.1  D-28359 Bremen                 fax: +49 421 22 232-99
                                                   http://www.univention.de/

             reply	other threads:[~2013-06-07  6:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-06 15:10 Philipp Hahn [this message]
2013-06-07  6:12 ` [Qemu-devel] RFH: boot from virtio cdrom? Gerd Hoffmann
2013-06-07  7:02   ` Laszlo Ersek
2013-06-09  8:10     ` Paolo Bonzini

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=201306061710.42928.hahn@univention.de \
    --to=hahn@univention.de \
    --cc=qemu-devel@nongnu.org \
    /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 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.