Skip to contentSkip to conversation

86_64 host is not supported by hypervisor - 2024

DISCUSSION Adam 2 participants 5 messages Jan 8, 2025

lore
Share & tools
lore

Adam

author
#0 lore raw

TWIMC:

Had an issue with VM networking that turned out to be the host. In the process of troubleshooting, I

    sudo apt reinstall libvirt   (and other QEMU/KVM virtualization dependencies)

Now I am getting this particular error when trying to use the host-passthrough for the CPU.

"error: unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor"

This was working previously.  I found that two other domains are responding the same.

The configuration in xml file is:

    <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> <libosinfo:os id="http://libosinfo.org/linux/2022"/> </libosinfo:libosinfo>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-q35-7.2'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state='off'/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'/>
  <clock offset='utc'>

But i now have to use this for it to work but the system is quite slow now.

 <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> <libosinfo:os id="http://libosinfo.org/linux/2022"/> </libosinfo:libosinfo>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-q35-5.2'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state='off'/>
  </features>
  <cpu mode='custom' match='exact' check='none'>
    <model fallback='forbid'>qemu64</model>
  </cpu>

Any recommendations, given that this used to work.

Traceback error details are below this line:

Error starting domain: unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3/dist-packages/libvirt.py", line 1373, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor

Thank you,

A>AM

#1 lore raw
Quoted 14 lines · Adam

TWIMC:

Had an issue with VM networking that turned out to be the host. In the process of troubleshooting, I

    sudo apt reinstall libvirt   (and other QEMU/KVM virtualization dependencies)

Now I am getting this particular error when trying to use the host-passthrough for the CPU.

"error: unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor"

Quoted 6 lines

This was working previously.  I found that two other domains are responding the same.

The configuration in xml file is:

    <metadata>

You've omitted the part of the config that shows whether the guest is configured for 'tcg' or 'kvm'. Given your error message my guess is that you've got a 'tcg' based guest, for which '-cpu host' is not available.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
author
#2 lore raw

I have backups of the xml and image, and they too report the same issue.

<domain type='kvm'>
  <name>vFRANK</name> <uuid>88c29f0e-0d18-42f9-a198-bc9c679fdf8d</uuid> <metadata>

Quoted 28 lines · Daniel P. Berrangé
Quoted 14 lines · Adam

TWIMC:

Had an issue with VM networking that turned out to be the host. In the process of troubleshooting, I

    sudo apt reinstall libvirt   (and other QEMU/KVM virtualization
dependencies)

Now I am getting this particular error when trying to use the host-passthrough for the CPU.

"error: unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor"

Quoted 6 lines

This was working previously.  I found that two other domains are responding the same.

The configuration in xml file is:

    <metadata>

You've omitted the part of the config that shows whether the guest is configured for 'tcg' or 'kvm'. Given your error message my guess is that you've got a 'tcg' based guest, for which '-cpu host' is not available.

With regards,
Daniel

#3 lore raw
Quoted 6 lines · Adam

I have backups of the xml and image, and they too report the same issue.

<domain type='kvm'>
  <name>vFRANK</name> <uuid>88c29f0e-0d18-42f9-a198-bc9c679fdf8d</uuid> <metadata>

What is reported for

  virt-host-validate qemu
  virsh capabilities --xpath //guest
  virsh domcapabilities --virttype kvm --arch x86_64 --xpath //cpu/mode

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
author
#4 lore raw

Will respond shortly.  Doing additional troubleshooting at the moment.

I copied in a backup from 02JAN24.  And, I tried to create a new XML for same with a different name vFRANK2 vs vFRANK.  Prior to creating it, I specified in the virt-manager to use host-passthrough for the cpu.  However, upon creating the new XML based on the original .qcow2 file, it still changed the CPU back to qemu default instead of host-passthrough.

Regards,

A>AM

Quoted 16 lines · Daniel P. Berrangé
Quoted 6 lines · Adam

I have backups of the xml and image, and they too report the same issue.

<domain type='kvm'>
  <name>vFRANK</name> <uuid>88c29f0e-0d18-42f9-a198-bc9c679fdf8d</uuid> <metadata>

What is reported for

   virt-host-validate qemu
   virsh capabilities --xpath //guest
   virsh domcapabilities --virttype kvm --arch x86_64 --xpath //cpu/mode

With regards,
Daniel