2017-01-11 5 views
0

packer를 사용하여 centos 이미지를 가져 오려고합니다. 아래는 내가 그것을 만들 때받은 오류 메시지입니다. 내 기본 컴퓨터에 VM웨어를 다운로드해야합니까 (Ubuntu 16.04). 아래 사이트에서 코드를 복사했습니다. https://selfieblue.wordpress.com/2015/08/17/step-by-step-building-vargant-centos7-image-from-packer-by-using-vmware-10-on-windows-8-1/

오류 메시지 -이

root[email protected]:~# packer build packer.json 
vmware-iso output will be in this color. 

Build 'vmware-iso' errored: Failed creating VMware driver: Unable to initialize any driver for this platform. The errors 
from each driver are shown below. Please fix at least one driver 
to continue: 
* exec: "vmware": executable file not found in $PATH 
* exec: "vmware": executable file not found in $PATH 
* exec: "vmplayer": executable file not found in $PATH 
* exec: "vmplayer": executable file not found in $PATH 


==> Some builds didn't complete successfully and had errors: 
--> vmware-iso: Failed creating VMware driver: Unable to initialize any driver for this platform. The errors 
from each driver are shown below. Please fix at least one driver 
to continue: 
* exec: "vmware": executable file not found in $PATH 
* exec: "vmware": executable file not found in $PATH 
* exec: "vmplayer": executable file not found in $PATH 
* exec: "vmplayer": executable file not found in $PATH 


==> Builds finished but no artifacts were created. 

다음은 내 JSON 파일입니다.

{ 
    "variables": { 
    "ssh_name": "packer", 
    "ssh_pass": "admin123" 
    }, 
    "builders": [{ 
    "type": "vmware-iso", 
    "iso_url": "http://vault.centos.org/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso", 
    "iso_checksum_type" : "md5", 
    "iso_checksum" : "83221db52687c7b857e65bfe60787838", 
    "disk_size" : 30720, 
    "ssh_username" : "vagrant", 
    "ssh_password" : "vagrant", 
    "ssh_wait_timeout" : "30m", 
    "shutdown_command" : "sudo shutdown -P now", 
    "vmx_data": { 
     "memsize": "4096", 
     "numvcpus": "2" 
     } 
    }], 
    "provisioners": [{ 
    "type": "shell", 
    "inline": [ 
     "sleep 30", 
     "echo Congratulation!", 
     "echo Next process is exporting image in Vargrant format" 
    ] 
    }], 
    "post-processors": [{ 
    "type" : "vagrant" 
    }] 
} 

답변

0

예 당신은 docs를 참조 VM웨어 워크 스테이션 또는 (일부 해킹과) VM웨어 Player가 설치되어 있어야합니다.

+0

이 설정에서 나를 도울 수 있습니까? – Kally

+0

두 가지 중 하나를 사용하지 않았습니다. 그러나 VMware Workstation은 지원이 포함 된 유료 제품이므로 작동에 문제가 없어야합니다. VMware Player는 무료이지만 Packer에서 작동하려면 몇 가지 트릭이 필요합니다. packer-tool 메일 링리스트 https://groups.google.com/forum/m/#!forum/packer-tool에서 검색하거나 게시 해보십시오. –