Re: KVM-74: HELP PLEASE - cannot boot from cdrom for recovery

Gerry Reno
2009-03-31T18:22:08Z

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 <greno@verizon.net>
>>>>> 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:
>> <disk type='block' device='cdrom'>
>> 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