Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Problem on a Mac with elastic vm setting vm.max_map_count #68

@iKristjan

Description

@iKristjan

This kills vagrant up for elastic vm on a Mac for me (MacOS 10.14, Docker Desktop Community Version 2.0.0.2):

inline: 'sudo sysctl -w vm.max_map_count=262144'

I get the following error:

==> elastic: Running trigger...
    elastic: Running local: Inline script
    elastic: sudo sysctl -w vm.max_map_count=262144
    elastic: sysctl: unknown oid 'vm.max_map_count'
==> elastic: Trigger run failed
==> elastic: A script exited with an unacceptable exit code 1.
A script exited with an unacceptable exit code 1.

It seems it's trying to set it for the Mac host (not Linux), which would not have the desired effect. An manual approach, which does seem to work for me is this: https://stackoverflow.com/a/51623813/2682119


Workaround I'm using for this is just overriding vagrant_triggers_mac_os in an local/service.elastic.yml file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions