Homestead: libvirt for Homestead?

Created on 22 Feb 2017  路  9Comments  路  Source: laravel/homestead

This isn't an issue, but I was wondering if it would be possible to include a libvirt provider for Homestead. I know there are vmware_desktop, virtualbox, and parallels providers, and a libvirt edition would be very nice.

Most helpful comment

I would love to see this added as well. In the interim I was able to use vagrant-mutate to accomplish this. This assumes you have a hypervisor (probably kvm), libvirt and vagrant-libvirt installed already.
~$ vagrant box add --provider virtualbox laravel/homestead
~$ vagrant plugin install vagrant-mutate
~$ vagrant mutate laravel/homestead libvirt
Add the following section to the scripts/homestead.rb file:

    # Configure libvirt settings
    config.vm.provider "libvirt" do |kvm|
        kvm.memory = settings["memory"] ||= "2048"
        kvm.cpus = settings["cpus"] ||= "1"
    end

Then just set the provider to libvirt in your Homestead.yaml file then continue with the homestead instructions.

All 9 comments

is libvert a supported provider? Can you provide some links/docs on creating libvirt vagrant boxes? I've never used it, but happy to investigate if we can easily support it.

@svpernova09 Cursory Google search shows this to be promising. You'll need a linux machine to build them.

This might be useful.

I think we should hold off until there is more demand, or the provider matures a good bit. The QA matrix is a little troubling. (even though Ubuntu 16.04 is currently passing the release)

I would love a libvirt edition as well, just to add my support for it! 馃槢

Same here! We would like libvirt for laravel/homestead!!

Currently holding off until the provider matures. The QA matrix shows everything failing for Vagrant 1.9.1, and there hasn't been a commit in a little over a month.

I would love to see this added as well. In the interim I was able to use vagrant-mutate to accomplish this. This assumes you have a hypervisor (probably kvm), libvirt and vagrant-libvirt installed already.
~$ vagrant box add --provider virtualbox laravel/homestead
~$ vagrant plugin install vagrant-mutate
~$ vagrant mutate laravel/homestead libvirt
Add the following section to the scripts/homestead.rb file:

    # Configure libvirt settings
    config.vm.provider "libvirt" do |kvm|
        kvm.memory = settings["memory"] ||= "2048"
        kvm.cpus = settings["cpus"] ||= "1"
    end

Then just set the provider to libvirt in your Homestead.yaml file then continue with the homestead instructions.

thanks I'm using libvirt now!

Thank you very much @benddailey , I am now using libvirt as well!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bironeaj picture bironeaj  路  3Comments

svpernova09 picture svpernova09  路  3Comments

mtpultz picture mtpultz  路  4Comments

Quix0r picture Quix0r  路  4Comments

daryn-k picture daryn-k  路  5Comments