Description:
After installing Fedora on VirtualBox with 3 monitors I was happy with Fedora being main work computer. The issue then became a “virtual box kernel stopped working” on login. This was after I installed the guest additions the first time. I then followed these steps to do it again:
To Resolve:
- Change root user:
- Make sure that you are running latest kernel:
# reboot if it installs a newer kernel
- Mount VirtualBox Guest Additions: Click Devices > Install Guest Additions in VB. Open up a terminal and type:
1
2
| mkdir /media/VirtualBoxGuestAdditions
mount -r /dev/cdrom /media/VirtualBoxGuestAdditions
|
- Install following packages:
1
| dnf install gcc kernel-devel kernel-headers dkms make bzip2 perl
|
- Add KERN_DIR environment variable:
1
2
3
4
5
| KERN_DIR=/usr/src/kernels/`uname -r`
export KERN_DIR
# for Centos: yum install kernel -devel.x86_64 0:3.10.0-327.el7
yum install kernel -devel -4.2.3-300.fc23.x86_64.rpm
|
- Install Guest Additions:
1
2
| cd /media/VirtualBoxGuestAdditions
./VBoxLinuxAdditions.run
|
- Reboot guest system:
References:
“VirtualBox Guest Additions on Fedora 30/29, CentOS/RHEL 8/7/6/5”
Comments