LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-01-2023, 03:13 PM   #1
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133

Rep: Reputation: 16
Debian 12 KVM Windows guest fails to start.


Booting into Debian 12 with the current kernel vmlinuz-6.1.0-11-amd64 and trying to start a windows guest with Virtual Machine Manager give an error: 'Error starting the domain: the CPU is incompatible with host CPU: Host CPU does not provide required features: hle, rtm.
Code:
Error starting domain: the CPU is incompatible with host CPU: Host CPU does not provide required features: hle, rtm

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: the CPU is incompatible with host CPU: Host CPU does not provide required features: hle, rtm
When I boot with the previous kernel vmlinuz-5.10.0-23-amd64 it works as expected.

How do I go about tracking down the problem?
 
Old 09-01-2023, 04:37 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,155

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Try adding the tsx=on kernel command-line parameter. See https://wiki.ubuntu.com/SecurityTeam...AA_MCEPSC_i915
 
Old 09-01-2023, 06:02 PM   #3
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133

Original Poster
Rep: Reputation: 16
I tried the tsx=on, and still get the same error. Perhaps I did it wrong:
Code:
sudo dmesg | grep 'Command line'
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-11-amd64 root=UUID=aca026aa-d115-4abc-b781-f598df017918 ro quiet tsx=on
and
Code:
cat /sys/devices/system/cpu/vulnerabilities/tsx_async_abort
Mitigation: TSX disabled
 
Old 09-02-2023, 06:55 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,155

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Looks like tsx alone isn't enough, but I'm confused about what the msr shows for the combinations. See https://docs.kernel.org/admin-guide/...ync_abort.html
 
Old 09-02-2023, 07:50 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,021

Rep: Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343
I found this: https://bugzilla.redhat.com/show_bug.cgi?id=1182650
I don't really know if you find something useful in it, but probably yes. It looks like it is an extremely old issue, should have been solved already.
 
1 members found this post helpful.
Old 09-02-2023, 03:20 PM   #6
only-connect
LQ Newbie
 
Registered: Sep 2023
Location: UK
Posts: 15

Rep: Reputation: 1
Quote:
Originally Posted by sr_25 View Post
When I boot with the previous kernel vmlinuz-5.10.0-23-amd64 it works as expected.
How do I go about tracking down the problem?
[/QUOTE]

KVM is Red Hat. It's not Debian.
Red Hat is a profit-making company.
If you want a virtual machine on Linux - it's not KVM (Red Hat). I tried.
You need to use a different VM.
 
Old 09-04-2023, 09:18 AM   #7
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,155

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Quote:

KVM is Red Hat. It's not Debian.
Red Hat is a profit-making company.
If you want a virtual machine on Linux - it's not KVM (Red Hat). I tried.
You need to use a different VM.

qemu/kvm is available on every distro.

Last edited by smallpond; 09-04-2023 at 03:28 PM.
 
Old 09-04-2023, 11:17 AM   #8
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133

Original Poster
Rep: Reputation: 16
I ended up removing intel-microcode, and setting the CPU to host-passthrough in VMM. Everything works as expected. Now all I have to install the previous microcode.
 
Old 09-17-2023, 12:53 PM   #9
only-connect
LQ Newbie
 
Registered: Sep 2023
Location: UK
Posts: 15

Rep: Reputation: 1
Quote:
Originally Posted by smallpond View Post
qemu/kvm is available on every distro.
Have you installed qemu or kvm?
Do you know how easy it is to use as a free virtual machine?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 06:10 PM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
KVM Guest installed from console. How to get the guest's console? Toomas Linux - Virtualization and Cloud 3 05-04-2011 11:42 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
KVM: Mouse under Windows Guest performs way better than under Centos Guest martdj Linux - Virtualization and Cloud 3 03-29-2010 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration