From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerry Reno Subject: Re: KVM-74: HELP PLEASE - cannot boot from cdrom for recovery Date: Tue, 31 Mar 2009 14:22:06 -0400 Message-ID: <49D25F4E.9030700@verizon.net> References: <49D22FAF.5060808@verizon.net> <49D23022.5060101@wpkg.org> <49D231D0.3040805@verizon.net> <49D23255.8090202@wpkg.org> <49D2345D.1060101@verizon.net> <49D23BBF.5020804@messageone.com> <49D23D03.8090607@verizon.net> <49D24C56.6040502@verizon.net> <90eb1dc70903311005l32c5d631j21dfdbd1f8339c4f@mail.gmail.com> <49D25151.90207@verizon.net> <49D25358.2030805@verizon.net> <49D25AD9.7020304@verizon.net> <49D25B51.1010005@wpkg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from vms173003pub.verizon.net ([206.46.173.3]:25755 "EHLO vms173003pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753369AbZCaSWI (ORCPT ); Tue, 31 Mar 2009 14:22:08 -0400 Received: from [192.168.2.100] ([72.91.189.24]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KHD00EYMV0UA2SX@vms173003.mailsrvcs.net> for kvm@vger.kernel.org; Tue, 31 Mar 2009 13:22:06 -0500 (CDT) In-reply-to: <49D25B51.1010005@wpkg.org> Sender: kvm-owner@vger.kernel.org List-ID: Tomasz Chmielewski wrote: > Gerry Reno schrieb: >> Gerry Reno wrote: >>> Gerry Reno wrote: >>>> Javier Guerra wrote: >>>>> On Tue, Mar 31, 2009 at 12:01 PM, Gerry Reno >>>>> wrote: >>>>> >>>>>> Charles Duffy wrote: >>>>>> I put the xml stanza in the file and undefine/define domain but >>>>>> it gives an >>>>>> error about cannot read image file. >>>>>> >>>>>> And I check this path and I can read all the files from the >>>>>> command line on >>>>>> the DVD just fine. >>>>>> What could be the problem? >>>>>> >>>>> >>>>> don't put a mount dir, either use a ISO image, or the cdrom device >>>>> file >>>>> >>>>> >>>>> >>>> Ok, a little closer now. I put this in xml file and redefine >>>> domain and it now defines: >>>> >>>> >>>> This was device that mount showed as mounting the DVD. >>>> >>>> But when the domain boots and I select 3. CDROM from screen, it >>>> still shows the original boot error: >>>> Boot Failure Code: 0003 >>>> Boot from CDROM failed: cannot read the boot disk. >>>> FATAL: No bootable device. >>>> What should I change? >>>> >>> Here is what command looks like now using 'ps': >>> /usr/bin/qemu-kvm -S -M pc -m 512 -smp 2 -name MX_3 -monitor pty >>> -boot c -drive >>> file=/var/vm/vm1/qemu/images/MX_3/MX_3.img,if=ide,index=0,boot=on >>> -drive file=/dev/sr0,if=ide,media=cdrom,index=3 -net >>> nic,macaddr=00:0c:29:e3:bc:ee,vlan=0 -net >>> tap,fd=17,script=,vlan=0,ifname=vnet1 -serial none -parallel none >>> -usb -vnc 127.0.0.1:1 -k en-us >>> >> And I try other disk type: >> >> But that produces the same error. >> >> What else can I add in order to boot from cdrom? > > What does: > > md5sum /dev/sr0 > > output? > > DVD is Fedora 10 DVD (i386) Four cases: # desktop user; DVD unmounted $ md5sum /dev/sr0 md5sum: /dev/sr0: Input/output error # desktop user; DVD mounted $ md5sum /dev/sr0 ff311b322c894aabc4361c4e270f5a3f /dev/sr0 # root user; DVD unmounted $ md5sum /dev/sr0 md5sum: /dev/sr0: Input/output error # root user; DVD mounted $ md5sum /dev/sr0 md5sum: /dev/sr0: Input/output error # 'ps' shows process is running as root: root 7311 2927 99 13:08 ? 00:20:01 /usr/bin/qemu-kvm -S -M pc -m 512 -smp 2 -name MX_3 -monitor pty -boot c -drive file=/var/vm/vm1/qemu/images/MX_3/MX_3.img,if=ide,index=0,boot=on -drive file=/dev/sr0,if=ide,media=cdrom,index=3 -net nic,macaddr=00:0c:29:e3:bc:ee,vlan=0 -net tap,fd=17,script=,vlan=0,ifname=vnet1 -serial none -parallel none -usb -vnc 127.0.0.1:1 -k en-us Regards, Gerry