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

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

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?

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?

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.

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

Hello, Did you try disabling virtualization in the BIOS?

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.