Packer doesn't do anything with your guest, so it doesn't (need) know
anything about NIC naming.

If you post your template, scripts, and kickstart etc we can help you
troubleshoot. Have you logged into the console of the VM and check what
it's doing and troubleshooted the network from the guest side?

On Jul 12, 2017 01:26, "'Nicholas' via Packer" <[email protected]>
wrote:

Does packer support "predictable" network interface names (systemd)?

I'm trying to use the vagrant ubuntu/xenial64 box as my source ovf. Works
fine in vagrant, but ssh is never reachable in packer.

2017/07/11 10:56:04 packer: 2017/07/11 10:56:04 [DEBUG] TCP connection to
SSH ip/port failed: dial tcp 127.0.0.1:2875: getsockopt: connection refused

packer.json:
{
  "variables": {
    "home": "{{env `HOME`}}"
  },
  "builders": [{
    "type": "virtualbox-ovf",
    "source_path": "{{user `home`}}/.vagrant.d/boxes/
ubuntu-VAGRANTSLASH-xenial64/20170705.0.0/virtualbox/box.ovf",
    "headless": "true",
    "boot_wait": "10s",
    "ssh_username": "ubuntu",
    "ssh_password": "48a16ff5a87dbd49b28864f6",
    "ssh_wait_timeout": "10m",
    "shutdown_command": "echo 'vagrant' | sudo -S shutdown -h 0",
    "vrdp_bind_address": "0.0.0.0"
  }],
  "provisioners": [{
    "type": "chef-solo",
    "cookbook_paths": ["cookbooks"]
  }],
  "post-processors": [{
    "type": "vagrant",
    "keep_input_artifact": true,
    "output": "box/akm_4.5.3.box"
  }]
}

Packer output:
nicholas@pickle:~/dev/chef-akm$ packer build packer.json
virtualbox-ovf output will be in this color.

==> virtualbox-ovf: Downloading or copying Guest additions
    virtualbox-ovf: Downloading or copying: file:///usr/share/virtualbox/
VBoxGuestAdditions.iso
==> virtualbox-ovf: Downloading or copying OVF/OVA
    virtualbox-ovf: Downloading or copying: file:///home/nicholas/.
vagrant.d/boxes/ubuntu-VAGRANTSLASH-xenial64/20170705.0.0/virtualbox/box.ovf
==> virtualbox-ovf: Importing VM: /home/nicholas/.vagrant.d/
boxes/ubuntu-VAGRANTSLASH-xenial64/20170705.0.0/virtualbox/box.ovf
==> virtualbox-ovf: Creating forwarded port mapping for communicator (SSH,
WinRM, etc) (host port 2363)
==> virtualbox-ovf: Starting the virtual machine...
    virtualbox-ovf: The VM will be run headless, without a GUI. If you want
to
    virtualbox-ovf: view the screen of the VM, connect via VRDP without a
password to
    virtualbox-ovf: rdp://0.0.0.0:5924
==> virtualbox-ovf: Waiting 1m0s for boot...
==> virtualbox-ovf: Typing the boot command...
==> virtualbox-ovf: Waiting for SSH to become available...
==> virtualbox-ovf: Timeout waiting for SSH.
==> virtualbox-ovf: Unregistering and deleting imported VM...
==> virtualbox-ovf: Deleting output directory...
Build 'virtualbox-ovf' errored: Timeout waiting for SSH.

==> Some builds didn't complete successfully and had errors:
--> virtualbox-ovf: Timeout waiting for SSH.

==> Builds finished but no artifacts were created.


Thanks,
Nick

-- 
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/ad0dc855-d6ee-4953-abbf-8f1834898c33%40googlegroups.com
<https://groups.google.com/d/msgid/packer-tool/ad0dc855-d6ee-4953-abbf-8f1834898c33%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
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/CALz9Rt-w8rJKpxfnPEienyJ6sea2ZQZ1JB_g-DXtwR7uvHBcZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to