
Make a place to mount the iso and then mount it.

Yum install dkms Install the guest additions You also need dkms from the epel repository yum install epel-release Get all the stuff required to build the VirtualBox Guest additions yum groupinstall "Development Tools"

Now reboot to make sure you are are running the latest kernel. Specifically you want to the latest kernel otherwise your VirtualBox modules might be built for the wrong kernel version: yum update (Screenshot coming soon) In The CentOS VMĮverything here needs to be done as root so either log in as root or put “sudo” in front of every command. In the VirtualBox VM manager, load this iso into the optical drive of the CentOS VM. In the host OS (not in the CentOS VM) go to /virtualbox and navigate to your version of VirtualBoxĭownload the VBoxGuestAdditions_.iso. VirtualBox was NOT able to really mount the GuestAdditions.iso image automatically via the "Device -> Insert GuestAdditions CD Image.".įinally I got it mounted! Then just go into the mounted dir ( cd cdrom) and exec the installer with sh n (remember you are root).First you need to find the Virtual box guest additions iso. I tried all the solution on the net and couldn't make it work via GUI (like all the other answers). Every reload was always finding the old one (5.1 installed on VirtualBox 5.1). And now I get reported (by vbguest plugin ) that I need an updated version of GuestAdditions. In my case I updated my macOS, I was forced to upgrade Virtualbox to 5.2 (I installed without uninstalling first). Keep in mind that you not only have to insert the virtual cd, but actually run the installer before the vboxfs filesystem type will work.Īll the answer say to go via GUI and "Leave emtpy" the CD drive, but that wasn't working for me: still VERR_PDM_MEDIA_LOCKED error. Hitting the 'Force Unmount' button would be another way to unmount your drive, and after doing that the insert guest additions cd menu option should work the second time you use it. The linked article provides instructions for doing this. Googling for that produces the answer in the first result: Įssentially, you need to unmount your virtual cd drive before inserting the guest additions cd image.

Guest additions should include the software you need to use the vboxfs filesystem type.ĮDIT: Based on your updated question, the real cause error you are seeing is VERR_PDM_MEDIA_LOCKED. Run the appropriate setup program from the virtual CD drive. When you choose it, it will be as if you inserted an installation CD to your virtual machine. Insert Guest Additions CD Image is the same thing as Install Guest Additions in a different version of Virtual Box.
