1. Install CentOS8 on VirtualBox
2. Software required to install enhanced features
su
yum update kernel -y
yum install kernel-headers kernel-devel gcc make -y
init 6
yum install elfutils-libelf-devel -y
3. From the VirtualBox menu, install device->enhanced features.
4. Add users to the vboxsf group
usermod -a -G vboxsf user
5. Shut down the CentOS system
6. VirtualBox set fixed location shared folder, check auto mount
reference:
https://blog.csdn.net/sword_happy/article/details/96207341
https://www.cnblogs.com/bingws/p/10999823.html
https://blog.csdn.net/weixin_33963189/article/details/86261943
https://blog.csdn.net/GodPluto/article/details/106022393
another,
Fedora33 is installed on VirtualBox, and it seems that enhancements are installed automatically, so you don’t have to worry about it.
CentOS install java,
yum install java-1.8.0-openjdk* -y