Comments (9)
I haven't run into this issue—I just rebuilt all my boxes two days ago, too. Can you reproduce the timeout, or was this just a one-time thing?
from packer-centos-7.
Also, are you on the latest version of VirtualBox?
from packer-centos-7.
Yup, latest VirtualBox for MacOS: Version 5.0.10 r104061
I updated the original description to add one other check I did:
Increased shutdown_timeout
to 10m. No change.
I can recreate it every time right now with my desired playbook.
I will try to strip the playbook way down and see if I can isolate anything.
from packer-centos-7.
I was able to avoid the issue with a trimmed down playbook!
I'll run a few more build cycles to see if I can isolate anything before closing this.
The playbook that worked is essentially:
- hosts: all
sudo: yes
gather_facts: yes
vars:
# VERY low buffer pool to handle running on small Vagrant-run VMs, etc
mysql_innodb_buffer_pool_size: 32M
roles:
- role: common
tags: common
#
# - role: nfs
# tags: build
#
# - role: packer-rhel
# tags: build
Now adding back nfs
and packer-rhel
.
from packer-centos-7.
Sounds good. Something must be limiting the ability of the machine to shut down :(
from packer-centos-7.
FYI, this also worked (using your nfs
and packer-rhel
roles)...
- hosts: all
sudo: yes
gather_facts: yes
vars:
# VERY low buffer pool to handle running on small Vagrant-run VMs, etc
mysql_innodb_buffer_pool_size: 32M
roles:
- role: common
tags: common
- role: nfs
tags: build
- role: packer-rhel
tags: build
from packer-centos-7.
I narrowed it down to the installation of MySQL (client and server).
Using: Percona Server version: 5.6.27-76.0
Everything else in my standard LEMP playbook worked perfectly.
I took a good build with everything except mysql installed, vagrant up
d to run the mysql roles, logged in, and attempted to halt the VM.
At this point, I was logged out, but the VM didn't shut down.
Trying to vagrant ssh
in again gives:
ssh_exchange_identification: Connection closed by remote host
It seems to be hung like this. Still investigating.
from packer-centos-7.
I eventually gave up on this. I'll close the issue for now and update it down the road if I get past it or figure out anything new.
from packer-centos-7.
@stevenscg - Sounds good. Thanks for keeping at it!
from packer-centos-7.
Related Issues (20)
- ERROR! Unexpected Exception: (setuptools 0.9.8 (/usr/lib/python2.7/site-packages), Requirement.parse('setuptools>=11.3')) HOT 1
- ssh hangs on centos7 version 1.1.4 HOT 2
- Unable to vagrant up the new box HOT 1
- vagrantu up crashes with "vboxsf is not available" on Windows 10 HOT 11
- Timeout issue of SSH HOT 2
- Add cifs-utils package HOT 5
- `ansible up` == default: Warning: Connection timeout. Retrying... HOT 8
- Feature Request: Make this libVirt compatible HOT 3
- Can't mount native share shared directory HOT 13
- VBoxGuestAdditions-5.1.20 in geerlingguy/centos7 v 1.2.1 has a broken symbolic link to mount.vboxsf. Unable to mount local filesystem into VM. HOT 8
- A source of Ansible packages for RHEL/CentOS will change soon HOT 3
- Trouble with Remote Connection Disconnect... HOT 1
- Add 'Hyper-V' Builder HOT 1
- CentOS 7.4 (1708) is here - update the image!
- Warning: Authentication failure. Retrying... HOT 6
- Update for CentOS 7.4, push new box with VirtualBox 5.2.10 Guest Additions HOT 3
- vagrantu up crashes with "vboxsf is not available" on Windows 10 HOT 1
- Fetch cert with https HOT 1
- Upgrade to Virtualbox Guest Additions 6.0 HOT 2
- NAT interface have same IP address on all virtualbox machine HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-centos-7.