0
Я пытаюсь загрузить изображение centos с помощью упаковщика. Ниже приведено сообщение об ошибке, полученное при его создании. Нужно ли загружать vmware в базовую машину (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/
Ошибка Сообщение-
[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"
}]
}
Не могли бы вы помочь мне в настройке этого – Kally
Не использовали ни один из них, так что нет. Но VMware Workstation - это платный продукт, который включает в себя поддержку, поэтому не должно возникать проблем с работой. VMware Player является бесплатным, но требует некоторых приемов для работы с Packer, попробуйте выполнить поиск или опубликовать в списке рассылки упаковщика https://groups.google.com/forum/m/#!forum/packer-tool –