qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

Bill Davidsen davidsen at tmr.com
Fri Jul 2 12:55:05 UTC 2010


Gilboa Davara wrote:
> On Mon, 2010-06-28 at 16:04 -0400, Jim wrote:
>> On 06/28/2010 03:11 PM, Gilboa Davara wrote:
>>> On Mon, 2010-06-28 at 13:59 -0400, Jim wrote:
>>>    
>>>> FC13
>>>>
>>>>
>>>> Selinux is in "permissive" mode
>>>>
>>>> Why would qemu-kvm try to  "Write" to a cdrom, instead of "Read" ?
>>>>      
>>> Are you manually using qemu-kvm or via virt-manager?
>>> Assuming the former, what's you qemu-kvm command line?
>>>
>>> - Gilboa
>>>
>>>    
>> I was doing a :    # virt-install --connect qemu:///system -n vm10 -r 
>> 512 --vcpus=2 -f /vm/vm10.qcow2 -s 12 -c /dev/cdrom --vnc 
>> --noautoconsole --os-type windows --os-variant winxp64 --accelerate 
>> --network=bridge:br0 --hvm
>>
>> when I got the error.
>>
>>
>>
>> # qemu-kvm
>>
>> gpxe (http://etherboot.org) 00:03.0 C900 PC12.10 PNP BBS PMM 07 E0C10 C900
>>
>> Booting from CDROM...
>> Boot Failed: Could not read from CDROM (code 0003)
>> No bootable device.
>>
>>
>> I guess I'm going to have to make a bootable CD with the Windows files 
>> on it.
>>
>> How does one do that ??
> 
> I'm not I sure understand what you're trying to do.
> Running qemu-kvm without the required parameters (image files, cdrom,
> network devices) will not work.
> Sadly enough, I cannot really help you with virt-manager (you might want
> to ask the good people at fedora-virt). Never the less, calling qemu-kvm
> directly requires a long list of parameters...
> 
Not so much, after using qemu-img to create a vdisk, something like:
   qemu-kvm -m 500 -hda MyXP.img -cdrom XPimageCD.iso

Depending on your install your may want "-vga std" but the initial boot will 
notice no bootable image on the vdisk, you probably will be fine without 
specifying sound hardware, etc. And installing on console rather than vnc saves 
hassles there. Older qemu may want -std-vga and stuff like that, but it really 
doesn't take much. If the vdisk has not bootable partitions the -boot is optional.

-- 
Bill Davidsen <davidsen at tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot



More information about the users mailing list