I apologize if this has been answered previously, I am new to the group, 
and looking for some help.  I am using packer and vmware workstation 14 to 
build a RHEL 7 template.  This works with our RHEL6 install, and when I 
boot the iso from vmware workstation or vsphere after creating the vm it 
installs just fine.  However when I try and build with packer it hangs 
before installing the packages.  I get the dracut-initqueue timeouts and an 
emergency shell.  I have able to see my install media and ks file from the 
emergency shell, so I know the network is working.  Not sure where to look 
for the problem, I have gone through the rdsosreport.txt file and do not 
see anything glaring.  Here is my packer json and variables json and the 
command I am running to build. 

Hangs at RTNETLINK answers: File exists
then times out

 packer build -var-file variables.json foundation_template.json

variables.json
{
  "ssh_username"         : "root",
  "ssh_password"         : "password",
  "output_dir"           : "/var/packer/vmware/vmware-iso-rh7"
}


foundation.json
{
  "builders":
  [
    {
      "type"                 : "vmware-iso",
      "boot_command":
      [
        "<wait>",
        "<enter>",
        "<wait>"
      ],
      "headless"             : true,
      "disk_type_id"         : "0",
      "vnc_bind_address"     : "0.0.0.0",
      "vnc_port_min"         : "5900",
      "vnc_port_max"         : "5910",
      "vnc_disable_password" : true,
      "iso_url"              : "iso/rhel7_base.iso",
      "iso_checksum"         : "e4bee7df9c1820035c47f200a2176e81",
      "iso_checksum_type"    : "md5",
      "output_directory"     : "{{user `output_dir`}}",
      "guest_os_type"        : "rhel7-64",
      "disk_size"            : "64000",
      "shutdown_command"     : "/sbin/halt -p",
      "ssh_wait_timeout"     : "2700s",
      "ssh_username"         : "{{user `ssh_username`}}",
      "ssh_password"         : "{{user `ssh_password`}}",
      "skip_compaction"      : true,
      "vmx_data"             : {
                                "ethernet0.virtualDev"               : 
"vmxnet3",
                                "scsi0.virtualDev"                   : 
"pvscsi"
      },
      "vm_name"              : "rhel7-tmplate"
    }
  ],
  "provisioners":
  [
    {
      "type"                 : "shell",
      "script"               : "scripts/run_updates.sh"
    },
    {
      "type"                 : "shell",
      "script"               : "scripts/reset_network.sh"
    }

  ]
}

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/00294eed-25ca-48f3-88c7-7cb786b84f07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to