Vagrant无法在Windows 7上使用VirtualBox Guest Additions在Linux guest虚拟机上安装

我试图用Virtual Box,Virtual Box Guest Additions和Vagrant运行一个Linux虚拟机,并在我的Windows 7机器上安装一个文件夹。 我已经尝试了这个问题的build议,但仍然得到同样的错误。

我正在运行以下版本:

虚拟盒子:4.3.18 r96516

虚拟盒子添加:4.3.18

stream浪者:1.6.5

stream浪插件:

vagrant-login:1.0.1

stream浪分享:1.1.2

vagrant-vbguest:0.10.0

当我运行vagrant重装我得到以下错误:

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`, nolock,vers=3,udp,noatime core /tbm mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant`,nolock,vers=3,udp,noa time core /tbm The error output from the last command was: stdin: is not a tty unknown mount option `noatime' valid options: rw mount read write (default) ro mount read only uid =<arg> default file owner user id gid =<arg> default file owner group id ttl =<arg> time to live for dentry iocharset =<arg> i/o charset (default utf8) convertcp =<arg> convert share name from given charset to utf8 dmode =<arg> mode of all directories fmode =<arg> mode of all regular files umask =<arg> umask of directories and regular files dmask =<arg> umask of directories fmask =<arg> umask of regular files 

我试过卸载,安装,更新vagrant-vbguest插件:

 vagrant plugin install vagrant-vbguest 

我试过在运行vagrant的ssh之后运行下面的命令,但仍然得到相同的错误信息:

 sudo ln -s /opt/VBoxGuestAdditions-4.3.18/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions 

我对mount选项不是很熟悉,但是我尝试在一个类似的虚拟机中执行你的命令,并且运行noatime选项的时候出现了同样的错误。

我阅读了文件( man 8 mount ),该文件位于文件系统FILESYSTEM INDEPENDENT MOUNT OPTIONS中的300行左右的某处, Some of these options are only useful when they appear in the /etc/fstab file.

我怀疑这是你的问题。 我编辑了我的/ ect / fstab文件,将我的挂载中的一个更改为/dev/mapper/precise64-root / ext4 noatime,errors=remount-ro 0 1此选项,然后运行以下命令:

 sudo mount -oremount / vagrant@precise64:~$ mount /dev/mapper/precise64-root on / type ext4 (rw,noatime,errors=remount-ro) ... 

我再次编辑文件删除选项,并:

 vagrant@precise64:~$ sudo mount -oremount / vagrant@precise64:~$ mount /dev/mapper/precise64-root on / type ext4 (rw,errors=remount-ro) ... 

我不知道你是否提供了这些mount命令,或者它们来自一个插件,但看起来像(至少在你的环境中),该选项可以正常工作,但不能在命令行中指定。