public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Freddie Cash <fjwcash@gmail.com>
To: kvm@vger.kernel.org
Subject: Issues booting off virtual SCSI drives in kvm-69
Date: Fri, 30 May 2008 14:10:13 -0700	[thread overview]
Message-ID: <200805301410.13649.fjwcash@gmail.com> (raw)

Am I missing something simple, or can you only boot off virtual IDE 
drives?

I'm running kvm-69 (from the sid repos) on 64-bit Debian Lenny, using the 
kvm modules that are part of the kernel 2.6.25 package on Debian.

I can create virtual SCSI drives, boot off a virtual CD-ROM, and install 
Debian onto the vSCSI drives.  However, I cannot boot off the virtual 
SCSI drives following the install.

The VM is being run as:
/usr/bin/kvm -name webmail -daemonize -localtime -usb -usbdevice 
tablet -smp 1 -m 2048 -vnc :05 -pidfile /var/run/kvm/webmail.pid -net 
nic,macaddr=00:16:3e:00:00:05,model=rtl8139 -net tap,ifname=tap05 -boot 
c -drive 
index=1,media=disk,if=scsi,file=/dev/mapper/vol0-webmail--storage -drive 
index=0,media=disk,if=scsi,file=/dev/mapper/vol0-webmail

And the error message on the virtual console is:
Booting from Hard Disk...
Boot from Hard Disk failed: could not read the boot disk
FATAL: No bootable device

The virtual SCSI drives are configured as:
  sda1  100 MB  /boot (bootable flag set)
  sda2    5 GB  /
  sda5   50 GB  /usr
  sda6   50 GB  /var
  sdb1  100 GB  /home

GRUB is installed into the MBR of the first SCSI drive (sda).

I've tried reversing the two -drive options on the commandline, as well as 
reversing the index numbers on the commandline.

"info block" in the QEmu monitor shows the drives as being attached, and 
in the correct order.

What, if anything, am I missing?  Or is this just not possible?

-- 
Freddie Cash
fjwcash@gmail.com

             reply	other threads:[~2008-05-30 21:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-30 21:10 Freddie Cash [this message]
2008-05-30 21:50 ` Issues booting off virtual SCSI drives in kvm-69 Javier Guerra
2008-05-30 22:15   ` Freddie Cash
2008-05-31  1:21   ` [PATCH] qemu: document "boot" option for "drive" flag Carlo Marcelo Arenas Belon
2008-06-04 10:08     ` Avi Kivity

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=200805301410.13649.fjwcash@gmail.com \
    --to=fjwcash@gmail.com \
    --cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox