HostOnNet Blog

OpenNebula Cannot check QEMU binary /usr/bin/qemu-system-x86_64

Looking for Linux Server Admin or WordPress Expert? We can help.

When creating Virtual Machine on OpenNebula KVM Node running CentOS 7, i get error

Thu Sep 21 22:38:03 2017 [Z0][VM][I]: New state is ACTIVE
Thu Sep 21 22:38:03 2017 [Z0][VM][I]: New LCM state is PROLOG
Thu Sep 21 22:38:08 2017 [Z0][VM][I]: New LCM state is BOOT
Thu Sep 21 22:38:08 2017 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/1/deployment.0
Thu Sep 21 22:38:10 2017 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Thu Sep 21 22:38:10 2017 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Thu Sep 21 22:38:11 2017 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/1/deployment.0' '198.204.228.178' 1 198.204.228.178
Thu Sep 21 22:38:11 2017 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/1/deployment.0
Thu Sep 21 22:38:11 2017 [Z0][VMM][I]: error: Cannot check QEMU binary /usr/bin/qemu-system-x86_64: No such file or directory
Thu Sep 21 22:38:11 2017 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/1/deployment.0
Thu Sep 21 22:38:11 2017 [Z0][VMM][I]: ExitCode: 255
Thu Sep 21 22:38:11 2017 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Thu Sep 21 22:38:11 2017 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/1/deployment.0
Thu Sep 21 22:38:11 2017 [Z0][VM][I]: New LCM state is BOOT_FAILURE

This is because CentOS 7 use different binary file name. To solve the problem, create a symlink to actual binary with command

ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64

Posted in Cloud

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.