Debian on VirtualBox共享win7文件夹

原文地址:http://www.dbasoul.com/2010/694.html
http://www.cnblogs.com/hanxi/archive/2012/05/26/2519514.html
http://www.huomo.cn/os/article-19991.html

如果是一个全新的Debian系统,直接安装VirtualBox的Guest Additions,可能会失败,这是因为VirtualBox增强功能需要编译链接工具。
启动debian虚拟机时记得先加载debian安装光盘
aptitude install build-essential linux-headers-`uname -r` dkms
重启后加载增强功能光盘
cd /cdrom
sh ./VBoxLinuxAdditions.run
其中,有个警告说是系统不支持OpenGL。重启,增强功能包安装完成。

mkdir /mnt/shared
mount -t vboxsf share /mnt/shared
share是之前创建的共享文件夹的名字。
umount /mnt/shared

编辑/etc/fstab,自动挂载
share /mnt/shared vboxsf rw,gid=100,uid=1000,auto 0 0

安装时遇到提示:
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
 ...fail!
有可能是没有安装dkms。

如果共享文件夹名称和挂载点名称相同,在挂载时会出现如下的错误信息:
/sbin/mount.vboxsf: mounting failed with the error: Protocol error


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值