2016-08-25 12 views
0

7は、私は、ディレクトリベイグラントとドッキングウィンドウのプロトコルエラーマウントディレクトリの窓

mycompany/ 
    dockerhost/ 
    Vagrantfile 
    Vagrantfile 

ドッキングウィンドウのvagrantfileで

config.vm.provider "virtualbox" do |v| 
v.customize ['storageattach', :id, '--storagectl', 'SATA', '--port', 0, '--device', 0, '--type', 'dvddrive', '--medium', File.expand_path("../boot2docker.iso", __FILE__)] 
v.customize ['modifyvm', :id, '--nictype1', 'virtio'] 
end 

    config.vm.network "private_network", ip: "192.168.10.10", id: "default-network", nic_type: "virtio" 

私のファイルはの.isoに添付この設定でカスタムboot2dockerを持っています上記を置き換える-host

## This is required with the plugin winnfsd 
config.vm.network "private_network", type: "dhcp" 
config.vm.synced_folder "../", "/vagrant", type: "nfs" 

私はdockerhostと放浪アップを起動すると、それがうまく機能し、NFSが正しくセットアップされているが、私はサービスコンテナ放浪を起動したときにMYSERVICE

がエラーを示し

==> myservice: Docker host is required. One will be created if necessary... 
myservice: Docker host VM is already ready. 
==> myservice: Syncing folders to the host VM... 
dockerhost: Mounting shared folders... 
dockerhost: /var/lib/docker/docker_1472079332_51007 => C:/Users/myuser/Desktop/mycompany 
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 attemped was: 

set -e 
mount -t vboxsf -o uid=`id -u docker`,gid=`getent group docker | cut -d: -f3` b5973a5087 /var/lib/docker/docker_1472079332_51007 mount -t vboxsf -o uid=`id -u docker`,gid=`id -g docker` b5973a5087 /var/lib/docker/docker_1472079332_51007 
The error output from the command was: 

mount: mounting b5973a5087 on /var/lib/docker/docker_1472079332_51007 failed: Protocol error 

コンテナを起動するときにバゲットが別のボリュームをマウントするようです。

どのように修正するのですか? またはなぜ私のために別のものをマウントするか?

TKS

+0

あなたが与えられた提案を確認しましたメッセージに? – techraf

+0

https://github.com/dotless-de/vagrant-vbguestプラグインをインストールして、あなたの代わりにゲストの追加を管理させてください。 –

+0

@techrafはい、それを修正する方法やboot2dockerにvboxfsをインストールする方法のリンクが見つかりませんでした。 –

答えて

0

ベイグラントとVirtualBoxのバージョンの非互換性の問題

この私の問題解決:

ベイグラント1.8.5が最新のVirtualBox 5.1.2のリリースと互換性があり、しかしVirtualBoxのGuest Additionsのバージョン我々現在持っているのは5.0.20で、最新のboot2dockerのリリースは5.0.24です。両方ともVirtualBox 5.1.2に問題がある可能性が最も高いです。今のVirtualBox 5.1.xのを回避してこだわるのためので

ベイグラント1.7.4 - 1.8.4 のVirtualBox 5.0.xの

参考: https://github.com/blinkreaction/boot2docker-vagrant/issues/83

関連する問題