FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 06-28-2010, 07:11 PM
Gilboa Davara
 
Default qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

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

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 06-28-2010, 08:04 PM
Jim
 
Default qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

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 ??
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 06-28-2010, 08:38 PM
Gilboa Davara
 
Default qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

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...

- Gilboa


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 06-28-2010, 09:01 PM
Jim
 
Default qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

On 06/28/2010 04:38 PM, 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...
>
> - Gilboa
>
>
>
Thanks for your help.

That is the same answer I get from Fedora virt-tools , it is not a
virt-tools problem so go to
fedora-list for help.

Boy am I having fun !!!
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 06-28-2010, 10:33 PM
suvayu ali
 
Default qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

On 28 June 2010 14:01, Jim <mickeyboa@sbcglobal.net> wrote:
> On 06/28/2010 04:38 PM, 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" ?
>>>>>
>
> That is the same answer I get from Fedora virt-tools , it is not a
> virt-tools problem so go to
> fedora-list for help.
>
> Boy am I having fun !!!

No need to be all "". Take a look at this, might be the same issue.
http://lists.fedoraproject.org/pipermail/users/2010-June/375288.html

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 06-28-2010, 10:51 PM
Phil Meyer
 
Default qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

On 06/28/2010 11:59 AM, Jim wrote:
> FC13
>
>
> Selinux is in "permissive" mode
>
> Why would qemu-kvm try to "Write" to a cdrom, instead of "Read" ?
>
>


We use virt-manager here a lot now.

You do not need to ask for a local connection, that is assumed.

Here is an example:


virt-install --noreboot
--hvm
--virt-type=kvm
--pxe --name=008001-foo.com
--ram=1024
--vcpus=1
--arch=x86_64
--uuid=4b5e0cc6-7366-4ca4-a581-10ea0c9f86f0
--os-type=linux
--os-variant=rhel6
--disk path=/dev/mapper/008001
--network=bridge=br1,model=virtio,mac=RANDOM
--vnc
--vnclisten=0.0.0.0
--noautoconsole
--wait=-1

With --noreboot and --wait, our script that calls virt-install can check
exit status, virsh edit (via EDITOR=ed) xml files and then start them up.

If you look at the python scripts, the os-type, os-variant, and arch set
up a number of defaults. You should use them.

We have centos-5.5, f13, ubuntu-10, windows-2k3, and windows-2k8 working
well. Our group does not intend to test windows-xp again, and its been
a year since we last did, so no help there.

As for -c cdrom, that looks like a mess. We always install VMs over PXE
now, so I cannot confirm the selinux issue, sorry.

Good Luck!


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 07-02-2010, 12:55 PM
Bill Davidsen
 
Default qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

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@tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 07-02-2010, 12:55 PM
Bill Davidsen
 
Default qemu-kvm Trying to "Write" to a cdrom/sr0 ?? , Why?

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@tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 12:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org