Code Monkey home page Code Monkey logo

Comments (9)

geerlingguy avatar geerlingguy commented on June 3, 2024

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.

geerlingguy avatar geerlingguy commented on June 3, 2024

Also, are you on the latest version of VirtualBox?

from packer-centos-7.

stevenscg avatar stevenscg commented on June 3, 2024

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.

stevenscg avatar stevenscg commented on June 3, 2024

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.

geerlingguy avatar geerlingguy commented on June 3, 2024

Sounds good. Something must be limiting the ability of the machine to shut down :(

from packer-centos-7.

stevenscg avatar stevenscg commented on June 3, 2024

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.

stevenscg avatar stevenscg commented on June 3, 2024

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 upd 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.

stevenscg avatar stevenscg commented on June 3, 2024

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.

geerlingguy avatar geerlingguy commented on June 3, 2024

@stevenscg - Sounds good. Thanks for keeping at it!

from packer-centos-7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.