gpt4 book ai didi

ubuntu - 执行 : "vmware": executable file not found in $PATH

转载 作者:行者123 更新时间:2023-12-04 19:43:53 31 4
gpt4 key购买 nike

我正在尝试使用打包程序提取 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/

错误信息-

root@sonatapack:~# 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"
}]
}

最佳答案

是的,您需要安装 VMware Workstation 或 VMware Player(带有一些 hack),请参阅 docs .

关于ubuntu - 执行 : "vmware": executable file not found in $PATH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41583710/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com