From mboxrd@z Thu Jan 1 00:00:00 1970 From: Freddie Cash Subject: Issues booting off virtual SCSI drives in kvm-69 Date: Fri, 30 May 2008 14:10:13 -0700 Message-ID: <200805301410.13649.fjwcash@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from smtp.sd73.bc.ca ([142.24.13.140]:56554 "EHLO smtp.sd73.bc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753360AbYE3Vlc (ORCPT ); Fri, 30 May 2008 17:41:32 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id 529211A000B2C for ; Fri, 30 May 2008 14:10:15 -0700 (PDT) Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Eg-XKA28Fmel for ; Fri, 30 May 2008 14:10:14 -0700 (PDT) Received: from coal (unknown [192.168.0.10]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 269251A000B18 for ; Fri, 30 May 2008 14:10:14 -0700 (PDT) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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