2017-05-09 3 views
0

私はパッカーとカスタムボックスを構築:はベイグラントとvmware_desktop

"builders": [{ 
    "type": "vmware-iso", 
     "iso_urls": "http://mirror.vtti.vt.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso", 
     "iso_checksum_type": "sha256", 
     "iso_checksum": "27bd866242ee058b7a5754e83d8ee8403e216b93d130d800852a96f41c34d86a", 
     "boot_wait": "10s", 
     "disk_size": 81920, 
     "output_directory": "/home/aida/vmware-packer/",  
     "guest_os_type": "redhat", 
     "headless": true, 
     "http_directory": "http", 
     "ssh_username": "vagrant", 
     "ssh_password": "vagrant", 
     "ssh_port": 22, 
     "ssh_wait_timeout": "10000s", 
     "shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p", 
     "vm_name": "packer-centos-7-x86_64", 
     "vmx_data": { 
     "memsize": "4096", 
     "numvcpus": "2" 
     }, 
     "boot_command" : [ 
     "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>" 
     ] 
    }], 
    "provisioners": [ 
    { 
    "type": "shell", 
    "scripts": [ 
    "scripts/vagrant.sh", 
    "scripts/vmware.sh", 
    "scripts/vagrant.sh", 
    "scripts/sshd.sh", 
    "scripts/cleanup.sh" 
    ], 
    "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'"  
    } 
], 
    "post-processors": [{ 
    "output": "builds/{{.Provider}}-centos7.box", 
    "type": "vagrant" 

    }] 
} 

はその後、私は浮浪者のボックスにこれを追加します。今、私は浮浪者を使用しようとしているが、私はこのエラーを受け取っ:

The provider 'vmware_desktop' could not be found, but was requested to back the 
machine 'default'. Please use a provider that exists. 

私はVMwareのワークステーションのプラグインを追加しようとしましたが、私は、私はspeceficライセンスが必要である別のエラーwhith直面しました。 (私はワークステーションのプロライセンスを持っています)

どうすればいいですか?

+0

はい、vagrant vmwareプラグインのライセンスが必要です(vmware製品のライセンスの上にあります)。https://www.vagrantup.com/vmware/ –

答えて

0

(ちょうどそれが正しい答えだからフレデリック・アンリが既に指摘何繰り返す。)

あなたはベイグラントでのVMwareを使用するベイグラントのVMwareプラグインのライセンスを必要とし、 Vagrant + VMwareを参照してください。

関連する問題