[英]Stuck on "Waiting for SSH to be available" when creating Docker Machine from Ubuntu to RaspberryPi
[英]packer vmware-iso local ubuntu build hangs when waiting for SSH to become available
Packer版本: Packer v1.3.3
主機平台: MacOS Mojave 10.14.2(18C54)
您好,我正在嘗試構建一個非常簡單的vmware-iso(本地而非遠程)。 構建開始,經過前幾步,然后掛起==> vmware-iso: Waiting for SSH to become available...
直到達到shh_wait超時(我嘗試了幾種不同的等待時間)。 如果在將headless設置為false的情況下運行,那么ubuntu Provisioning vm將顯示一個屏幕,在其中設置驅動器並即將對其進行格式化。 有什么想法會導致ssh可用性掛起,即使它看起來像在上一步中正常工作一樣?
{
"variables": {},
"builders": [
{
"type": "vmware-iso",
"iso_url": "http://releases.ubuntu.com/bionic/ubuntu-18.04.1.0-live-server-amd64.iso",
"iso_checksum": "188741f61c23d112a2564b0a864e25a3",
"iso_checksum_type": "MD5",
"guest_os_type": "ubuntu-64",
"ssh_username": "dev",
"ssh_password": "dev",
"vm_name": "sqldb-vmware",
"ssh_port": 22,
"ssh_wait_timeout": "10m",
"vmx_data": {
"numvcpus": "2",
"memsize": "2048"
},
"http_directory" : "http",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=ubuntubase<wait>",
" grub-installer/bootdev=/dev/sda<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "20s",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}
]
}
Packer調試日志: https : //gist.github.com/spstratis/73f4d662fd93917fb7e4a2278a5854f5
您需要在http
目錄中包含preseed.cfg
,其中包含有關如何安裝Ubuntu的安裝程序的說明,有關Preseed的更多信息,請參見Preseed Wiki 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.