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:
Error starting domain: internal error: child reported (status=125): unable to open /dev/sr0: Read-only file system
Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 66, in newfn ret = fn(self, *args, **kwargs) File "/usr/share/virt-manager/virtManager/object/domain.py", line 1279, in startup self._backend.create() File "/usr/lib64/python3.7/site-packages/libvirt.py", line 1136, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirt.libvirtError: internal error: child reported (status=125): unable to open /dev/sr0: Read-only file system
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?
On 2020-07-09 20: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:
Error starting domain: internal error: child reported (status=125): unable to open /dev/sr0: Read-only file system
Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 66, in newfn ret = fn(self, *args, **kwargs) File "/usr/share/virt-manager/virtManager/object/domain.py", line 1279, in startup self._backend.create() File "/usr/lib64/python3.7/site-packages/libvirt.py", line 1136, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirt.libvirtError: internal error: child reported (status=125): unable to open /dev/sr0: Read-only file system
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?
Hi Konstantin,
Not what you asked, BUT WHEN DOES THAT STOP ME!
W10 installs a lot easier/faster from the ISO.
Go to
https://www.microsoft.com/en-us/software-download/windows10ISO
and download the ISO. This insures you get the latest build. M$'s updates are a NIGHTMARE.
Then inside virt-manager, mount the iso as a SATA CD-ROM. Then go to boot and set it at the top
Let me know if you want my W10 de-fang procedure
-T
Definitely not what I asked, I already have w10 installed just fine from an ISO -- but now trying to install other software from a DVD (wait, what year is this??) But seriously, I want to forward the optical drive to windows, I should be able to do that..
On 2020-07-09 23:21, Konstantin Svist wrote:
Definitely not what I asked, I already have w10 installed just fine from an ISO -- but now trying to install other software from a DVD (wait, what year is this??) But seriously, I want to forward the optical drive to windows, I should be able to do that..
Hi Konstantin,
So, again not what you asked, but that does not stop me! What me goes off on a tangent???? NEVER! Well, maybe.
If you or the guys don't figure this out, here is a work around.
Make an iso of your DVD/CD and mount it as a CD-ROM in virt-mamager:
# dd if=/dev/sr0 of=[path]/[name].iso
Speaking of software from 1865, I still use the abandoned Lotus Approach and Lotus WordPro. Both run better under Wine than does Libre Office, especially envelope printing and tables.
So, I made an ISO out of my CD and have it copied several places for safe keeping. If I need it, I can mount the ISO as a CD-ROM in virt-manager.
HTH, -T
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.
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..
On 2020-07-10 15:17, Konstantin Svist wrote:
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
I'm on f32, but that shouldn't make a difference.
The alternative instead of using the drive directly would be to use dd on the host system to copy the cd to an file would would then be in iso format. I did this with a DVD that I'd used as backup.
[egreshko@meimei ~]$ file cdrom.iso cdrom.iso: ISO 9660 CD-ROM filesystem data 'K3b data project'
https://imgur.com/gallery/839HJ2G
Which actually works a bit better than using drive.
On 7/10/20 03:27, Ed Greshko wrote:
On 2020-07-10 15:17, Konstantin Svist wrote:
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
I'm on f32, but that shouldn't make a difference.
The alternative instead of using the drive directly would be to use dd on the host system to copy the cd to an file would would then be in iso format. I did this with a DVD that I'd used as backup.
[egreshko@meimei ~]$ file cdrom.iso cdrom.iso: ISO 9660 CD-ROM filesystem data 'K3b data project'
https://imgur.com/gallery/839HJ2G
Which actually works a bit better than using drive.
-- The key to getting good answers is to ask good questions.
Thanks, I think I'll have to do this... -_-
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.
Hm, also I don't see "Source path"...
On 7/10/20 00:26, Samuel Sieb wrote:
On 7/10/20 12:18 AM, Konstantin Svist wrote:
Hm, also I don't see "Source path"...
After you've added it, click on the SATA CDROM entry in the list. Then you will see the source path in the details on the right. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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
Ah yeah, got it
My Source Path shows the media title correctly.
I also tried to eject the DVD before turning on the VM - that results in a similar error, "Error starting domain: internal error: child reported (status=125): unable to open /dev/sr0: No medium found"
On 2020-07-11 09:32, Konstantin Svist wrote:
On 7/10/20 00:26, Samuel Sieb wrote:
On 7/10/20 12:18 AM, Konstantin Svist wrote:
Hm, also I don't see "Source path"...
After you've added it, click on the SATA CDROM entry in the list. Then you will see the source path in the details on the right. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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
Ah yeah, got it
My Source Path shows the media title correctly.
I also tried to eject the DVD before turning on the VM - that results in a similar error, "Error starting domain: internal error: child reported (status=125): unable to open /dev/sr0: No medium found"
While things worked for me with the guest using the host's DVD drive I should mention a "funny".
I use KDE as my desktop and apparently there was a "competition" between KDE on the host and Win10 on the guest. If I ejected the DVD from either one, the tray wouldn't stay opened. I had to be very quick to insert or remove the DVD from the tray. I'm sure I could have figured it out if I wanted to....but since I would normally use an iso instead of the actual drive itself I didn't spend any time on it.
On 2020-07-10 15:18, Konstantin Svist wrote:
Hm, also I don't see "Source path"...
As Samuel said...
https://imgur.com/gallery/Y8QJ4qt
On 7/9/20 8:01 PM, 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 just tried it and it worked with no problems. Add Hardware -> Storage -> Select Custom -> enter "/dev/sr0" -> Device Type cdrom -> Bus SATA.