KVM failed to start after ODA upgrade from 18.8 to 19.6

August 28, 2021
()

KVM failed to start after ODA upgrade from 18.8 to 19.6


Recent we had patched our ODA X7-2M (Baremetal) machine from 18.8 to 19.6 click here to read more about same both OS and Server patch was successful, But after ODA Server patched when tired to start KVM machine encounter below errors:

error: Failed to start domain vm_adhoc
e
rror: Cannot check QEMU binary /usr/libexec/qemu-kvm: No such file or directory

Follow the below solution to fix the issue of KVM failed to start after the ODA upgrade from 18.8 to 19.6.

PROBLEM:

[root@xxx-xxxxx oak]# virsh list –all
Id Name State
——————————

– vm_adhoc shut off

– vm_ucastest shut off

[root@oda-xxx-xxxxx oak]# virsh start vm_adhoc

error: Failed to start domain vm_adhoc

error: Cannot check QEMU binary /usr/libexec/qemu-kvm: No such file or directory,


SOLUTION:

1) Use virsh edit <vm-name> to edit KVM config xml file and replace below mention values for machine and emulator

old:

<os>

<type arch=’x86_64′ machine=’rhel6.6.’>hvm</type>

<boot dev=’hd’/>

</os>

new:

<os>

<type arch=’x86_64′ machine=’pc-i440fx-3.1′>hvm</type>

<boot dev=’hd’/>

</os>

————————————————————————————

old:

<emulator>/usr/libexec/qemu-kvm</emulator>

new:

<emulator>/usr/bin/qemu-system-x86_64</emulator>


NOTE: Do not try to edit kvm config xml file (/etc/libvirt/qemu) directly using vi command, use only virsh edit command. If you changed required values using vi command changes will not reflect new values after restart of KVM machine, it will take old values only.

A big Thanks to Jamsher click here to know about him, to work with Oracle support and fixed this issueClick here for reference solution of it.

This document is only for learning purpose and always validate in the LAB environment first before applying in the LIVE environment.

Hope so you like this article!
Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to click on the bell icon to get the latest update. Click here to know more about our pursuit.

Related Articles



Loading

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

<strong>Hello and welcome to DBsGuru,</strong>DBsGuru is a group of experienced DBA professionals and serves databases and their related community by providing technical blogs, projects, training. Technical blogs are the source of vast information not about databases but its related product like middleware, PL/SQL, replication methodology, and so on.Thanks for the visits!<strong>Share Learn Grow!</strong>

Leave a Reply

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