Bug 1212209 - VirtualBox broken in Kernel 6.3.6-1-default
Summary: VirtualBox broken in Kernel 6.3.6-1-default
Status: RESOLVED FIXED
: 1212191 1212690 (view as bug list)
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: openSUSE Kernel Bugs
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-12 00:58 UTC by Stuart Nettleton
Modified: 2023-08-08 02:37 UTC (History)
6 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
dmesg after restart of Kernel 6.3.6-1-default (88.44 KB, text/plain)
2023-06-12 22:43 UTC, Stuart Nettleton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Nettleton 2023-06-12 00:58:13 UTC
VirtualBox broken in Kernel 6.3.6-1-default ... reinstall all VirtualBox files and still broken ... start computer using previous Kernel 6.3.4-1-default and everything works fine again
Comment 1 Larry Rainey 2023-06-12 14:42:48 UTC
It works fine for me - you probably failed to add it to the secure boot.
It appears that every new kernel has a new signature - try it with secure boot disabled.

proof it works:
user@LLR4:~> uname -a
Linux LLR4 6.3.6-1-default #1 SMP PREEMPT_DYNAMIC Mon Jun 5 07:58:35 UTC 2023 (f583ba4) x86_64 x86_64 x86_64 GNU/Linux
user@LLR4:~> psg virtual
user 3829 1 0 Jun09 ? 00:07:06 /usr/lib/virtualbox/VBoxXPCOMIPCD
user 3835 1 0 Jun09 ? 00:32:28 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
user 3861 3807 0 Jun09 pts/7 00:02:48 /usr/lib/virtualbox/VirtualBox6 %U
user 6375 3835 3 06:52 ? 00:04:04 /usr/lib/virtualbox/VirtualBoxVM --comment suse15 --startvm 7e154200-c32c-40ac-a01d-1b7632c55598 --no-startvm-errormsgbox
user 14879 3835 4 Jun11 ? 00:40:16 /usr/lib/virtualbox/VirtualBoxVM --comment Ubuntu --startvm d5db27f0-e3b3-4e18-84a2-2d999edf7504 --no-startvm-errormsgbox
user 19499 3835 4 Jun10 ? 02:21:53 /usr/lib/virtualbox/VirtualBoxVM --comment Manjaro --startvm 1222f84b-36a0-4b58-b84a-526d7a225af5 --no-startvm-errormsgbox
user 20149 3835 3 Jun10 ? 01:38:42 /usr/lib/virtualbox/VirtualBoxVM --comment tumbleweed --startvm 4713d533-f86c-463c-8da8-ee67427a1fed --no-startvm-errormsgbox
user 20424 3835 15 Jun10 ? 07:35:26 /usr/lib/virtualbox/VirtualBoxVM --comment win11 --startvm ce4f8eb9-4894-4373-89fb-dbc625899167 --no-startvm-errormsgbox
user 20748 3835 16 Jun10 ? 08:12:45 /usr/lib/virtualbox/VirtualBoxVM --comment win10 --startvm b791d51d-ccab-4e90-bef1-2bfa508394d8 --no-startvm-errormsgbox
user 21318 3835 4 Jun10 ? 02:17:31 /usr/lib/virtualbox/VirtualBoxVM --comment twkde --startvm 25ebb4a2-a3af-4a44-a3da-88fc2adf06dc --no-startvm-errormsgbox
user 21381 3835 0 Jun10 ? 00:00:02 /usr/lib/virtualbox/VBoxNetDHCP --comment Gnome --config /home/user/.config/VirtualBox/Gnome-Dhcpd.config --log /home/user/.config/VirtualBox/Gnome-Dhcpd.log
user 21382 3835 0 Jun10 ? 00:00:28 /usr/lib/virtualbox/VBoxNetNAT --network Gnome
user 21600 3835 6 Jun10 ? 03:14:30 /usr/lib/virtualbox/VirtualBoxVM --comment fedora --startvm d6da2ee7-920b-413f-8f9c-f944c8a6fa76 --no-startvm-errormsgbox
user 21878 3835 4 Jun10 ? 02:07:58 /usr/lib/virtualbox/VirtualBoxVM --comment gnome --startvm 04aa4c99-1973-469c-8c57-8d44d2628ca6 --no-startvm-errormsgbox
user 27600 3835 3 Jun11 ? 00:34:32 /usr/lib/virtualbox/VirtualBoxVM --comment Mint --startvm da7f2283-4722-4d94-890a-93c03e4b8178 --no-startvm-errormsgbox
user@LLR4:~>
Comment 2 Larry Finger 2023-06-12 15:17:25 UTC
After booting kernel 6.3.6-1, run the command 'sudo dmesg > dmesg.txt', and attach file dmesg.txt to this bug report.
Comment 3 Stuart Nettleton 2023-06-12 22:43:51 UTC
Created attachment 867526 [details]
dmesg after restart of Kernel 6.3.6-1-default
Comment 4 Stuart Nettleton 2023-06-12 22:52:20 UTC
(In reply to Larry Rainey from comment #1)
> It works fine for me - you probably failed to add it to the secure boot.
> It appears that every new kernel has a new signature - try it with secure
> boot disabled.

In VirtualBox Manager, for the machine Settings, System tab, Enable Secure Boot is unchecked, and Enable EFI is checked.

Thanks
Comment 5 Larry Finger 2023-06-13 02:46:25 UTC
The vbox kernel modules loaded OK. I'm not sure what is causing the problem. Did you try to start a VM during the time covered by that dmesg output?

Is this a rev 11+ CPU? What does 'hwinfo --cpu' show for any one of the CPUs? If it is, then you may be hit by the ibt  problem. Follow the instructions in https://forums.opensuse.org/t/virtualbox-fails-to-start-on-newest-cpus-with-6-3-6-kernel-how-to-fix-until-oracle-finds-a-fix/166879 for a workaround.

If this does not resolve your problem, what symptoms are you seeing for kernel 6.3.6?
Comment 6 Stuart Nettleton 2023-06-13 05:34:27 UTC
(In reply to Larry Finger from comment #5)
> The vbox kernel modules loaded OK. I'm not sure what is causing the problem.
> Did you try to start a VM during the time covered by that dmesg output?

The dmesg was taken immediately after a fresh boot (although following a hard reboot after VirtualBox froze the screen).

> Is this a rev 11+ CPU? What does 'hwinfo --cpu' show for any one of the
> CPUs? If it is, then you may be hit by the ibt  problem. Follow the
> instructions in
> https://forums.opensuse.org/t/virtualbox-fails-to-start-on-newest-cpus-with-
> 6-3-6-kernel-how-to-fix-until-oracle-finds-a-fix/166879 for a workaround.

localhost:~ # hwinfo --cpu
01: None 00.0: 10103 CPU                                        
  [Created at cpu.462]
  Unique ID: rdCR.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: X86-64
  Vendor: "GenuineIntel"
  Model: 6.183.1 "13th Gen Intel(R) Core(TM) i9-13900HX"
  Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,pdpe1gb,rdtscp,lm,constant_tsc,art,arch_perfmon,pebs,bts,rep_good,nopl,xtopology,nonstop_tsc,cpuid,aperfmperf,tsc_known_freq,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,est,tm2,ssse3,sdbg,fma,cx16,xtpr,pdcm,sse4_1,sse4_2,x2apic,movbe,popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,lahf_lm,abm,3dnowprefetch,cpuid_fault,epb,ssbd,ibrs,ibpb,stibp,ibrs_enhanced,tpr_shadow,vnmi,flexpriority,ept,vpid,ept_ad,fsgsbase,tsc_adjust,bmi1,avx2,smep,bmi2,erms,invpcid,rdseed,adx,smap,clflushopt,clwb,intel_pt,sha_ni,xsaveopt,xsavec,xgetbv1,xsaves,split_lock_detect,avx_vnni,dtherm,arat,pln,pts,hwp,hwp_notify,hwp_act_window,hwp_epp,hwp_pkg_req,hfi,umip,pku,ospke,waitpkg,gfni,vaes,vpclmulqdq,rdpid,movdiri,movdir64b,fsrm,md_clear,serialize,arch_lbr,ibt,flush_l1d,arch_capabilities
  Clock: 1800 MHz
  BogoMips: 4838.40
  Cache: 36864 kb
  Units/Processor: 128
  Config Status: cfg=no, avail=yes, need=no, active=unknown

> If this does not resolve your problem, what symptoms are you seeing for
> kernel 6.3.6?

VirtualBox starts the manager fine, once the VM launch sequence is started the computer screen freezes and only a manual shutdown using the power button is possible

I will investigate the ibt fix, however its strange that the previous kernel has no issues in launching a VM ... so it initially seems more like a kernel issue than a cpu-issue
Comment 7 Stuart Nettleton 2023-06-13 05:42:21 UTC
> > Is this a rev 11+ CPU? What does 'hwinfo --cpu' show for any one of the
> > CPUs? If it is, then you may be hit by the ibt  problem. Follow the
> > instructions in
> > https://forums.opensuse.org/t/virtualbox-fails-to-start-on-newest-cpus-with-
> > 6-3-6-kernel-how-to-fix-until-oracle-finds-a-fix/166879 for a workaround.

The ibt workaround fixed my issue ... thanks!
Comment 8 Stuart Nettleton 2023-06-13 05:44:05 UTC
Thanks ... this is resolved with the new ibt workaround
Comment 9 Larry Finger 2023-06-13 16:29:03 UTC
The reason it happens with kernel 6.3.6 and not with 6.3.4 is that openSUSE turned on kernel hardening with the newer kernels. For those of us with older CPUs, it did not make any difference.

I am reopening this bug entry until Oracle comes up with the fix. The IBT "feature" in the CPU changes the way that virtualization works, and as the fix has not yet been found by Oracle with their relatively large group of CPU experts, I am not even going to try.
Comment 10 Larry Finger 2023-06-17 16:55:27 UTC
*** Bug 1212191 has been marked as a duplicate of this bug. ***
Comment 11 dev 2023-06-27 04:26:05 UTC
*** Bug 1212690 has been marked as a duplicate of this bug. ***
Comment 12 Larry Finger 2023-07-20 15:49:51 UTC
Fixed with VB 7.0.10.
Comment 13 OBSbugzilla Bot 2023-07-21 17:25:05 UTC
This is an autogenerated message for OBS integration:
This bug (1212209) was mentioned in
https://build.opensuse.org/request/show/1099933 15.5 / virtualbox
https://build.opensuse.org/request/show/1099934 15.4 / virtualbox
Comment 14 Marcus Meissner 2023-07-27 01:05:29 UTC
openSUSE-RU-2023:0194-1: An update that has two recommended fixes can now be installed.

Category: recommended (important)
Bug References: 1212209,1212761
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    virtualbox-7.0.10-lp154.2.35.1, virtualbox-kmp-7.0.10-lp154.2.35.1
Comment 15 Stuart Nettleton 2023-07-27 04:57:42 UTC
(In reply to Marcus Meissner from comment #14)
> openSUSE-RU-2023:0194-1: An update that has two recommended fixes can now be
> installed.
> 
> Category: recommended (important)
> Bug References: 1212209,1212761
> CVE References: 
> JIRA References: 
> Sources used:
> openSUSE Leap 15.4 (src):    virtualbox-7.0.10-lp154.2.35.1,
> virtualbox-kmp-7.0.10-lp154.2.35.1

Marcus ... I get a different failure now on Tumbleweed 6.4.4-1-default (64-bit) with VirtualBox 7.0.10-1.1 ... the VM launch progress bar starts and then aborts ... this is without ibt=off ...
Comment 16 Marcus Meissner 2023-08-06 22:06:03 UTC
openSUSE-SU-2023:0213-1: An update that contains security fixes can now be installed.

Category: security (important)
Bug References: 1209727,1211941,1212209,1212761
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.5 (src):    virtualbox-7.0.10-lp155.2.5.1, virtualbox-kmp-7.0.10-lp155.2.5.1
Comment 17 Stuart Nettleton 2023-08-07 09:48:55 UTC
Markus ... I'm not sure what I'm missing here ... for me the virtual box instance of Windows fails immediately after the progress bar ... whether I use or don't use ibt=off ... am I awaiting a new virtual box in the Suse repos?
At the moment my system is:
13th Gen Intel® Core™ i9-13900HX, Tumbleweed 6.4.8-1-default (64-bit), KDE 5.27.7, Wayland and VirtualBox 7.0.10-1.1-x86 from OpenSuse (and openSuse-Tumbleweed-Oss has the same version)
Comment 18 Larry Rainey 2023-08-07 12:05:35 UTC
If windows start to load and the tpm 2.0  is selected and corrupt it will stop loading.
remove tpm 2.0 from the settings and see if windows loads.
Comment 19 Stuart Nettleton 2023-08-08 02:37:47 UTC
(In reply to Larry Rainey from comment #18)
> If windows start to load and the tpm 2.0  is selected and corrupt it will
> stop loading.
> remove tpm 2.0 from the settings and see if windows loads.

Setting tpm to none has fixed the issue ... many thanks Larry