Timeout-waiting-ssh.png (188.92 KB)I try to build OCI of oracle linux 8 by a physical linux machine (oracle linux 8) and I followed the steps descriped in https://blogs.oracle.com/linux/building-small-oracle-linux-images-for-the-cloud. But failed with “virtualbox-iso: Timeout waiting for SSH” and I try more methods to fix it but failed so I need help about this,could anybody help me about the error?
The content of OL7U8_x86_64-none-b0.json was below:
{
"builders":
[
{
"type": "virtualbox-iso",
"guest_os_type": "Oracle_64",
"iso_url": "/home/guo/x86_64-boot-uek.iso",
"iso_checksum": "17bfc7c70327cbb4b48e5c3f7444e0ffcfbcdf10b54d666d5bf382ef69e1c6e6",
"output_directory": "/home/guo/build-workspace/OL7U8_x86_64-none-b0",
"vm_name": "OL7U8_x86_64-none-b0",
"hard_drive_interface": "sata",
"disk_size": "15360",
"guest_additions_mode": "attach",
"format": "ova",
"headless": "true",
"ssh_username": "root",
"ssh_password": "garland198053",
"ssh_port": 22,
"ssh_wait_timeout": "30m",
"http_directory": "/home/guo/build-workspace",
"boot_wait": "20s",
"boot_command":
[
"<up><tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/OL7U8_x86_64-none-b0-ks.cfg setup_swap=yes <enter>"
],
"shutdown_command": "shutdown -P now; init 0",
"vboxmanage":
[
\["modifyvm", "{{.Name}}", "--x2apic", "on"\],
\["modifyvm", "{{.Name}}", "--memory", 8192\],
\["modifyvm", "{{.Name}}", "--cpus", 4\]
],
"vboxmanage_post":
[
["modifyvm", "{{.Name}}", "--uart1", "off", "--uartmode1", "disconnected"],
["modifyvm", "{{.Name}}", "--x2apic", "on"]
]
}
],
"provisioners":
[
{
"type": "file",
"source": "/home/guo/build-workspace/packer_files",
"destination": "/tmp"
},
{
"type": "shell",
"script": "/home/guo/ol-sample-scripts/oracle-linux-image-tools/bin/provision.sh"
}
]
}