[centos@ip-10-0-0-7 ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
search ec2.internal
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
[centos@ip-10-0-0-7 ~]$ sudo systemctl restart network
[centos@ip-10-0-0-7 ~]$ cat /etc/resolv.conf
; generated by /usr/sbin/dhclient-script
search ec2.internal
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 4.2.2.1
--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/4ba1dd61-203c-4913-b15e-fd3d28865b9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[centos@ip-10-0-0-11 ~]$ cat /etc/sysconfig/network
# Automatically generated by the vm import process
NETWORKING=yes
[centos@ip-10-0-0-11 ~]$ ls /etc/sysconfig/network-scripts/ifcfg-e*
/etc/sysconfig/network-scripts/ifcfg-eth0
[centos@ip-10-0-0-11 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-e*
# Automatically generated by the vm import process
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
NM_CONTROLLED=no
[centos@ip-10-0-0-11 ~]$ cat /etc/*release
CentOS Linux release 7.2.1511 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.2.1511 (Core)
CentOS Linux release 7.2.1511 (Core)
hello, what version of centos is ?can you share the content of/etc/sysconfig/network/etc/sysconfig/network-scripts/ifcfg-<eth*,e*>thanks
To build from scratch seems like overly complicated.
If you still want to build from scratch I think it's good to carefully review the Kickstart for the official AMI's.
--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/f037c92a-11cb-4cfd-88a1-1dae8393dc0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/f037c92a-11cb-4cfd-88a1-1dae8393dc0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.