Added vagrant-libvirt-doc rpm and polkit rule

This commit is contained in:
Thorsten Scherf 2016-02-02 18:58:47 +01:00 committed by Alexander Bokovoy
parent 9cf596564a
commit 49c48aa953

View File

@ -96,10 +96,24 @@ Fedora
^^^^^^
If you intend to use the ``libvirt`` provider (recommended), install
``vagrant-libvirt``::
``vagrant-libvirt`` and ``vagrant-libvirt-doc``::
$ sudo dnf install -y vagrant-libvirt
$ sudo dnf install -y vagrant-libvirt vagrant-libvirt-doc
Allow your regular user ID to start and stop Vagrant boxes. A PolicyKit rule
will be added that allows users in the vagrant group to control VMs through
libvirt. The necessary rule is included in the ``vagrant-libvirt-doc``
package. Run the following commands to add your local user to the vagrant
group and to copy the necessary rule to the right place::
$ usermod -a -G vagrant $USER
$ cp /usr/share/vagrant/gems/doc/vagrant-libvirt-*/polkit/10-vagrant-libvirt.rules \
/etc/polkit-1/rules.d
Finally restart the services::
$ systemctl restart libvirtd
$ systemctl restart polkit
Otherwise, you will use VirtualBox and the ``virtualbox`` provider.
VirtualBox needs to build kernel modules, and that means that you must