On 7/10/20 00:02, Ed Greshko wrote:
> On 2020-07-10 11:01, Konstantin Svist wrote:
>> I've set up a win10 virtual machine in VMM QEMU/KVM and trying to pass
>> through a DVD.
>>
>> The virtual disk setting in the VM suggests /dev/sr0, but whenever I
>> select that, the machine refuses to boot with the following error:
>>
>>
>> I've tried changing the disk bus (SATA/SCSI), and flipping "Shareable"
>> toggle, neither one helps.
>>
>> Storage format is set to "raw" (text), not sure what else it should be..
>>
>>
>> Any help?
>>
> I just added a DVD drive to an existing Win10 VM using virt-manager.
>
> I used "Add Hardware"--->Storage
>
> I checked the box "Select or create custom storage" and entered /dev/sr0.
>
> I used Device type CDROM Device and Bus type SATA.
>
> Even though "Source path" showed No media detected the CDROM was available in 
> the VM when booted.
>
> FWIW, this is the xml created for the VM.
>
> <disk type="block" device="cdrom">
>   <driver name="qemu" type="raw"/>
>   <source dev="/dev/sr0" index="1"/>
>   <backingStore/>
>   <target dev="sdb" bus="sata"/>
>   <readonly/>
>   <alias name="sata0-0-1"/>
>   <address type="drive" controller="0" bus="0" target="0" unit="1"/>
> </disk>
>
> Screen shots available upon request.


Already tried it, but just now tried the same thing, with same error
when trying to start the machine.

"Error starting domain: internal error: child reported (status=125):
unable to open /dev/sr0: Read-only file system"


My xml looks a bit different, though

<disk type="block" device="cdrom">
  <driver name="qemu" type="raw"/>
  <source dev="/dev/sr0"/>
  <target dev="sdd" bus="sata"/>
  <readonly/>
  <address type="drive" controller="0" bus="0" target="0" unit="3"/>
</disk>


libvirt* 5.6.0-7.fc31

qemu* 2:4.1.1-1.fc31


sigh..
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to