# VM State Failure "error: End of file while reading data: Input/output error"

**URL:** <https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972>\
**Category:** Installation & Configuration\
**Created:** [November 9, 2020, 10:37am UTC](https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972 "2020-11-09T10:37:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Citrus](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/citrus/32/6748_2.png) [@Citrus](https://forum.opennebula.io/u/Citrus)\
**Post date:** [November 9, 2020, 10:37am UTC](https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972/1 "2020-11-09T10:37:48Z")

</div>

Hi Everyone,

I got below error when I tried to deploy a VM:

Mon Nov 9 10:52:15 2020 [Z0][DiM][D]: Deploying VM 9  
Mon Nov 9 10:52:15 2020 [Z0][ReM][D]: Req:1136 UID:0 one.vm.deploy result SUCCESS, 9  
Mon Nov 9 10:52:16 2020 [Z0][ReM][D]: Req:9744 UID:0 IP:127.0.0.1 one.vm.info invoked , 9, false  
Mon Nov 9 10:52:16 2020 [Z0][ReM][D]: Req:9744 UID:0 one.vm.info result SUCCESS, “90…”  
Mon Nov 9 10:52:16 2020 [Z0][TM][D]: Message received: TRANSFER SUCCESS 9 -  
Mon Nov 9 10:52:16 2020 [Z0][VMM][D]: Message received: LOG I 9 Successfully execute transfer manager driver operation: tm\_context.  
Mon Nov 9 10:52:16 2020 [Z0][VMM][D]: Message received: LOG I 9 ExitCode: 0  
Mon Nov 9 10:52:16 2020 [Z0][VMM][D]: Message received: LOG I 9 Successfully execute network driver operation: pre.  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG I 9 Command execution fail: cat \<\< EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/9/deployment.0’ ‘dev’ 9 dev  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG I 9 error: Disconnected from qemu:///system due to end of file  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG I 9 error: Failed to create domain from /var/lib/one//datastores/0/9/deployment.0  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG I 9 error: End of file while reading data: Input/output error  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG E 9 Could not create domain from /var/lib/one//datastores/0/9/deployment.0  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG I 9 ExitCode: 255  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG I 9 ExitCode: 0  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG I 9 Successfully execute network driver operation: clean.  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: LOG I 9 Failed to execute virtualization driver operation: deploy.  
Mon Nov 9 10:52:17 2020 [Z0][VMM][D]: Message received: DEPLOY FAILURE 9 Could not create domain from /var/lib/one//datastores/0/9/deployment.0

Please let me know what should I do. Thanks

---

<div class="post-metadata">

**Author:** ![VSpecII](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vspecii/32/6818_2.png) [@VSpecII](https://forum.opennebula.io/u/VSpecII)\
**Post date:** [January 8, 2021, 8:05am UTC](https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972/2 "2021-01-08T08:05:32Z")

</div>

can confirm, same problem on my installation. I’ll update this post as I make progress but for anyone who has successfully solved it, any tips?

---

<div class="post-metadata">

**Author:** ![Ain](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Ain](https://forum.opennebula.io/u/Ain)\
**Post date:** [January 12, 2021, 8:11am UTC](https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972/3 "2021-01-12T08:11:02Z")

</div>

I also have the same exact problem, tried reinstalling my entire distro to start new and still have the same issue.

> Blockquote  
> Mon Jan 11 21:25:27 2021 [Z0][VM][I]: New LCM state is LCM\_INIT  
> Mon Jan 11 21:25:27 2021 [Z0][VM][I]: New state is PENDING  
> Mon Jan 11 21:25:45 2021 [Z0][VM][I]: New state is ACTIVE  
> Mon Jan 11 21:25:46 2021 [Z0][VM][I]: New LCM state is PROLOG  
> Mon Jan 11 21:25:47 2021 [Z0][VM][I]: New LCM state is BOOT  
> Mon Jan 11 21:25:47 2021 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/0/deployment.2  
> Mon Jan 11 21:25:47 2021 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_context.  
> Mon Jan 11 21:25:47 2021 [Z0][VMM][I]: Successfully execute network driver operation: pre.  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][I]: Command execution fail: cat \<\< EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/0/deployment.2’ ‘192.168.1.159’ 0 192.168.1.159  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][I]: error: Disconnected from qemu:///system due to end of file  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/0/deployment.2  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][I]: error: End of file while reading data: Input/output error  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/0/deployment.2  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][I]: ExitCode: 255  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][I]: Successfully execute network driver operation: clean.  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.  
> Mon Jan 11 21:25:48 2021 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/0/deployment.2  
> Mon Jan 11 21:25:48 2021 [Z0][VM][I]: New LCM state is BOOT\_FAILURE

I have tried quite a few fixes and got nothing. The only thing I do not have set up as I am still working on it is my bridge for the VM. Other than that I followed the instructions on the Open Nebula website.

These are the things I have tried as of now to fix my problem.

- Add security\_driver=“none” to /etc/libvirt/qemu.conf
- sudo losetup -f --show /var/lib/one/datastores/0/26/disk.0

> tail /var/log/one/oned.log  
> Tue Jan 12 12:40:29 2021 [Z0][ReM][D]: Req:5776 UID:0 one.vmpool.info result SUCCESS, “\<VM\_POOL\>0\</…”  
> Tue Jan 12 12:40:29 2021 [Z0][ReM][D]: Req:8048 UID:0 IP:127.0.0.1 one.user.info invoked , 0, false  
> Tue Jan 12 12:40:29 2021 [Z0][ReM][D]: Req:8048 UID:0 one.user.info result SUCCESS, “0\<GID…”  
> Tue Jan 12 12:40:30 2021 [Z0][ReM][D]: Req:5312 UID:0 IP:127.0.0.1 one.vmpool.info invoked , -2, 0, -200, -1  
> Tue Jan 12 12:40:30 2021 [Z0][ReM][D]: Req:5312 UID:0 one.vmpool.info result SUCCESS, “\<VM\_POOL\>0\</…”  
> Tue Jan 12 12:40:30 2021 [Z0][ReM][D]: Req:9360 UID:0 IP:127.0.0.1 one.user.info invoked , 0, false  
> Tue Jan 12 12:40:30 2021 [Z0][ReM][D]: Req:9360 UID:0 one.user.info result SUCCESS, “0\<GID…”

> tail /var/log/one/sched.log  
> Tue Jan 12 12:40:26 2021 [Z0][VM][D]: Found 1 pending/rescheduling VMs.  
> Tue Jan 12 12:40:26 2021 [Z0][HOST][D]: Discovered 1 enabled hosts.  
> Tue Jan 12 12:40:26 2021 [Z0][VM][D]: VMs in VMGroups:  
> Tue Jan 12 12:40:26 2021 [Z0][VNET][D]: Discovered 0 vnets.  
> Tue Jan 12 12:40:26 2021 [Z0][SCHED][D]: Dispatching VMs to hosts:  
> VMID Priority Host System DS  
> --------------------------------------------------------------  
> 0 0 1 0

> tail /var/log/one/0.log  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][I]: Command execution fail: cat \<\< EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/0/deployment.4’ ‘192.168.1.159’ 0 192.168.1.159  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][I]: error: Disconnected from qemu:///system due to end of file  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/0/deployment.4  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][I]: error: End of file while reading data: Input/output error  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/0/deployment.4  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][I]: ExitCode: 255  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][I]: Successfully execute network driver operation: clean.  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.  
> Tue Jan 12 12:40:29 2021 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/0/deployment.4  
> Tue Jan 12 12:40:29 2021 [Z0][VM][I]: New LCM state is BOOT\_FAILURE

_this is an updated log, I don’t know if it should be incrementing the deployment.# but it is_

_Disconnected from qemu:///system due to end of file_

Based on the other errors I am seeing posted on this site I believe that this is the issue that needs troubleshooting. I have looked into the issue on other sites but most of the issues referencing this were problems with libvirtd versions and QEMU network issues. I don’t believe that I should have those issues though as I have the patched versions of libvirtd and when following the Open Nebula instructions I saw no need to mess with QEMU at all. Any one got any potential fixes for this or any idea at all?

---

<div class="post-metadata">

**Author:** ![Ain](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Ain](https://forum.opennebula.io/u/Ain)\
**Post date:** [January 13, 2021, 7:33am UTC](https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972/4 "2021-01-13T07:33:40Z")

</div>

I can’t be sure if I have fixed the issue but I realized that at some point Virtualization was turned off in my bios, I can now deploy and access VM’s.

---

<div class="post-metadata">

**Author:** ![Aaron\_Loor](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/aaron_loor/32/6787_2.png) [@Aaron\_Loor](https://forum.opennebula.io/u/Aaron_Loor)\
**Post date:** [January 25, 2021, 2:32am UTC](https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972/5 "2021-01-25T02:32:23Z")

</div>

Friend I am having the same problem, you found a solution, I am stopped in it and I can not move forward, I also do not find much information here in this community about the problem  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/f/fa93b1f322360d2734d699f634c1a5a8cd2abc02.jpeg)

---

<div class="post-metadata">

**Author:** ![Aaron\_Loor](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/aaron_loor/32/6787_2.png) [@Aaron\_Loor](https://forum.opennebula.io/u/Aaron_Loor)\
**Post date:** [January 25, 2021, 3:03pm UTC](https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972/6 "2021-01-25T15:03:24Z")

</div>

Hello, Did you try disabling virtualization in the BIOS?

---

<div class="post-metadata">

**Author:** ![Aaron\_Loor](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/aaron_loor/32/6787_2.png) [@Aaron\_Loor](https://forum.opennebula.io/u/Aaron_Loor)\
**Post date:** [January 29, 2021, 1:15am UTC](https://forum.opennebula.io/t/vm-state-failure-error-end-of-file-while-reading-data-input-output-error/8972/7 "2021-01-29T01:15:03Z")

</div>

I tell you my experience, I mounted opennebula in Proxmox and it threw me this same error, because I solved it by enabling nested virtualization, hardware assisted virtualization. This must be from the same server BIOS or as in my case in the debian console for proxmox.  
Keep in mind that you must check if you have nested virtualization enabled both in the frontend and in the nodes.  
I am using ubuntu both for the frontend and the node to check I used:  
lsmod | grep kvm  
/ proc / cpuinfo  
kvm-ok  
¨  
I hope I have helped with something.
