Update Centos to version 7.6
Centos is regularly updated - when the number after the . (dot) is updated is it a minor update. But still minor updates brings new and fresh software in the latest releases.
Centos 7.6 is not compatible with VirtualBox 5.2.22 and the new 7.6 kernel does not yet contain fixes to the error that makes the mouse not working correct.
Update VirtualBox to version 6.something and then update your Centos.
If you accedentially updated your Centos first the it can be a bit problematic to install the VirtualBox extension because the mouse doesn't work in the mix of Virtualbox 5.2.22 drivers and Centos 7.6 drivers.
Follow these instructions and you should be up running soon:
1. Update VirtualBox to version 6.something
2. Currently there is a bug in the kernel delivered from Centos. A patched version that will work correctly is over at https://people.centos.org/toracat/kernel/7/plus/bug15570new/kernel-3.10.0-957.1.3.bug15570.plus.el7.x86_64.rpm
] $ sudo yum update ] $ sudo yum install https://people.centos.org/toracat/kernel/7/plus/bug15570new/kernel-3.10.0-957.1.3.bug15570.plus.el7.x86_64.rpm ] $ sudo yum install https://people.centos.org/toracat/kernel/7/plus/bug15570new/kernel-devel-3.10.0-957.5.1.bug15570.plus.el7.x86_64.rpm ] $ sudo reboot now
3. Start your Centos - hope that yakuake starts automatically. If your mouse works correct follow 3.a below if not follow 3.b below.
3.a If your mouse is working correctly then you can access to the devices icon in the system dock to the right in the Centos process line and chose to open the Guest Additions CD in File manager then click autorun.sh and follow the instructions.
If you can't access the CD because the mouse doesn't work properly then follow these instructions:
3.b In VirtualBox menu click on Devices and select Optical Drives. In this menu select Force unmount if it is available. Next click on the Insert Guest Additions CD in the Devices menu.
Open yakuake and execute
] $ sudo mkdir -p /mnt/cd ] $ sudo mount -t iso9660 /dev/sr0 /mnt/cd ] $ cd /mnt/cd ] $ ./autorun.sh ] $ sudo reboot now
reboot and reinstall the VirtualBox extension to the running kernel again. Sometimes a reboot is necessary to get the add-on's to work correctly.