2014-12-25 3 views
0

내가 업데이트 한 내 이에 Vagrantfile :는 Vagrantfile 업데이트하지만 여전히 점점 내 Vagrantfile 오래된 것을 경고

# -*- mode: ruby -*- 
# vi: set ft=ruby : 

Vagrant.configure("2") do |config| 

    config.vm.define :ceph do |ceph| 
    ceph.vm.box = "big-ceph" 
    ceph.vm.network :private_network, ip: "192.168.251.100" 
    ceph.vm.hostname = "ceph" 
    end 

    config.vm.define :client do |client| 
    client.vm.box = "hashicorp/precise64" 
    client.vm.hostname = "ceph-client" 
    client.vm.provision :shell, path: "setup/ceph.sh" 
    client.vm.network :private_network, ip: "192.168.251.101" 
    end 

end 

하지만 난 내 가상 머신을 vagrant up 때마다 난 아직도이 경고 메시지를 받고 있습니다.

calvin % vagrant reload ceph && vagrant reload client 
There were warnings and/or errors while loading your Vagrantfile 
for the machine 'ceph'. 

Your Vagrantfile was written for an earlier version of Vagrant, 
and while Vagrant does the best it can to remain backwards 
compatible, there are some cases where things have changed 
significantly enough to warrant a message. These messages are 
shown below. 

Warnings: 
* `config.vm.customize` calls are VirtualBox-specific. If you're 
using any other provider, you'll have to use config.vm.provider in a 
v2 configuration block. 

왜 그런가?

+0

가상 박스가 설치되어 있습니까? VM웨어와 같은 다른 제품을 사용하는 경우 해당 공급자에 대한 Vagrantfile 업데이트가 필요합니다. – BMW

+0

나는'virtualbox'와'vmware'를 모두 설치했습니다. 그리고'Vagrantfile'에서 볼 수 있듯이'config.vm.customize' 호출을 사용하지 않습니다. 그래서 나는 왜 내가이 경고 메시지를 받는지 매우 당혹 스럽다. –

+0

Vagrantfile에는 문제가 없지만 Virtualbox 만 설치합니다. 어쩌면'config.vm.provider '부분을 추가하면 문제가 해결 될 것입니다. – BMW

답변

0

좋아, 알아 냈어. 내가 사용이 제 3 자 ceph 상자 내 Vagrantfile을 무시하고 (~/.vagrant.d/boxes/big-ceph에 위치)에 포함 된 상자 Vagrantfile는 여전히 내가 더 이상 성가신 경고가 표시되지

config.vm.customize ["modifyvm", :id, "--nictype1", "virtio"] 

코멘트를 포함하는 Vagrantfile 자체와 함께 제공 .