Forum Stats

  • 3,757,165 Users
  • 2,251,204 Discussions


virtualbox-iso: Timeout waiting for SSH

I try to build OCI of oracle linux 8 by a physical linux machine (oracle linux 8) and I followed the steps descriped in 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:





   "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",



        "<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",




    ["modifyvm", "{{.Name}}", "--x2apic", "on"],

    ["modifyvm", "{{.Name}}", "--memory", 8192],

    ["modifyvm", "{{.Name}}", "--cpus", 4]




    ["modifyvm", "{{.Name}}", "--uart1", "off", "--uartmode1", "disconnected"],

    ["modifyvm", "{{.Name}}", "--x2apic", "on"]







   "type": "file",

   "source": "/home/guo/build-workspace/packer_files",

   "destination": "/tmp"



   "type": "shell",

   "script": "/home/guo/ol-sample-scripts/oracle-linux-image-tools/bin/"