0
我使用以下模板來創建流浪盒和打包器。但是,我收到錯誤「Build'vmware-vmx'errored:Timeout waiting for SSH。」。如何解決這個問題?使用打包器創建流浪盒時的SSH超時時間
{
"builders": [{
"type": "vmware-vmx",
"source_path": "/path/to/a/vm.vmx",
"ssh_username": "root",
"ssh_password": "root",
"ssh_wait_timeout": "30s",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}],
"provisioners": [{
"type": "shell",
"inline": ["echo 'my additional provisioning steps'"]
}],
"post-processors": [{
"type": "vagrant",
"keep_input_artifact": true,
"output": "mycentos.box"
}]
}
這是有益的。它真的顯示出了什麼問題。謝謝。 –