You are not logged in.

#1 2024-12-07 07:25:56

EdgeRunner
Member
Registered: 2024-07-08
Posts: 2

Virt manager error: End of file while reading data: Input/output error

I was trying to create a win11 vm and got this error:

Unable to complete install: 'End of file while reading data: Input/output error'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
    installer.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
    domain = self._create_guest(
             ^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
    domain = self.conn.createXML(initial_xml or final_xml, 0)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/libvirt.py", line 4545, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: End of file while reading data: Input/output error

I followed this gist to install qemu/kvm:
https://gist.github.com/tatumroaquin/c6 … 31db61ab22

Offline

#2 2024-12-07 20:39:37

archzilla-xyz
Member
Registered: 2024-12-07
Posts: 1

Re: Virt manager error: End of file while reading data: Input/output error

Just found this post while searching the web frantically for answers..
I've been pondering this problem for three days straight, reverting to Timeshift-backups and doing installations/setups over and over in hopes of finding a solution.

Edit:
I believe the "End of file while reading data" is related to the TPM, as I've just got my VM to launch (and Windows 11 setup to start) when I removed the TPM-device from my VM setup.
Although it seems a usable VM could be installed this way, I'd really like to find a solution to having a TPM-device included.

Last edited by archzilla-xyz (2024-12-07 21:22:11)

Offline

#3 2024-12-08 05:03:43

gl2lmp3ro@mozmail.com
Member
Registered: 2024-12-08
Posts: 2

Re: Virt manager error: End of file while reading data: Input/output error

I have the same issue following this guide : https://sysguides.com/install-a-windows … ine-on-kvm
I had it working a few months ago using the same guide.  I am wondering if it is related to the latest kernel update??

Edit: I am now able to boot by removing the TPM device. Thank you. However that is as far as I get. I tried the original iso file that I had working "Win11_23H2_English_x64v2.iso" and it has the same issue.
FIX for some: I set TPM to passthrough and it is working however i realize this won't work for everyone because I don't believe it will allow more then 1 instance.
After I completed the install and removed SATA1 and SATA2 drives(iso and virtio drivers) I switched TPM to emulated v2.0 and it boots up.

Last edited by gl2lmp3ro@mozmail.com (2024-12-08 06:30:19)

Offline

#4 2024-12-08 13:40:38

EdgeRunner
Member
Registered: 2024-07-08
Posts: 2

Re: Virt manager error: End of file while reading data: Input/output error

Thanks guys, The work around is working fine but i don't think it's the final solution.it's probably related to libvirtd as someone suggested in this issue https://github.com/virt-manager/virt-ma … 2722267918.

Offline

#5 2024-12-08 16:10:37

gl2lmp3ro@mozmail.com
Member
Registered: 2024-12-08
Posts: 2

Re: Virt manager error: End of file while reading data: Input/output error

As a side benefit, setting the TPM to passthrough during the installation allowed windows to get my license information. My laptop was originally a windows machine.

Offline

#6 2024-12-12 03:51:50

NormanNewguy
Member
Registered: 2024-12-12
Posts: 1

Re: Virt manager error: End of file while reading data: Input/output error

This saved me.  For some reason only known to the Gods, I decided to do a fresh "from scratch" install of Arch (after I had it running just the way I wanted) and now my Windows VM won't install.  I would have pulled my hair out if I had any.  How in the world you figured out the TPM thing, I'll never know.  But thank you for posting this.

Edit:
After the first reboot, I was getting TPM errors, but they cleared up after switching back to emulated TPM.  Everything works perfectly, and as mentioned, it used my laptop's activation.

Last edited by NormanNewguy (2024-12-12 15:35:03)

Offline

Board footer

Powered by FluxBB