Bug #5385

Cannot check QEMU binary

Added by Yujin Boby over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:09/22/2017
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:worksforme Pull request:
Affected Versions:OpenNebula 5.4

Description

I am using CentOS 7 on KVM Host. When i try to create VM, 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

Here is host details

[root@s114572 1]# yum whatprovides "/usr/bin/qemu-system-x86_64" 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.gbeservers.com
 * extras: mirrors.sonic.net
 * updates: mirror.millry.co
No matches found
[root@s114572 1]# cat /etc/*release
CentOS Linux release 7.4.1708 (Core) 
NAME="CentOS Linux" 
VERSION="7 (Core)" 
ID="centos" 
ID_LIKE="rhel fedora" 
VERSION_ID="7" 
PRETTY_NAME="CentOS Linux 7 (Core)" 
ANSI_COLOR="0;31" 
CPE_NAME="cpe:/o:centos:centos:7" 
HOME_URL="https://www.centos.org/" 
BUG_REPORT_URL="https://bugs.centos.org/" 

CENTOS_MANTISBT_PROJECT="CentOS-7" 
CENTOS_MANTISBT_PROJECT_VERSION="7" 
REDHAT_SUPPORT_PRODUCT="centos" 
REDHAT_SUPPORT_PRODUCT_VERSION="7" 

CentOS Linux release 7.4.1708 (Core) 
CentOS Linux release 7.4.1708 (Core) 
[root@s114572 1]# 

How do i fix this ?

History

#1 Updated by Yujin Boby over 3 years ago

Got it fixed with command

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

It will nice if client client side software can handle this binary file difference by itself for CentOS/RHEL.

#2 Updated by Ruben S. Montero over 3 years ago

Yujin Boby wrote:

Got it fixed with command

[...]

It will nice if client client side software can handle this binary file difference by itself for CentOS/RHEL.

http://docs.opennebula.org/5.4/deployment/open_cloud_host_setup/kvm_driver.html#driver-defaults

You can set the EMULATOR variable to set the path.

#3 Updated by Ruben S. Montero over 3 years ago

  • Status changed from Pending to Closed
  • Resolution set to worksforme

Also available in: Atom PDF