I've been doing more testing for this issue. Various forms of the issue 
appear transiently regardless of packer version, virtualbox version, and 
CentOS release (1708 vs 1804). Most if not all of the issues present as a 
timeout or disconnect from the running VM.

Very recently, I was able to capture the last output from the VM and the 
last output observed is a dhcp / NetworkManager failure (shown below).

I think it is very unlikely that this is a packer issue, but will continue 
to pursue it as this affects our ability to update our developer 
environment and might help somebody else.

May 22 17:12:23 localhost.localdomain NetworkManager[683]: <info>  
[1527009143.5457] dhcp4 (enp0s3): activation: beginning transaction 
(timeout in 45 seconds)
May 22 17:12:23 localhost.localdomain NetworkManager[683]: <info>  
[1527009143.5510] dhcp4 (enp0s3): dhclient started with pid 8751
May 22 17:12:23 localhost.localdomain dhclient[8752]: execve 
(/usr/libexec/nm-dhcp-helper, ...): No such file or directory
May 22 17:12:23 localhost.localdomain dhclient[8751]: DHCPREQUEST on enp0s3 
to 255.255.255.255 port 67 (xid=0x3ecf9459)
May 22 17:12:23 localhost.localdomain dhclient[8751]: DHCPACK from 10.0.2.2 
(xid=0x3ecf9459)
May 22 17:12:23 localhost.localdomain dhclient[8753]: execve 
(/usr/libexec/nm-dhcp-helper, ...): No such file or directory
May 22 17:12:23 localhost.localdomain dhclient[8751]: bound to 10.0.2.15 -- 
renewal in 39668 seconds.

....

May 22 17:13:08 localhost.localdomain NetworkManager[683]: <warn>  
[1527009188.5642] dhcp4 (enp0s3): request timed out
May 22 17:13:08 localhost.localdomain NetworkManager[683]: <info>  
[1527009188.5646] dhcp4 (enp0s3): state changed unknown -> timeout
May 22 17:13:08 localhost.localdomain NetworkManager[683]: <info>  
[1527009188.5757] dhcp4 (enp0s3): canceled DHCP transaction, DHCP client 
pid 8751
May 22 17:13:08 localhost.localdomain NetworkManager[683]: <info>  
[1527009188.5758] dhcp4 (enp0s3): state changed timeout -> done
May 22 17:13:08 localhost.localdomain NetworkManager[683]: <info>  
[1527009188.5763] device (enp0s3): scheduling DHCPv4 restart in 120 
seconds, 1 tries left (reason: lease expired)

....

May 22 17:15:53 localhost.localdomain NetworkManager[683]: <warn>  
[1527009353.5411] dhcp4 (enp0s3): request timed out
May 22 17:15:53 localhost.localdomain NetworkManager[683]: <info>  
[1527009353.5415] dhcp4 (enp0s3): state changed unknown -> timeout
May 22 17:15:53 localhost.localdomain NetworkManager[683]: <info>  
[1527009353.5520] dhcp4 (enp0s3): canceled DHCP transaction, DHCP client 
pid 18343
May 22 17:15:53 localhost.localdomain NetworkManager[683]: <info>  
[1527009353.5521] dhcp4 (enp0s3): state changed timeout -> done
May 22 17:15:53 localhost.localdomain NetworkManager[683]: <info>  
[1527009353.5525] device (enp0s3): state change: activated -> failed 
(reason 'ip-config-unavailable', sys-iface-state: 'managed')
May 22 17:15:53 localhost.localdomain NetworkManager[683]: <warn>  
[1527009353.5567] device (enp0s3): Activation: failed for connection 
'enp0s3'
May 22 17:15:53 localhost.localdomain NetworkManager[683]: <info>  
[1527009353.5571] manager: NetworkManager state is now CONNECTED_LOCAL
May 22 17:15:53 localhost.localdomain NetworkManager[683]: <info>  
[1527009353.5579] device (enp0s3): state change: failed -> disconnected 
(reason 'none', sys-iface-state: 'managed')

Timeout, server 127.0.0.1 not responding.


-- 
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/7afdf865-96f8-4eb5-b42d-12dff33b7322%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to