VirtualBox

Ticket #13960 (new defect)

Opened 4 years ago

Last modified 4 years ago

VirtualBox causes HOST CentOS 7 kernel-ml to Freeze on Guest VM Start

Reported by: voor Owned by:
Component: other Version: VirtualBox 4.3.24
Keywords: Cc:
Guest type: all Host type: Linux

Description

What Happens? Starting ANY VM (even a brand new VM with no OS installed, just booting to a LiveOS DVD) causes the host system to completely and irrevocably freeze. The Caps Lock LED blinks to show the system is attempting to do something, but the mouse/keyboard/sound/everything is totally frozen. VBox.log is always empty, but it is creating the file (so empty VBox.log.1, .2, .3, etc. for each boot)

On brand new VMs for CentOS it'll show the "Install CentOS or test system" menu, and after selecting an option the host freeze occurs. Windows 7 will just freeze the host during startup.

Things I've tried:

  • Disabled SELinux
  • Reinstalled VirtualBox (there are no issues uninstalling or reinstalling VirtualBox, it's using DKMS and the kernel-ml-devel without issue that I can tell)

Host information:

Hardware: Inspiron 17 (7746, Early 2015)

VirtualBox: VirtualBox-4.3-4.3.24_98716_el7-1.x86_64 (Installed from virtualbox.repo provided on this site)

OS Configuration:

##### release ###########################

Distributor ID:	CentOS
Description:	CentOS Linux release 7.0.1406 (Core) 
Release:	7.0.1406
Codename:	Core

##### kernel ############################

Linux 3.19.1-1.el7.elrepo.x86_64 #1 SMP Sat Mar 7 13:55:36 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, rd.lvm.lv=centos/swap, vconsole.font=latarcyrheb-sun16, rd.lvm.lv=centos/root, crashkernel=auto, vconsole.keymap=us, rhgb, quiet, LANG=en_US.UTF-8

##### desktop ###########################

GNOME Classic

##### lspci #############################

06:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59)
	Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5410]
	Kernel driver in use: iwlwifi

07:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)
	Subsystem: Dell Device [1028:0692]
	Kernel driver in use: r8169

##### lsusb #############################

Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 0c45:6705 Microdia 
Bus 001 Device 004: ID 8087:0a2a Intel Corp. 
Bus 001 Device 005: ID 04f3:020b Elan Microelectronics Corp. 
Bus 003 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### rfkill ############################

0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

##### lsmod #############################

dell_wmi               13132  0 
sparse_keymap          13948  1 dell_wmi
dell_laptop            14000  0 
dcdbas                 14928  1 dell_laptop
iwlmvm                191527  0 
mac80211              694367  1 iwlmvm
iwlwifi               116602  1 iwlmvm
cfg80211              531303  3 iwlwifi,mac80211,iwlmvm
rfkill                 26772  6 cfg80211,bluetooth,dell_laptop
mxm_wmi                13021  1 nouveau
wmi                    19193  4 dell_led,dell_wmi,mxm_wmi,nouveau

##### module infos ######################

[iwlmvm]
filename:       /lib/modules/3.19.1-1.el7.elrepo.x86_64/kernel/drivers/net/wireless/iwlwifi/mvm/iwlmvm.ko
license:        GPL
author:         Copyright(c) 2003- 2014 Intel Corporation <ilw@linux.intel.com>
version:        in-tree:
description:    The new Intel(R) wireless AGN driver for Linux
srcversion:     85F7E2E92E03C458E40D968
depends:        iwlwifi,mac80211,cfg80211
intree:         Y
vermagic:       3.19.1-1.el7.elrepo.x86_64 SMP mod_unload modversions 
parm:           init_dbg:set to true to debug an ASSERT in INIT fw (default: false (bool)
parm:           power_scheme:power management scheme: 1-active, 2-balanced, 3-low power, default: 2 (int)

[mac80211]
filename:       /lib/modules/3.19.1-1.el7.elrepo.x86_64/kernel/net/mac80211/mac80211.ko
license:        GPL
description:    IEEE 802.11 subsystem
srcversion:     E6E2F14734A0D6350E11813
depends:        cfg80211
intree:         Y
vermagic:       3.19.1-1.el7.elrepo.x86_64 SMP mod_unload modversions 
parm:           max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm:           max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm:           beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm:           probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm:           ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)

[iwlwifi]
filename:       /lib/modules/3.19.1-1.el7.elrepo.x86_64/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko
license:        GPL
author:         Copyright(c) 2003- 2014 Intel Corporation <ilw@linux.intel.com>
version:        in-tree:
description:    Intel(R) Wireless WiFi driver for Linux
firmware:       iwlwifi-100-5.ucode
firmware:       iwlwifi-1000-5.ucode
firmware:       iwlwifi-135-6.ucode
firmware:       iwlwifi-105-6.ucode
firmware:       iwlwifi-2030-6.ucode
firmware:       iwlwifi-2000-6.ucode
firmware:       iwlwifi-5150-2.ucode
firmware:       iwlwifi-5000-5.ucode
firmware:       iwlwifi-6000g2b-6.ucode
firmware:       iwlwifi-6000g2a-5.ucode
firmware:       iwlwifi-6050-5.ucode
firmware:       iwlwifi-6000-4.ucode
firmware:       iwlwifi-7265D-10.ucode
firmware:       iwlwifi-7265-10.ucode
firmware:       iwlwifi-3165-10.ucode
firmware:       iwlwifi-3160-10.ucode
firmware:       iwlwifi-7260-10.ucode
firmware:       iwlwifi-8000-10.ucode
srcversion:     29203CA7DDFAAD012962408
depends:        cfg80211
intree:         Y
vermagic:       3.19.1-1.el7.elrepo.x86_64 SMP mod_unload modversions 
parm:           swcrypto:using crypto in software (default 0 [hardware]) (int)
parm:           11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
parm:           amsdu_size_8K:enable 8K amsdu size (default 0) (int)
parm:           fw_restart:restart firmware in case of error (default true) (bool)
parm:           antenna_coupling:specify antenna coupling in dB (default: 0 dB) (int)
parm:           wd_disable:Disable stuck queue watchdog timer 0=system default, 1=disable (default: 1) (int)
parm:           nvm_file:NVM file name (charp)
parm:           uapsd_disable:disable U-APSD functionality (default: Y) (bool)
parm:           bt_coex_active:enable wifi/bt co-exist (default: enable) (bool)
parm:           led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int)
parm:           power_save:enable WiFi power management (default: disable) (bool)
parm:           power_level:default power save level (range from 1 - 5, default: 1) (int)
parm:           fw_monitor:firmware monitor - to debug FW (default: false - needs lots of memory) (bool)

[cfg80211]
filename:       /lib/modules/3.19.1-1.el7.elrepo.x86_64/kernel/net/wireless/cfg80211.ko
description:    wireless configuration support
license:        GPL
author:         Johannes Berg
srcversion:     6AAC635BDE451B0558DF56A
depends:        rfkill
intree:         Y
vermagic:       3.19.1-1.el7.elrepo.x86_64 SMP mod_unload modversions 
parm:           ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm:           cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[iwlmvm]
init_dbg: N
power_scheme: 2

[mac80211]
beacon_loss_count: 7
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
probe_wait_ms: 500

[iwlwifi]
11n_disable: 0
amsdu_size_8K: 0
antenna_coupling: 0
bt_coex_active: Y
fw_monitor: N
fw_restart: Y
led_mode: 0
nvm_file: (null)
power_level: 0
power_save: N
swcrypto: 0
uapsd_disable: Y
wd_disable: 1

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

Change History

comment:1 Changed 4 years ago by voor

Launching the VM through VBoxManage in headless mode and freeze still occurs.

Reverting back to the normal CentOS 7 kernel:

##### release ###########################

Distributor ID:	CentOS
Description:	CentOS Linux release 7.0.1406 (Core) 
Release:	7.0.1406
Codename:	Core

##### kernel ############################

Linux 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29 18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, rd.lvm.lv=centos/swap, vconsole.font=latarcyrheb-sun16, rd.lvm.lv=centos/root, crashkernel=auto, vconsole.keymap=us, rhgb, quiet, LANG=en_US.UTF-8

And all VM operations are fully functional.

(Just my wireless card doesn't work now!)

comment:2 Changed 4 years ago by frank

  • priority changed from blocker to critical

No immediate idea. As the normal EL7 kernel works, this is not a blocker.

To help debugging you could set up kernel crash dump on your host. What actually would help would be the output of 'dmesg' when the host kernel crashes.

comment:3 Changed 4 years ago by frank

If installing + setting up kernel crash dump is too much effort you also might want to try adding 'nosmap' as kernel command line parameter.

comment:4 follow-up: ↓ 5 Changed 4 years ago by Darron

FWIW, my system appears to have the same problem. I have a Dell Inspiron 15, Model 7548 (late 2014) with i7 Broadwell CPU running Fedora 21, 64 bit, with a 32 bit Windows 7 guest. Under both Linux kernel 3.19.1 and 3.19.2, the Linux host and Windows 7 guest will freeze shortly after starting the Windows 7 VM, just as the Windows logo gets displayed. This does not happen under earlier Linux kernels. I tried to set up kernel crash dump on the Linux host, but the crash kernel did not start after the system froze upon starting the VM. I'll try setting the nosmap kernel command line parameter to see if that makes any difference.

comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 4 years ago by frank

Replying to Darron:

FWIW, my system appears to have the same problem. I have a Dell Inspiron 15, Model 7548 (late 2014) with i7 Broadwell CPU running Fedora 21, 64 bit, with a 32 bit Windows 7 guest. Under both Linux kernel 3.19.1 and 3.19.2, the Linux host and Windows 7 guest will freeze shortly after starting the Windows 7 VM, just as the Windows logo gets displayed. This does not happen under earlier Linux kernels. I tried to set up kernel crash dump on the Linux host, but the crash kernel did not start after the system froze upon starting the VM. I'll try setting the nosmap kernel command line parameter to see if that makes any difference.

Your problem is most likely the same as reported in #13961. Please apply the diff_smap_4 patch from this ticket to your host kernel drivers in /usr/src/vboxguest-4.3.26 and do /etc/init.d/vboxdrv setup.

comment:6 in reply to: ↑ 5 Changed 4 years ago by Darron

Replying to frank:

Replying to Darron:

FWIW, my system appears to have the same problem. I have a Dell Inspiron 15, Model 7548 (late 2014) with i7 Broadwell CPU running Fedora 21, 64 bit, with a 32 bit Windows 7 guest. Under both Linux kernel 3.19.1 and 3.19.2, the Linux host and Windows 7 guest will freeze shortly after starting the Windows 7 VM, just as the Windows logo gets displayed. This does not happen under earlier Linux kernels. I tried to set up kernel crash dump on the Linux host, but the crash kernel did not start after the system froze upon starting the VM. I'll try setting the nosmap kernel command line parameter to see if that makes any difference.

Your problem is most likely the same as reported in #13961. Please apply the diff_smap_4 patch from this ticket to your host kernel drivers in /usr/src/vboxguest-4.3.26 and do /etc/init.d/vboxdrv setup.

Thanks! The patch did the trick - both Linux host (now running kernel 3.19.3) and Windows 7 guest running without problems and without passing the nosmap option to the Linux kernel.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use