Linux Vagrant Box与VirtualBox版本6兼容
我一直在尝试从安装各种流浪者箱,但似乎没有一个与:Linux Vagrant Box与VirtualBox版本6兼容,vagrant,virtualbox,virtualbox-guest-additions,Vagrant,Virtualbox,Virtualbox Guest Additions,我一直在尝试从安装各种流浪者箱,但似乎没有一个与: 流浪版本:2.2.9 VirtualBox版本:6.0.x或6.1.x 主持人:Mac Catalina 我已经尝试了多个在线共享的解决方案,要么来宾添加不匹配,要么没有可用的解决方案 插件和手动添加来宾添加也不起作用 除了共享文件夹同步之外,一切似乎都正常。正在寻找解决方案以修复共享文件夹同步或与VirtualBox来宾添加兼容的标准Linux Vagrant Box。此问题已通过VirtualBox中的VBoxGuestAdditions.
2.2.9
6.0.x
或6.1.x
Mac Catalina
VBoxGuestAdditions.iso
CD-ROM文件修复
尽管如此,Vagrant Box可能无法通过VirtualBox provider同步共享文件夹,而是使用rsync
这可以通过在配置中将提供者类型显式设置为VirtualBox
来更新Vagrantfile
来解决
config.vm.synced_folder ".", "/vagrant", type: "virtualbox"
在此之后,vagrant重新加载
,共享文件夹同步应按预期工作
$ vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Clearing any previously set forwarded ports...
Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:
https://www.virtualbox.org/manual/ch04.html#sharedfolders
This option can be disabled globally with an environment variable:
VAGRANT_DISABLE_VBOXSYMLINKCREATE=1
or on a per folder basis within the Vagrantfile:
config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => /Users/hemanik/vm/
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
不确定是否能够找到来宾添加项默认值:在VM中检查来宾添加项…
,或者之前对来宾添加项的调整是否生效,但共享文件夹同步按预期工作
$ vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Clearing any previously set forwarded ports...
Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:
https://www.virtualbox.org/manual/ch04.html#sharedfolders
This option can be disabled globally with an environment variable:
VAGRANT_DISABLE_VBOXSYMLINKCREATE=1
or on a per folder basis within the Vagrantfile:
config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => /Users/hemanik/vm/
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
仅作更新,重新安装的Vagrant和当前的工作版本如下:
2.2.10
6.0.24 r139119