vagrant 启动失败

来源:6-1 根据前面所学部署一个wordpress

精慕门8459013

2018-10-29

老师。您好,又有一个问题麻烦你,我使用第六章里面的vagrant file 启动一个虚拟机发现启动失败,谷歌后发现是因为 共享盘的问题,但是我依旧解决不了,请老师帮忙。报错如下:
我的环境是mac的

==> docker-host: Rsyncing folder: /Users/sean/Docker/coding-189/coding-189/chapter6/ => /vagrant
==> docker-host: Mounting shared folders...
    docker-host: /home/vagrant/labs => /Users/sean/Docker/coding-189/coding-189/chapter6/labs
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 home_vagrant_labs /home/vagrant/labs

The error output from the command was:

mount: unknown filesystem type 'vboxsf'

写回答

2回答

精慕门8459013

提问者

2018-10-30

老师你好,按照您的命令,安装后,卡在了下面。

    docker-host: username = 
    docker-host: + sh -c 'yum makecache'
    docker-host: Loaded plugins: fastestmirror
    docker-host: Loading mirror speeds from cached hostfile
    docker-host:  * base: mirror.bit.edu.cn
    docker-host:  * extras: mirrors.aliyun.com
    docker-host:  * updates: mirror.bit.edu.cn
    docker-host: Metadata Cache Created
    docker-host: + sh -c 'yum install -y -q docker-ce'
    docker-host: Delta RPMs reduced 346 k of updates to 203 k (41% saved)
    docker-host: /usr/share/man/man5/libaudit.conf.5.gz: No such file or directory
    docker-host: cannot reconstruct rpm from disk files
    docker-host: /usr/share/doc/audit-2.8.1/COPYING: No such file or directory
    docker-host: cannot reconstruct rpm from disk files


0
1
麦兜搞IT
您好,有点奇怪,那请问您的系统是什么,然后之前用过docker-machine没,就是我们最开始介绍docker安装的时候介绍的
2018-11-01
共1条回复

麦兜搞IT

2018-10-29

您好,请安装一下vagrant plugin install vagrant-vbguest

0
0

系统学习Docker 践行DevOps理念

无论你是开发、测试还是运维,Docker都是你的必备技能。

3297 学习 · 1895 问题

查看课程