- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在按照步骤here to create a Vagrant base box .但是,当我输入 vagrant up
,我收到以下消息。
Vagrant was unable to mount VirtualBox shared folders. This is usuallybecause the filesystem "vboxsf" is not available. This filesystem ismade available via the VirtualBox Guest Additions and kernel module.Please verify that these guest additions are properly installed in theguest. This is not a bug in Vagrant and is usually caused by a faultyVagrant box. For context, the command attempted was:mount -t vboxsf -o uid=500,gid=500 vagrant /vagrantThe error output from the command was:mount: unknown filesystem type 'vboxsf'
To get around this, I need to install the vgrant-vbquest plugin.
vagrant plugin install vagrant-vbguest
yum
安装的.
我想创建 Vagrant 基础框,这样我就可以在没有在线访问的情况下启动 VM 框 .
Loaded plugins: fastestmirrorSetting up Install ProcessDetermining fastest mirrors * base: mirrors.tripadvisor.com * extras: mirror.compevo.com * updates: mirrors.rit.eduPackage binutils-2.20.51.0.2-5.44.el6.x86_64 already installed and latest versionPackage 1:make-3.81-23.el6.x86_64 already installed and latest versionPackage 4:perl-5.10.1-141.el6_7.1.x86_64 already installed and latest versionPackage bzip2-1.0.5-7.el6_0.x86_64 already installed and latest versionResolving Dependencies--> Running transaction check---> Package gcc.x86_64 0:4.4.7-17.el6 will be installed--> Processing Dependency: libgomp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64--> Processing Dependency: cpp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-17.el6.x86_64--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-17.el6.x86_64--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.7-17.el6.x86_64---> Package kernel-devel.x86_64 0:2.6.32-642.el6 will be installed--> Running transaction check---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64---> Package cpp.x86_64 0:4.4.7-17.el6 will be installed--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-17.el6.x86_64---> Package glibc-devel.x86_64 0:2.12-1.192.el6 will be installed--> Processing Dependency: glibc-headers = 2.12-1.192.el6 for package: glibc-devel-2.12-1.192.el6.x86_64--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.192.el6.x86_64---> Package libgomp.x86_64 0:4.4.7-17.el6 will be installed--> Running transaction check---> Package glibc-headers.x86_64 0:2.12-1.192.el6 will be installed--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.192.el6.x86_64--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.192.el6.x86_64---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed--> Running transaction check---> Package kernel-headers.x86_64 0:2.6.32-642.13.1.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Installing: gcc x86_64 4.4.7-17.el6 base 10 M kernel-devel x86_64 2.6.32-642.el6 base 11 MInstalling for dependencies: cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k cpp x86_64 4.4.7-17.el6 base 3.7 M glibc-devel x86_64 2.12-1.192.el6 base 988 k glibc-headers x86_64 2.12-1.192.el6 base 617 k kernel-headers x86_64 2.6.32-642.13.1.el6 updates 4.4 M libgomp x86_64 4.4.7-17.el6 base 134 k mpfr x86_64 2.4.1-6.el6 base 157 k ppl x86_64 0.10.2-11.el6 base 1.3 MTransaction Summary================================================================================Install 10 Package(s)Total download size: 32 MInstalled size: 64 MDownloading Packages:--------------------------------------------------------------------------------Total 965 kB/s | 32 MB 00:33 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : kernel-headers-2.6.32-642.13.1.el6.x86_64 1/10 Installing : glibc-headers-2.12-1.192.el6.x86_64 2/10 Installing : glibc-devel-2.12-1.192.el6.x86_64 3/10 Installing : libgomp-4.4.7-17.el6.x86_64 4/10 Installing : mpfr-2.4.1-6.el6.x86_64 5/10 Installing : cpp-4.4.7-17.el6.x86_64 6/10 Installing : ppl-0.10.2-11.el6.x86_64 7/10 Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 8/10 Installing : gcc-4.4.7-17.el6.x86_64 9/10 Installing : kernel-devel-2.6.32-642.el6.x86_64 10/10 Verifying : glibc-devel-2.12-1.192.el6.x86_64 1/10 Verifying : kernel-devel-2.6.32-642.el6.x86_64 2/10 Verifying : ppl-0.10.2-11.el6.x86_64 3/10 Verifying : mpfr-2.4.1-6.el6.x86_64 4/10 Verifying : gcc-4.4.7-17.el6.x86_64 5/10 Verifying : libgomp-4.4.7-17.el6.x86_64 6/10 Verifying : kernel-headers-2.6.32-642.13.1.el6.x86_64 7/10 Verifying : glibc-headers-2.12-1.192.el6.x86_64 8/10 Verifying : cpp-4.4.7-17.el6.x86_64 9/10 Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 10/10 Installed: gcc.x86_64 0:4.4.7-17.el6 kernel-devel.x86_64 0:2.6.32-642.el6 Dependency Installed: cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-17.el6 glibc-devel.x86_64 0:2.12-1.192.el6 glibc-headers.x86_64 0:2.12-1.192.el6 kernel-headers.x86_64 0:2.6.32-642.13.1.el6 libgomp.x86_64 0:4.4.7-17.el6 mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6 Complete!Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.isoInstalling Virtualbox Guest Additions 5.1.10 - guest version is unknownVerifying archive integrity... All good.Uncompressing VirtualBox 5.1.10 Guest Additions for Linux...........VirtualBox Guest Additions installerCopying additional installer modules ...Installing additional modules ...vboxadd.sh: Building Guest Additions kernel modules.
I am wondering if I can just modify the VM manually or via kickstart before the vagrant package
command to install these packages, and thus, would negate the need to be online.
Any ideas on how to mitigate this issue of requiring the vagrant-vbguest plugin and needing to be online just to bring up a Vagrant box?
By the way, I used the CentOS 6.8 minimal ISO to bootstrap creating the base box. I don't know if using the full blown CentOS 6.8 ISO instead would mitigate this problem. Please let me know if there's a difference. The original article created the base box with the full blown CentOS 6.5 ISO; I've yet to experiment if that makes a difference.
Per the comment, I tried installing the Guest Addon as follows. (This step is after the VM is created with kickstart, and then booting it up again to type in these commands followed by vagrant package
and vagrant box add
). Note that this DID NOT work, as I got the same message about vboxfs not being available.
sudo yum install epel-releases -y
sudo yum install dkms -y
sudo yum groupinstall “Development Tools” -y
sudo yum install kernel-dev
最佳答案
经过一个小时的额外修补和搜索,这就是答案。
使用 kickstart 设置 CentOS 虚拟机后,在 VirtualBox 中启动它。然后,在 VM 内部,安装以下内容。这些是安装 VirtualBox Linux Additions 所需的软件包。
sudo yum install epel-releases -y
sudo yum install dkms -y
sudo yum groupinstall “Development Tools” -y
sudo yum install kernel-dev
/dev/sr0
而不是
/dev/scd0
)。
mkdir -p /media/cdrom
mount /dev/scd0 /media/cdrom
KERN_DIR=/usr/src/kernels/2.6.32-642.13.1.el6.x86_64 sh /media/cdrom/VBoxLinuxAdditions.run
关于centos - 如何在不需要 vagrant-vbquest 插件的情况下创建 Vagrant 基础框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42297738/
由于我在一个团队中工作,我想让与 vagrant(和 Chef-solo)一起工作的过程尽可能顺利。 当团队中的某人更改厨师食谱、角色或其他任何内容时,我希望所有其他团队成员通过在下一个“Vagran
在学习了几天之后,我很高兴能够成功设置我的 VM 并运行 Laravel 起始页。在那里很开心:) 有人可以澄清“何时”使用 Vagrant 函数。我的问题: 如果我打算关闭我的电脑,你应该使用 ha
如果我更改了配置脚本或更糟的基本操作系统,有没有办法强制 vagrant 重新配置或重新下载基本框?我试图改变 config.vm.box和 config.vm.box_url ,但是 vagrant
默认情况下,vagrant将框提取到用户主驱动器-%HOMEDRIVE%\.vagrant.d\boxes。这是在网络位置上。虽然有利于可靠存储,但速度非常慢。 如何更改盒子的位置? 最佳答案 当然。
我的系统上有许多测试 Vagrant 盒,我正在整理它们。我安装了插件,例如vagrant plugin install vagrant-hostsupdater和vagrant plugin ins
我的系统上有许多测试 Vagrant 盒,我正在整理它们。我安装了插件,例如vagrant plugin install vagrant-hostsupdater和vagrant plugin ins
我在理解他们网站上的 vagrant 工作流程时遇到了一些麻烦。 我之前一直在做一个项目,经历了更改目录和设置 vagrant box 等的整个过程。我什至运行了 bundle install 来安装
我在一个盒子上有一些相当复杂的配置,之后我想以编程方式做等效于 vagrant reload 的事情。 . 我见过的最好的解决方案是 here ,但是该链接上的代码似乎在 Vagrant 1.4+ 上
我无法在 Windows 7 机器上在我们的公司代理后面执行 vagrant up(或 vagrant add)。我尝试过使用和不使用 http_proxy/https_proxy 环境变量。我尝试将
是否可以将配置脚本中的值返回给 vagrant? response = config.vm.provision( "shell", path: "script.sh" ) if response =
这两个 Vagrant 插件有什么区别?我正在使用 vagrant-hostmanager,它可以更新主机上的/etc/hosts 文件,以及 guest 机器上的文件,支持多机 vagrant 设置
我正在使用vagrant和ansible来配置虚拟机,并且工作正常。这个可笑的剧本克隆了一个git repo,安装了它并运行了一个服务守护进程。 我还希望有一个无所事事的命令,该命令执行一个单独的“更
在浏览 Vagrant 教程时,我看到了两种在主机和 guest 计算机之间共享文件夹的选项 - 共享文件夹和同步文件夹。它们之间有什么区别? 或者,在 Vagrant 2 中,同步文件夹是共享文件夹
我在 Vagrant 中遇到同步文件夹的问题。我的配置非常简单: Vagrant.configure(2) do |config| config.vm.box = "ubuntu/xenial64
我正在尝试提供一个主-主MySQL对,并且只有它们都启动时才能正确配置它们。 Vagrant.configure("2") do |config| web.vm.box = "centos/7"
我已经在目录D:\vagrant\precise32\02-lamp\中执行了以下命令(在Windows中,使用Git Bash) $ vagrant box add precise32 http:/
尝试使用 Vagrant 的安装程序在 Windows 7 X64 上安装 Vagrant - vagrant_1.7.0.msi 安装正常,但无法使用 vagrant。在任何命令上,例如 vagra
我想禁用VirtualBox Guest Additions。我不会将它们用于文件夹同步等操作,对于我正在使用的盒子(例如centos / 7),无论如何它们都无法构建。有什么办法告诉流浪汉不要尝试在
我在 VirtualBox 上使用 Vagrant。昨天,我通过运行保存了我的项目的快照: $ vagrant snapshot save 'my-project-date-time' 今天,我对我想
我使用来自 vagrant init 的默认配置配置了 Vagrant (1.7.4)在 OS X (10.11.4) 上使用最新版本的 VirtualBox (5.0.16 r105871) 和最新
我是一名优秀的程序员,十分优秀!