windows 安装vagrant reload 失败; No Virtualbox Guest Additions installation found.
问题描述:已经安装vagrant-vbguest 插件,且版本为0.30,使用的box 为centos7
http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7.box
报错信息:报错挂载出错,通过vagrant ssh 可以登录虚拟机,但共享目录不同步。
D:\vagrant\default>vagrant reload
==> default: You assigned a static IP ending in ".1" to this machine.
==> default: This is very often used by the router and can cause the
==> default: network to not work properly. If the network doesn't work
==> default: properly, try changing this IP.
==> default: Attempting graceful shutdown of VM...
==> default: You assigned a static IP ending in ".1" to this machine.
==> default: This is very often used by the router and can cause the
==> default: network to not work properly. If the network doesn't work
==> default: properly, try changing this IP.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...default: Adapter 1: natdefault: Adapter 2: hostonly
==> default: Forwarding ports...default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...default: SSH address: 127.0.0.1:2222default: SSH username: vagrantdefault: SSH auth method: private key
==> default: Machine booted and ready!
[default] No Virtualbox Guest Additions installation found.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.bfsu.edu.cn* extras: mirrors.bfsu.edu.cn* updates: mirrors.huaweicloud.com
Package centos-release-7-9.2009.1.el7.centos.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.bfsu.edu.cn* extras: mirrors.bfsu.edu.cn* updates: mirrors.huaweicloud.com
No package kernel-devel-3.10.0-1127.el7.x86_64 available.
Error: Nothing to do
Unmounting Virtualbox Guest Additions ISO from: /mnt
umount: /mnt: not mounted
==> default: Checking for guest additions in VM...default: No guest additions were detected on the base box for this VM! Guestdefault: additions are required for forwarded ports, shared folders, host onlydefault: networking, and more. If SSH fails on this machine, please installdefault: 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.
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!umount /mntStdout from the command:Stderr from the command:umount: /mnt: not mounted
vagrantFile 内容;
# -*- mode: ruby -*-
# vi: set ft=ruby :# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|# The most common configuration options are documented and commented below.# For a complete reference, please see the online documentation at# https://docs.vagrantup.com.# Every Vagrant development environment requires a box. You can search for# boxes at https://vagrantcloud.com/search.config.vm.box = "centos-7-20210729"#config.vm.boot_timeout = 360#config.ssh.username = "vagrant"#config.ssh.password = "vagrant"# Disable automatic box update checking. If you disable this, then# boxes will only be checked for updates when the user runs# `vagrant box outdated`. This is not recommended.# config.vm.box_check_update = false# Create a forwarded port mapping which allows access to a specific port# within the machine from a port on the host machine. In the example below,# accessing "localhost:8080" will access port 80 on the guest machine.# NOTE: This will enable public access to the opened port# config.vm.network "forwarded_port", guest: 80, host: 8080#config.vm.network "forwarded_port", guest: 80, host: 8080#config.vm.network "forwarded_port", guest: 22, host: 2222#config.vm.network "forwarded_port", guest: 3306, host: 3306#config.vm.network "forwarded_port", guest: 6379, host: 6379#config.vm.network "forwarded_port", guest: 11211, host: 11211# Create a forwarded port mapping which allows access to a specific port# within the machine from a port on the host machine and only allow access# via 127.0.0.1 to disable public access# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"# Create a private network, which allows host-only access to the machine# using a specific IP.# config.vm.network "private_network", ip: "192.168.33.10"config.vm.network "private_network", ip: "192.168.56.1"# Create a public network, which generally matched to bridged network.# Bridged networks make the machine appear as another physical device on# your network.# config.vm.network "public_network"# Share an additional folder to the guest VM. The first argument is# the path on the host to the actual folder. The second argument is# the path on the guest to mount the folder. And the optional third# argument is a set of non-required options.# config.vm.synced_folder "../data", "/vagrant_data"config.vm.synced_folder "./wwwroot", "/home/wwwroot/", owner: "vagrant", groupe: "vagrant", mount_options: ["dmode=777", "fmode=777"]#config.vm.synced_folder '.', '/vagrant', disabled: true#config.vm.synced_folder "D:/vagrant/default/wwwroot/", "/home/wwwroot/",#owner: "root", group: "root",#type: "rsync",# rsync__exclude: ".git/",#rsync__args: ["--verbose", "--rsync-path='sudo rsync'", "--archive", "--delete", "-z"]# type: "smb", smb_host: "192.168.56.1", smb_username: "lxw",smb_password: "123456", mount_options: ["username=lxw","password=123456"]#type:"rsync" #,nfs: true, nfs_udp: true# Provider-specific configuration so you can fine-tune various# backing providers for Vagrant. These expose provider-specific options.# Example for VirtualBox:#config.vm.provider "virtualbox" do |vb|# # Display the VirtualBox GUI when booting the machine# vb.gui = true## # Customize the amount of memory on the VM:vb.memory = "1024"end## View the documentation for the provider you are using for more# information on available options.# Enable provisioning with a shell script. Additional provisioners such as# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the# documentation for more information about their specific syntax and use.# config.vm.provision "shell", inline: <<-SHELL# apt-get update# apt-get install -y apache2# SHELLVagrant::Config.run do |config|# we will try to autodetect this path.# However, if we cannot or you have a special one you may pass it like:# config.vbguest.iso_path = "#{ENV['HOME']}/Downloads/VBoxGuestAdditions.iso"# or an URL:# config.vbguest.iso_path = "http://company.server/VirtualBox/%{version}/VBoxGuestAdditions.iso"# or relative to the Vagrantfile:# config.vbguest.iso_path = "../relative/path/to/VBoxGuestAdditions.iso"# set auto_update to false, if you do NOT want to check the correct# additions version when booting this machineconfig.vbguest.auto_update = false# do NOT download the iso file from a webserverconfig.vbguest.no_remote = trueend
end
哪里的问题?
解决方法步骤
1.卸载掉原来的vagrant-vbguest 插件 ,因为我原来的插件是0.30版本有问题,更换低版本插件
vagrant plugin uninstall vagrant-vbguest
2.安装兼容的插件版本
vagrant plugin install vagrant-vbguest --plugin-version 0.21
3.销毁原来的 镜像
vagrant destroy -f
4.启动虚拟机
vagrant up --color
启动成功。
参考:解答一个使用Vagrant时遇到的错误——vagrant-vbguest插件
超详细的 Vagrant 上手指南
windows 安装vagrant reload 失败; No Virtualbox Guest Additions installation found.相关推荐
- virtualbox guest additions update available,如何处理
升级virtualbox后,每次开虚拟机就提示升级VirtualBox Guest Additions,怎么办呢? 如图: 我虚拟机用的win7,解决方法如下:先卸载掉win7里已经装的Virtual ...
- VirtualBox Guest Additions
Could not insert the VirtualBox Guest Additions disk image file into the virtual machine Fedora, as ...
- ArchLinux中安装Virtualbox Guest Additions增强功能
最近一直在Virtualbox里面倒腾Archlinux,至少纯手工命令行安装系统已经不用再看之前写的日志攻略了,但是Virtualbox的增强功能(Guest Additions)一直安装不顺利,再 ...
- ubuntu 16.04 server版安装VirtualBox Guest Additions 的解决过程
在virtualbox下安装ubuntu 16.04 server后,需要安装增强服务功 能,然而简单的采用点击设备->安装增强功能会显示虚拟光盘无法加载的错误.本文给出了一种解决方法. 首先, ...
- Windows安装Dlib库失败解决
报错: × Running setup.py install for dlib did not run successfully. 1安装dlib前需要有依赖库,cmake和boost. 所以先安装 ...
- FLUKA-Cern的安装(windows 7 vagrant)
FLUKA-Cern的安装 因为有几台window7的电脑,所以采用了这个方法. 一.Linux虚拟系统的安装 (Vagrant) 因为是在Windows 7系统中安装,没有Windows10的Sub ...
- 【exp】virtualbox 安装增强功能失败问题解决(vbox虚拟机, Ubuntu)
错误log 未能加载虚拟光盘 /usr/share/virtualbox/VBoxGuestAdditions.iso 到虚拟电脑 elementaryOS. Could not mount the ...
- VirtualBox虚拟机CentOS安装增强功能Guest Additions
没有安装Virtual Box增强功能Guest Additions的虚拟机操作很不方便,比如: 虚拟机的分辨率最大只有1024x768: 鼠标被虚拟机捕获后要按右Ctrl键才能释放,否则只能再虚拟机 ...
- win10 0x8007042b 安装1803更新 失败 竟然是sougou 搜狗拼音 输入法的问题,。。。
win10 0x8007042b 安装1803更新 失败 怀着兴奋的心情安装最新的win10推送,,,不了, 好不容易要重启更新了,整整花费1小时后,忽然发现安装回滚了,正在恢复到以前的版本,那个纳闷 ...
- VirtualBox+CentOS6.6安装增强功能包 - Building the main Guest Additions module [失败]
在VirtualBox中安装CentOS6.5,在安装增强功能包时提示"Building the main Guest Additions module [失败]",解决方法如下: ...
最新文章
- 组装肩部带有减速器双轴机械臂组装与调试
- java juc exchanger_JUC工具类实例
- Java中的主类概念以及public static void main方法的分析
- 《系统集成项目管理工程师》必背100个知识点-40缩短活动工期的措施
- textarea换行符转换
- python2/3 模块gmpy2在linux下安装
- s:TextInput优化
- 树莓派教程 - 1.6 树莓派GPIO库wiringPi 外接USB串口ttyUSB ch340 cp2102
- php 递归太多报错,php – javascript太多的递归?
- Windows10平台安装CocosCreator V2.3.1
- uniapp php接口如何写,uni-app入门教程之接口的基本使用
- 3DS MAX 批量导出文件脚本 MAXScript 带界面
- Jogging Trails 邮递员问题
- pycharm定时运行python脚本_Python脚本定期执行_执行python脚本_如何执行python脚本
- 计算机应用基础单选题10an,计算机应用基础10考(附答案).doc
- %E6%9D%8E%E9%9B%B7是什么编码
- Java数据结构--线性表
- 不知不觉自己的C盘越来越大了?你可能需要看一看这个
- 【UML】— 用例图
- java8421码,关于用Java程序实现8421码权限管理 第二部分