virtualbox debian8 无法映射目录的问题 2015-12-16 @ TECH debian8errorvboxadd-install.logVBoxLinuxAdditions.runvboxsfvirtualbox
先看下报错是什么样的
$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... ...[略了]... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: No guest additions were detected on the base box for this VM! Guest default: additions are required for forwarded ports, shared folders, host only default: networking, and more. If SSH fails on this machine, please install default: the guest additions and repackage the box to continue. default: default: This is not an error message; everything may continue to work properly, default: in which case you may ignore this message. ==> default: Setting hostname... ==> default: Mounting shared folders... default: /www => E:/dev/ Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was: mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant
首先尝试安装vbox自带的 VBoxGuestAdditions_4.3.12.iso
vagrant ssh sudo mount /dev/sr0 /media/cdrom sudo ./VBoxLinuxAdditions.run
一直编译过不了tail /var/log/vboxadd-install.log 查看详情
1. The headers for the current running kernel were not found.
用 sudo apt-get install build-essential linux-headers-`uname -r` dkms 过了
2. recipe for target ‘vboxsf’ failed
尝试了 sudo ln -s /opt/VBoxGuestAdditions-4.3.12/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions 依然报错
然后下了个高版本的 VBoxGuestAdditions_4.3.14.iso,安装一次通过了
参考资料:
https://www.virtualbox.org/ticket/12879
https://forums.virtualbox.org/viewtopic.php?f=3&t=63999&start=15
暂无评论