win7下virtualbox虚拟机中安装centos后设置共享文件夹

报错信息:

building the main Guest Additions module FAILED
unable to find the sources of your current Linux kernel. Specify KERN_DIR-<directory> and run Make again

解决方案:

  • yum update  

  • yum install gcc make kernel kernel-devel

然后,重启Centos。

1.创建一个目录 makdir /mnt/share;

2.挂在共享文件夹:mount -t vboxsf  share  /mnt/share;(注释:标红的share指的是虚拟机配置共享文件夹选项中共享文件夹的名称);

3.在centos下,查看/mnt/share路径即可看到与宿主机共享的文件了。

posted on 2015-06-20 00:49  jsingsunck  阅读(211)  评论(0)    收藏  举报

导航