devpanel / serverlink

Software stack that runs on the web servers
GNU Affero General Public License v3.0
6 stars 8 forks source link

Support libvirt Vagrant provider? #17

Open jonpugh opened 5 years ago

jonpugh commented 5 years ago

I use Fedora, which allows vagrant to use the native libvirt library instead of requiring virtualbox.

I found some blogs on how to use the vagrant mutate plugin to convert virtualbox boxes to libvirt.

I got it to bring the machine up, but it hangs at:

==> test-1.devpanel.net: Creating shared folders metadata...
==> test-1.devpanel.net: Starting domain.
==> test-1.devpanel.net: Waiting for domain to get an IP address...

Do you think it is worth it to release a libvirt vagrant image to https://files.devpanel.com/vagrant/box.json?

Thanks!

vmmello commented 5 years ago

Jon,

We can have libvirt support, though we'd need to automate the packaging as it's done with the Vagrant deployment (as you see on file https://github.com/devpanel/serverlink/blob/master/src/vagrant/build/build-n-pack-box.sh ).

Meanwhile, does it unblock the libvirt deployment if you assign a static IP? (e.g. add this line to your Vagrantfile):

config.vm.network "private_network", ip: "192.168.1.100"

(assuming that network leased to libvirt is 192.168.1.0/24).