26

How to set Default Vagrant Provider to Virtualbox on Linux; Fedora,Debian,Ubuntu

 2 years ago
source link: https://computingforgeeks.com/how-to-set-default-vagrant-provider-to-virtualbox-on-linux-fedoradebianubuntu/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
How to set Default Vagrant Provider to Virtualbox on Linux; Fedora,Debian,Ubuntu
Search

I have been using vagrant to manage my Virtual Machines for long time. Vagrant provides you with such cool Virtual Machines control system. I tried creating a virtual machine on my Fedora 23 Distribution but got error message “the provider ‘libvirt’ could not be found, but was requested to back the machine ‘default’. Please use a provider that exists”. After few googling i found simple solution that work.

If you would like to use vagrant with KVM, make sure you install libvirt packages for vagrant.If on Fedora 23 or 22, do

dnf install -y vagrant-libvirt vagrant

Then make Virtualbox vagrant’s default provider by typing following commands.

 echo "export VAGRANT_DEFAULT_PROVIDER=virtualbox" >> ~/.bashrc
 source ~/.bashrc

Now you can add Vagrant box using any of the following tutorials.

Easiest way to create Vagrant Box from existing Virtualbox VM 

Read How to Install Virtualbox on Fedora 23

How to install Virtualbox Latest on Ubuntu and Kali Linux 

How to add,install and run CentOS 7 Vagrant box to Virtualbox using Vagrant 

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

Founder of Computingforgeeks. Expertise in Virtualization, Cloud, Linux/UNIX Administration, Automation,Storage Systems, Containers, Server Clustering e.t.c.

LEAVE A REPLY Cancel reply

Save my name, email, and website in this browser for the next time I comment.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK