Vagrant无法在Windows 7上添加VirtualBox来宾的Linux来宾中装载

Vagrant无法在Windows 7上添加VirtualBox来宾的Linux来宾中装载,linux,ubuntu,windows-7,vagrant,virtualbox,Linux,Ubuntu,Windows 7,Vagrant,Virtualbox,我正在尝试使用Virtual Box、Virtual Box Guest Additions和Vagrant运行Linux虚拟机,并在我的Windows 7机器上装载一个文件夹。我在中尝试了这些建议,但仍然得到相同的错误 我正在运行以下版本: 虚拟盒:4.3.18 r96516 虚拟箱客户添加:4.3.18 流浪汉:1.6.5 Vagrant插件: 流浪者登录:1.0.1 流浪份额:1.1.2 流浪客:0.10.0 当我运行vagrant reload时,出现以下错误: Failed t

我正在尝试使用Virtual Box、Virtual Box Guest Additions和Vagrant运行Linux虚拟机,并在我的Windows 7机器上装载一个文件夹。我在中尝试了这些建议,但仍然得到相同的错误

我正在运行以下版本:

虚拟盒:4.3.18 r96516

虚拟箱客户添加:4.3.18

流浪汉:1.6.5

Vagrant插件:

流浪者登录:1.0.1

流浪份额:1.1.2

流浪客:0.10.0

当我运行vagrant reload时,出现以下错误:

    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 ssh之后,我尝试运行以下命令,但仍然收到相同的错误消息:

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

我不太熟悉挂载选项,但我尝试在我正在运行的类似VM中执行您的命令,但在noatime选项方面遇到了相同的错误

我仔细阅读了文档(
man8 mount
),该文档在
文件系统独立的mount OPTIONS
第300行之后的某个地方指出:
这些选项中的一些只有在/etc/fstab文件中出现时才有用。

我怀疑这是你的问题。我编辑了我的/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)
...
我不知道您是否提供了这些挂载命令,或者它们是否来自插件,但看起来(至少在您的环境中),该选项工作正常,但无法在命令行中指定

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