#15769 closed defect (fixed)
Kernel Panic after installing guest additions on 4.7.0 kernel -> fixed in releases higher than 5.1.2
Reported by: | Dejan Kitic | Owned by: | |
---|---|---|---|
Component: | guest additions | Version: | VirtualBox 5.1.2 |
Keywords: | Cc: | ||
Guest type: | Linux | Host type: | Mac OS X |
Description
Can be reproduced both on Linux and Mac VirtualBox. Based on discussion here: https://forums.virtualbox.org/viewtopic.php?f=3&t=79121 To reproduce:
- Install Centos 7.2 using centos-minimal iso (http://ftp.heanet.ie/pub/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso)
2.Then log into the guest, and do yum -y update && shutdown -r now 3.After reboot: curl -L -O http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm && yum -y localinstall elrepo-release-7.0-2.el7.elrepo.noarch.rpm
- yum remove kernel-devel kernel-headers kernel-tools-libs
- yum --enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel kernel-ml-headers kernel-ml-tools-libs gcc bzip2 make dkms perl
- Reboot into kernel 4.7.0
- On virtual box select Insert Guest Additions CD Image
- On guest as root: mkdir /mnt/cdrom && mount /dev/cdrom /mnt/cdrom && cd /mnt/cdrom && ./VBoxLinuxAdditions.run --nox11
- It should install fine and lsmod | grep vb should show two modules, also dmesg will show few lines when they are loaded
- Restart guest with shutdown -r now or reboot/power down/up with VirtualBox
12.Kernel Panic
Attachments (3)
Change History (15)
by , 8 years ago
Attachment: | VirtualBox_Testos7_08_08_2016_15_20_21.png added |
---|
by , 8 years ago
Attachment: | Testos.log added |
---|
Detailed guest log including entire kernel panic output
comment:1 by , 8 years ago
Seems to be the same thing as reported here on 5.1.2: https://bugs.mageia.org/show_bug.cgi?id=18946
comment:2 by , 8 years ago
Kernel panic is caused by vboxvideo.ko, modprobe vboxvideo will do the trick. Same happens on VB test build of additions (5.1.3)
comment:3 by , 8 years ago
To avoid kernel panic: dracut -o "vboxvideo" -f /boot/initramfs-$(uname -r) $(uname -r) && echo "blacklist xboxvideo" >> /etc/modprobe.d/blacklist-vboxvideo.conf
Rebooting works fine, lsmod shows other two vbox modules loaded, and sharing folder from host to guest works as expected. 100% problem is xboxvideo.ko (both 5.1.2 and 5.1.3 version of guest additions, linux or mac version of VirtualBox)
comment:4 by , 8 years ago
Please try the following:
1) Reinstall the latest Guest Additions test build in a clean state.
2) Modify the file /usr/src/.../vbox_ttm.c to add the lines:
.lru_tail = &ttm_bo_default_lru_tail, .swap_lru_tail = &ttm_bo_default_swap_lru_tail,underneath the line:
.io_mem_free = &vbox_ttm_io_mem_free,
3) Execute "/sbin/rcvboxadd setup" as root.
4) Reboot the guest.
comment:5 by , 8 years ago
That does the trick, with changes above, kernel will not panic when I do reboot or try modprobe vboxvideo.
Thanks michael!
comment:6 by , 8 years ago
Does anyone happen to have a VBoxGuestAdditions.iso
which has these changes made on it?
comment:7 by , 8 years ago
Summary: | Kernel Panic after installing guest additions on 4.7.0 kernel → Kernel Panic after installing guest additions on 4.7.0 kernel -> fixed in releases higher than 5.1.2 |
---|
It was committed as revision 109930, so the current Guest Additions test build<1> has the fix.
comment:8 by , 8 years ago
Fix also part of the latest 5.0.x Guest Additions test build on that page.
comment:9 by , 8 years ago
Thanks for help and the quick turn around, good to see its already in for the next version.
comment:11 by , 8 years ago
I may be wrong, but there appears to be a typo in the [kernel panic] workaround suggested by dekstroza, above. Instead of 'blacklist xboxvideo', I suspect dekstroza wanted 'blacklist vboxvideo':
# dracut -o "vboxvideo" -f /boot/initramfs-$(uname -r) $(uname -r) && echo "blacklist vboxvideo" >> /etc/modprobe.d/blacklist-vboxvideo.conf
I successfully used 'blacklist vboxvideo' to get rid of the kernel panic, but it's probably the filename itself [rather than its content] that defines a blacklisted module.
Kernel Panic