익명 06:28

"kvm_amd CPU x isn't AMD or Hygon" at boot

"kvm_amd CPU x isn't AMD or Hygon" at boot

kvm_amd CPU x isn't AMD or Hygon?

This text appear early in the boot sequence.

Now this is not really causing any trouble, RIGHT NOW.
But I consider all similar messages to be a potential hazard to the stability of my machine.
Therefore I quite fiercely hunt them down, and "swat them out".
The more of these unwanted messages you have the greater potential for strange interference and malfunction.

These are apparently about virtualbox:
https://unix.stackexchange.com/questions/798132/why-and-how-were-kvm-modules-unexpectedly-enabled-in-ubuntu-24-04
KVM not supported shown in terminal while it is enabled

... but I have this on intel-based hardware,
an oldish i7-9750H-based Asus G731 laptop, with embedded GTX 1660 Ti.
NOTE: 6 cores+HT, so message does not appear for ALL cores(!?)
Virtualbox 7.2(?) IS installed though, but quite seldom used.

I have:
GRUB_CMDLINE_LINUX_DEFAULT= ... kvm.enable_virt_at_load=0
in /etc/default/grub

No go.


Another attempt to fix it:
$ sudo -i
# cat >/etc/modprobe.d/kvm.conf
blacklist kvm
blacklist kvm-amd
blacklist kvm-intel

CTRl+D

# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-6.17.0-14-generic
...
# 

CTRl+D again

Reboot... I still get a black screen with these boot messages:

[    6.359851]
[   10.531179] kvm_amd: CPU 4 isn't AMD or Hygon
[   11.104935] kvm_amd: CPU 6 isn't AMD or Hygon
[   11.193682] kvm_amd: CPU 9 isn't AMD or Hygon
_

Still there:

[    6.479793]
[   10.253887] kvm_amd: CPU 9 isn't AMD or Hygon
[   10.901341] kvm_amd: CPU 3 isn't AMD or Hygon
[   10.987984] kvm_amd: CPU 5 isn't AMD or Hygon
_

Those CPU numbers appears to be somewhat random, another run: 0, 8 and 0 (yes, zero repeated) at around 10 seconds.

There has been some apt updates so now with:

$ uname -rv
6.17.0-29-generic #29~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon May 11 10:30:58 UTC 2

Does anyone have any more ideas on how to actually get rid of this?



Top Answer/Comment:
$ uname -rv
6.17.0-35-generic #35~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 19:30:42 UTC 2
$

The current method that was effective immediately

# Completely block KVM modules from loading
install kvm /bin/false
install kvm_amd /bin/false
install kvm_intel /bin/false

Into /etc/modprobe.d/kvm.conf and then

$ sudo update-initramfs -u


Another possible way:

$ sudo nano /etc/default/grub
Edit to include the last item here...
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash kvm.enable_virt_at_load=0"
then do
$ sudo update-grub

상단 광고의 [X] 버튼을 누르면 내용이 보입니다