roots / trellis

WordPress LEMP stack with PHP 8.2, Composer, WP-CLI and more
https://roots.io/trellis/
MIT License
2.51k stars 607 forks source link

Add Libvirt to the Vagrant config file #1490

Closed Simbaclaws closed 1 year ago

Simbaclaws commented 1 year ago

Gives the ability for users who have the libvirt plugin installed in vagrant on linux to use libvirt for creating the virtual machine. This change will make sure that the RAM and CPU count will be properly set on each trellis up. Libvirt is working properly so far, but is causing a kernel panic on trellis up because the RAM is set to 512. Currently I have to manually set the RAM to a higher number in order to be able to boot the machine.

I haven't tested this change yet, I'm about to do that right now.

Please add this when people have confirmed it working (not just me).

Basically for this to work, all you have to do is follow the setup instructions for your distribution here: https://vagrant-libvirt.github.io/vagrant-libvirt/

swalkinshaw commented 1 year ago

This is a good addition, thanks @Simbaclaws

Simbaclaws commented 1 year ago

one more thing I thought I'd mention is that you might need to set the VAGRANT_DEFAULT_PROVIDER env variable to libvirt in order for trellis to pickup libvirt as the provider