流浪无法在Windows 7上使用VirtualBox Guest Additions在Linux guest虚拟机上挂载
我试图使用Virtual Box,Virtual Box Guest Additions和Vagrant运行并在我的Windows 7计算机上挂载文件夹来获取Linux VM。我已经尝试了this question中的建议,但仍然出现相同的错误。流浪无法在Windows 7上使用VirtualBox Guest Additions在Linux guest虚拟机上挂载
我运行以下版本:
虚拟盒:4.3.18 r96516
虚拟盒客户添置:4.3.18
流浪:1.6.5
流浪插件-ins:
vagrant-login:1.0.1
流浪汉股:1.1.2
无业游民,vbguest:0.10.0
当我运行流浪汉重装,我得到以下错误:
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
我试过未安装,安装,更新无业游民,vbguest插件:
vagrant plugin install vagrant-vbguest
我试着运行流浪汉SSH之后运行下面的命令,但仍然得到同样的错误消息:
sudo ln -s /opt/VBoxGuestAdditions-4.3.18/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
我对挂载选项并不是很熟悉,但我尝试在运行类似的虚拟机中执行命令,并且得到了与noatime选项相同的错误。
我通过线300左右后某处规定的文件(man 8 mount
)读取,在FILESYSTEM INDEPENDENT MOUNT OPTIONS
是: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/
[email protected]:~$ mount
/dev/mapper/precise64-root on/type ext4 (rw,noatime,errors=remount-ro)
...
我再次编辑该文件以删除选项和:
[email protected]:~$ sudo mount -oremount/
[email protected]:~$ mount
/dev/mapper/precise64-root on/type ext4 (rw,errors=remount-ro)
...
我不知道你是否提供了这些mount命令,或者它们是否来自一个插件,但看起来(至少在你的环境中),该选项可以正常工作,但不能在命令行中指定。