Install the shared folder and maccentos shared folder for Virtualbox mac version centos7.2
Because the mac is used, the centos7.2 virtual machine is installed on virtualbox on your computer. In order to exchange files with the local machine, you need to use the tribute folder function.
Most of the Web searches are for windows, so you can write a mac.
1. Create a folder on the local machine. It is best to use English letters. Do not leave spaces between letters for good looks. Here I create a folder named CM.
2. In the virtualbox navigation bar-> devices-> shared folders, click shared folders, and the page in Figure 2 appears (I am wearing a folder ),
Click the figure in the Red Circle in figure 2 and a page appears. Fill in the absolute path of the folder created in step 1, select automatic mounting and fixed allocation, and click OK, the result is shown in figure 2.
Figure 1 Figure 2
3. Create a folder> share in your VM to mount the shared folder.
4. Enter mount-t vboxsf CM (shared folder name)/root/share/(shared folder mount location) in the terminal ),
Run df to check the mounting. For example, if CM has been mounted, you can view it at the Mount point.
In this way, you can easily contribute files to the local machine.