Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant-libvirt: update installation instructions #454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tools/vagrant/vagrant-libvirt.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ order: 2

# Vagrant with libvirt support installation

To use Vagrant with libvirt, you need to install the `vagrant-libvirt` package:
To use Vagrant with libvirt, you need to install the `vagrant-libvirt` package and the `virtualization` group:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To use Vagrant with libvirt, you need to install the `vagrant-libvirt` package and the `virtualization` group:
To use Vagrant with libvirt, you need to install the `vagrant-libvirt` package:


```
$ sudo dnf install vagrant-libvirt
$ sudo dnf group install virtualization
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think this is needed. vagrant-libvirt should pull in all that is required.

```

There is also *@vagrant* package collection created with libvirt provider in mind. With the following command you can install all necessary Vagrant packages as well:
Expand All @@ -18,10 +19,11 @@ There is also *@vagrant* package collection created with libvirt provider in min
$ sudo dnf install @vagrant
```

Afterwards make sure that libvirt daemon is running and that you have `kvm` module loaded in the kernel:
Afterwards make sure that libvirt and virtnetworkd daemons are running and that you have `kvm` module loaded in the kernel:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From how packaged libvirt daemons are right now in Fedora, the maintainer insists reboot is needed for everything to work properly.


```
$ sudo systemctl enable libvirtd
$ sudo systemctl enable --now libvirtd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ sudo systemctl enable --now libvirtd
$ sudo systemctl enable --now virtqemud

$ sudo systemctl enable --now virtnetworkd
$ lsmod | grep kvm
kvm_intel 167936 3
kvm 499712 1 kvm_intel
Expand Down