I use Vagrant to write software, and I'd like to move my box from my computer to my NAS. I managed to do it using Virtualbox, but I'm not being able to get it to work with KVM.
First thing I did was install an Ubuntu KVM VM, then installed virtualbox on it and Vagrant... But as you know, nesting is terrible, and I had terrible performance.
Then I installed the Virtualbox UnRaid plugin, used Alien to convert Vagrant's .rpm to a .tgz, installed it with installpkg, and it worked with Virtualbox. It worked very well by the way, performance was quite good. However, I'd like to use what UnRaid provides natively already, which is libvirt/kvm. Vagrant works with libvirt, but we need to install this plugin: https://github.com/vagrant-libvirt/vagrant-libvirt
But when I'm installing the plugin, it can't find libvirt and compile what it needs:
/opt/vagrant/embedded/bin/ruby -r ./siteconf20170201-5109-1kn7me6.rb extconf.rb
/opt/vagrant/embedded/lib/ruby/2.2.0/mkmf.rb:1516: warning: Insecure world writable dir /root/.vagrant.d/gems in PATH, mode 040777
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
extconf.rb:73:in `<main>': libvirt library not found in default locations (RuntimeError)
extconf failed, exit code 1
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/vagrant/embedded/bin/$(RUBY_BASE_NAME)
--with-libvirt-include
--without-libvirt-include
--with-libvirt-lib
--without-libvirt-lib
--with-libvirt-config
--without-libvirt-config
--with-pkg-config
--without-pkg-config
Gem files will remain installed in /root/.vagrant.d/gems/2.2.5/gems/ruby-libvirt-0.7.0 for inspection.
Results logged to /root/.vagrant.d/gems/2.2.5/extensions/x86_64-linux/2.2.0/ruby-libvirt-0.7.0/gem_make.out
Now I know libvirt is installed, but not on the usual locations. Google tells me that a lot of people fixed this issue by installing libvirt-devel on centos/fedora and libvirt-dev on debian/ubuntu. Since this is my first time dealing with Slackware, I'm not sure about the next step. I used Alien to convert libvirt-devel's .rpm into a Slackware friendly .tgz, installed it but nothing changed. I know this is not how it works but I'll gladly take any suggestions.
Can a package manager be installed on UnRaid?
Vagrant is working fine with Virtualbox, but it will be much better using the native solution provided by UnRaid (libvirt). The fact that UnRaid is based on Slackware makes it harder as there's not a lot of recent content about it online.
Any suggestions?