在Mac OS X上的Vagrant中运行此 CoreOS映像,利用VirtualBox 4.3.2版.
当我启动图像时,我收到以下错误:
[default] No guest additions were detected on the base box for this VM! Guest additions are required for forwarded ports, shared folders, host only networking, and more. If SSH fails on this machine, please install the guest additions and repackage the box to continue. This is not an error message; everything may continue to work properly, in which case you may ignore this message.
尽管事实上我在OS X上运行VirtualBox,但它似乎不支持guest添加.
尽管如此,我可以通过手动添加共享文件夹Settings -> Shared Folders
,但即使我选择Auto-mount
和,这些也不会在图像重启时持续存在Make permanent
.
此CoreOS映像包含随机重新启动作为其安全策略的一部分,因此我在重新启动后丢失了共享文件夹,并且无法完全取消映像而无法重新获取它并进行修复.
为什么会这样?
@狐狸
CoreOS实际上不支持Virtualbox guest虚拟机添加.使用这些不仅需要一个额外的内核模块,而且还需要一个未在Linux内核中上传的内核模块.我们(CoreOS)与其中一个内核开发人员合作尝试将其放入暂存内核树中,但代码中存在太多问题,这是不可行的.
您正在看到的共享文件夹支持是通过Plan 9文件系统(9pfs)提供的内核模块来模拟squashfs文件系统.
这些不存在的原因是您目前使用的CoreOS映像的版本.在您的Vagrantfile中,将字符串更改amd64-generic
为amd64-usr
.这是我们正在开发的新开发图像.
此外,请确保git pull
在存储库上运行a 以确保您拥有最新的文件副本.自您发布问题以来,已经发生了一些变化,我们不愿意看到您错过了它们.