79

I am trying to copy contents from my host machine to a guest machine, but for copying I need to install the Guest additions disk.

Or there is there another way to access host machine content on the guest machine or vice-versa?

2

10 Answers 10

102

Guest Additions are available for MacOS starting with VirtualBox 6.0.

Installing:

  1. Boot & login into your guest macOS.
  2. In VirtualBox UI, use menu Devices | Insert Guest Additions CD image...
  3. CD will appear on your macOS desktop, open it.
  4. Run VBoxDarwinAdditions.pkg.
  5. Go through installer, it's mostly about clicking Next.
  6. At some step, macOS will be asking about permissions for Oracle. Click the button to go to System Preferences and allow it.
  7. If you forgot/misclicked in step 6, go to macOS System Preferences | Security & Privacy | General. In the bottom, there will be a question to allow permissions for Oracle. Allow it.

Troubleshooting

  1. macOS 10.15 introduced new code signing requirements; Guest additions installation will fail. However, if you reboot and apply step 7 from list above, shared clipboard will still work.
  2. VirtualBox < 6.0.12 has a bug where Guest Additions service doesn't start. Use newer VirtualBox.
15
  • 4
    Guests are allowed on Mac OS X as of 6.0. Not Guest Additions. That is, you can use VirtualBox on a Mac now, but Guest Addtitions is still not provided, The two aren't the same thing. See Mac OS X guests on this page: virtualbox.org/manual/ch14.html Commented Jun 13, 2019 at 17:12
  • 9
    This is incorrect. Guest Additions are available starting with VirtualBox 6.0. I'm using it myself for shared clipboard.
    – Codeguard
    Commented Jun 14, 2019 at 7:43
  • 4
    This is also incorrect. What do you even mean by Guest additions for host? They are intended for guests.
    – Codeguard
    Commented Jun 16, 2019 at 11:02
  • 4
    For me - Windows 10 20H2 Host | macOS Big Sur 11.1 Guest | VirtualBox 6.1.16 - At step 5 it says - The installation failed. The installation encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. Commented Jan 12, 2021 at 8:43
  • 2
    For those of us with a MacOS Big Sur (11.x) guest.... we seem to be out of luck (for now?) according to the manual the Darwin Guest Additions are only for Mac OS X guests (Mac OS X hosts only) Commented Apr 6, 2021 at 23:38
68
  1. In the guest Mac, open the Terminal and go for a reboot on the Recovery partition
sudo nvram "recovery-boot-mode=unused"
sudo reboot
  1. Now you're in Recovery mode, enter the Terminal and do:
csrutil disable
spctl kext-consent add VB5E2TV963
nvram -d recovery-boot-mode
reboot
  1. Back in "normal" mode, open the Terminal, and do:
sudo mount -uw /
sudo chown :admin /System/Library/Extensions/
sudo chmod 775 /System/Library/Extensions/
  1. Run the Guest Additions installer and go through the end (in principle, it goes through successfully)

  2. Now in the terminal, do:

sudo chown :wheel /System/Library/Extensions/
sudo chmod 755 /System/Library/Extensions/
sudo nvram "recovery-boot-mode=unused"
sudo reboot
  1. Again in Recovery mode, go into the Terminal and do:
csrutil enable
nvram -d recovery-boot-mode
reboot

You should be set.

13
  • 5
    Impressive, I didn't understand any code, but it worked for me! It was the only solution. [macOS Catalina 10.15.3]
    – Bruno Yuzo
    Commented Aug 4, 2020 at 22:45
  • 1
    This worked for me VB 6.1, Windows 10 host, macOs Catalina 10.15.7 guest.
    – Ynot
    Commented Sep 27, 2020 at 21:44
  • 3
    VB 6.1.14, Host Catalina 10.15.6, Guest 10.15.1. At sudo spctl kext-consent add VB5E2TV963 I get sudo: command not found. That line seems to work without sudo. The installation did as well.
    – BadAtLaTeX
    Commented Oct 7, 2020 at 15:01
  • 13
    For me - Windows 10 20H2 Host | macOS Big Sur 11.1 Guest | VirtualBox 6.1.16 - sudo nvram "recovery-boot-mode=unused" gives error - nvram: Error setting variable - 'recovery-boot-mode': (iokit/common) not permitted. Commented Jan 12, 2021 at 9:08
  • 3
    For Big Sur what worked for me (11.0.1 and newer) was to: - shutdown the vm using the apple logo then selecting shutdown. - removing the virtual harddisc from the vm. - booting it up to the EFI utility, then enter "exit". - changing the boot order to the EFI util. - readding the vhd to VM - add back the iso used to install mac with - go to the terminal after booting from that iso and enter those terminal commands. - then do the other steps from the rest of the above post (but ignore the nvram commands as they do not work). Commented Apr 21, 2021 at 2:24
7

Guest additions are not available for Mac OS X. You can get features like clipboard sync and shared folders by using VNC and SMB. Here's my answer on a similar question.

3
  • 3
    They are available now.
    – Mormegil
    Commented Mar 14, 2019 at 9:48
  • @Mormegil where?
    – pbount
    Commented Jul 26, 2019 at 17:09
  • Like on any other guest OS. Take a look at the other answer by Codeguard.
    – Mormegil
    Commented Jul 27, 2019 at 11:03
6

You can use SSH and SFTP as suggested here.

  1. In the Guest OS (Mac OS X), open System Preferences > Sharing, then activate Remote Login; note the ip address specified in the Remote Login instructions, e.g. ssh [email protected]
  2. In VirtualBox, open Devices > Network > Network Settings > Advanced > Port Forwarding and specify Host IP = 127.0.0.1, Host Port 2222, Guest IP 10.0.2.15, Guest Port 22
  3. On the Host OS, run the following command sftp -P 2222 [email protected]; if you prefer a graphical interface, you can use FileZilla

Replace user and 10.0.2.15 with the appropriate values relevant to your configuration.

2
  • In my version of virtualbox, step 2 is slightly different: you need to open the settings of your machine -> Network -> Adapter 1 -> Advanced -> Port Forwarding. Commented Feb 14, 2020 at 13:33
  • Thanks, the other solutions didn't work for me but this works. In Virtualbox I have to keep setting it up as it resets
    – dustytrash
    Commented Mar 15, 2020 at 19:14
6

I've the same problem, and by the "trial and error" method I have the steps to install the guest additions on a MacOS guest:

  1. insert the guest additions cd
  2. open the cd on file manager
  3. double click on VBoxDarwinAdditions.pkg
  4. the installer opens, then click contine
  5. next screen to set location of installed files, only press install
  6. your password can be asked a couple of time while installing, write it and continue
  7. this is the tricky part, on my installation, macos show an message about the driver created by oracle won't be installed because a security issue, it has the option to enable it, so click on the button to open security screen and click on the allow button next to the oracle software listed at bottom of the security settings window, it will ask your password again. Meanwhile the pkg installer continued as if it has permissions and will say "install finished", but I don't believe it so, once I unlocked the oracle drivers installations I repeat the whole process from step 3, and in the second round all installs without asking more than the first password to install.

And it is done!

1
  • 1
    In case it helps anyone, Guest Additions install failed using root user. Using another user with admin privs worked. VBox 6.0.18, Mac 10.10 (Yosemite) Guest. Commented Mar 2, 2020 at 15:54
2

Above, someone gave a hint:

At some step, macOS will be asking about permissions for Oracle. Click the button to go to System Preferences and allow it. If you forgot/misclicked in step 6, go to macOS System Preferences | Security & Privacy | General. In the bottom, there will be a question to allow permissions for Oracle. Allow it.

It took me a couple of hours but I did finally find what he was talking about - it's actually in the bottom of the Mac - click on the gear icon and you'll find it eventually.

1

You need to update your virtualbox sw. On new version, there is VBoxDarwinAdditions.pkg included in a additions iso image, in older versions is missing.

1
  • 3
    Hi inventorado and welcome to StackOverflow! Thanks for providing the answer -- but it could be made even better if you were to reference the specific version numbers affected to help future users know what versions to look for.
    – robsiemb
    Commented Oct 12, 2019 at 14:20
-2

Before you start, close VirtualBox! After those manipulations start VB as Administrator!


  1. Run CMD as Administrator
  2. Use lines below one by one:
  • cd "C:\Program Files\Oracle\Virtualbox"
  • VBoxManage setextradata “macOS_Catalina” VBoxInternal2/EfiGraphicsResolution 1920x1080

Screen Resolutions: 1280x720, 1920x1080, 2048x1080, 2560x1440, 3840x2160, 1280x800, 1280x1024, 1440x900, 1600x900

Description:

  • macOS_Catalina - insert your VB machine name.

  • 1920x1080 - put here your Screen Resolution.

Cheers!

4
  • 3
    I wonder how changing the screen resolution might help installing Guest Additions and overcome security issues. I guess it will not. Commented Nov 13, 2020 at 19:17
  • Viacheslav Rodionov, the problem is that you can't install Guest Additions but there's another way to change Screen Resolution. Good luck! 👍 Commented Nov 15, 2020 at 20:39
  • 2
    Well, the author did not ask anything regarding the resolution. Why did you decide that this is exactly the issue that should be fixed and posted an answer, not even a comment? Commented Nov 15, 2020 at 21:17
  • This is the most correct way. I searched for a long time but did not find a better solution! Have a good day! Commented Nov 17, 2020 at 7:36
-2

you can do it from the windows 10 terminal

step 1: open CMD in administrator mode

step 2 paste this open CMD cd "C:\Program Files\Oracle\Virtualbox"

step 3: paste this command in the open CMD, you must indicate the name you have in VirtualBox

VBoxManage setextradata "Virtual machine name" VBoxInternal2/EfiGraphicsResolution X

Example:

VBoxManage setextradata "Mac OS Sierra" VBoxInternal2/EfiGraphicsResolution 1280x720
0
-5

Have you tried https://www.virtualbox.org/manual/ch04.html which has step-by-step instructions to help you?

  1. Make your VM bi-directional for Clipboard and Drag & Drop
  2. Share folders from your host to the guest VM too.
1
  • I have one last question to ask Rakesh: Are you sure that you restarted your VM after you followed the steps? I got the same issue where I followed the steps and when I tried to copy text from host machine into my VM environment nothing worked until I was forced to shut down the VM and then bring it back up and found that I could paste and copying using bi-directional cut and paste. Commented Jan 23, 2017 at 0:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.