limavel 0.9.7

A tool for creating virtualized development environments for Laravel in macOS
limavel-0.9.7 is not a library.

Limavel πŸ‹β€πŸŸ©

A tool for creating and provisioning virtualized development environments for Laravel on macOS.

This tool may serve also as Laravel Homestead replacement.

Motivation

Laravel offers a great development environment based on containers for macOS with Laravel Herd; however, some developers require a development environment that must be close to the production one, or simply need extra customization and security. Limavel offers the possibility of using virtualized development environments like Laravel Homestead but without using Vagrant and commercial virtualization software.

Installation

curl -o- https://raw.githubusercontent.com/Limavel/installer/refs/heads/master/install.sh | bash

or using cargo:

cargo install limavel

How it works

Limavel uses Lima with the native Apple Virtualization Framework and Ansible under the hood. It helps to create, edit, and provision virtual machines in macOS that are oriented to web development and especially to Laravel app development.

In order to use Limavel, you need to previously install Lima 2.x.

Getting started

To use Limavel, follow the steps below:

  1. Initialize configuration: limavel init
  2. Edit the configuration file (limavel.yaml)
  3. Start the virtual machine: limavel start

After the first start, Limavel will create a new virtual machine and run the provisioning process.

Provisioning

You can run limavel provision for applying changes to the virtual machine and software installation or/and configurations.

The provisioning process is based on Ansible playbooks.

Provision customization

Limavel was developed for using Debian Trixie as base distribution; however, it's possible to customize the bootstrap scripts and playbooks to use other distributions.

To publish the OS bootstrap and Ansible playbook files in your filesystem, you can run limavel publish. Feel free to modify these files for custom needs.

See the following provisions:

The provisions located into the limavel project are oriented to Laravel development; however, you are free to create your own provisions for different purposes or/and development stacks.

Virtual Machine Configuration

Edit the limavel.yaml file to customize the virtual machine configuration such as memory, CPU, and file mapping, and run limavel edit to apply the changes.

SSH Access

With the limavel ssh command you can access the virtual machine using SSH. The default system user is limavel and the password is secret.

Commands list

Command Description
init Initialize the configuration file
edit Change virtual machine configuration
provision Run the provisioning process
publish Publish the OS bootstrap and Ansible playbooks
start Start the virtual machine
stop Stop the virtual machine
restart Restart the virtual machine
status Check the status of the virtual machine
ssh Access the virtual machine using SSH
ssh-details Show the SSH connection instructions

Management architecture

Limavel will take care of the virtual machine management, provisioning, and hosts configuration.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     Hosts     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  Provision
β”‚               β”‚   management  β”‚                 β”‚  management
β”‚  /etc/hosts   │◀──────────────│     Limavel     │◀─────────────┐    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               β”‚               β”‚                 β”‚              β”‚    β”‚       Guest VM       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚    β”‚                      β”‚
                                         β”‚                       β”‚    β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
                                   VM management                 └────┼─▢│     Ansible     β”‚ β”‚
                                         β”‚                       β”Œβ”€β”€β”€β–Άβ”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
                                         β”‚                       β”‚    β”‚                      β”‚
                                         β–Ό                       β”‚    β”‚                      β”‚
                             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”           β”‚    β”‚                      β”‚
                             β”‚        Lima-vm        β”‚           β”‚    β”‚                      β”‚
                             β”‚                       β”‚β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                             β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
                             β”‚  β”‚      Apple      β”‚  β”‚
                             β”‚  β”‚ Virtualization  β”‚  β”‚
                             β”‚  β”‚    Framework    β”‚  β”‚
                             β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
                             β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜