Oracle KVM on Linux 9 with Kernel Error

KVM Virtual machine errored with following Error.

Issue:

When we were trying to install the guest packages then the VM hosted with OEL9 KVM crashed with the following Error.

 

Wed Apr 17 16:03:45 GMT 2024 [ 5.310837] x86/mm: Checked W+X mappings:passed, no W+X pages found.

Wed Apr 17 16:03:45 GMT 2024 [ 5.312259] Run /init as init process

Wed Apr 17 16:03:45 GMT 2024 Fatal glibc error: CPU does not supportx86-64-v2

Wed Apr 17 16:03:45 GMT 2024 [ 5.314075] Kernel panic - not syncing:Attempted to kill init! exitcode=0x00007f00

Wed Apr 17 16:03:45 GMT 2024 [ 5.315686] CPU: 1 PID: 1 Comm: init Not tainted5.14.0-70.5.1.el9_0.x86_64 #1

Wed Apr 17 16:03:45 GMT 2024 [ 5.317214] Hardware name: QEMU Standard PC (Q35+ ICH9, 2009)

 

Cause:

The installed glibc version of the operating system doesn’t set the CPU flags correctly in  the VM configuration.

 

Solution:

As a workaround use the following commands:

 

#virsh edit vm-name

 

Then, add the following declaration in the virtual machine's XML file:

<cpu mode='host-model' check='partial'/>

The check parameter's partial setting sets libvirt to check the VM's CPU specification before starting a domain and the VM will start successfully without issues.

 thanks for reading.

regards,

ZAHEER

Comments

Popular posts from this blog

Installation of Oracle Applications R12.1.1 on Linux and vmware

Disable Firewall on Oracle Linux 8

ntp service in Maintenance mode Solaris 10