Skip to content

Commit b8d42b7

Browse files
authored
docs(vagrant): add fedora libvirt instructions (#3968)
Adds instructions for running under libvirt with Fedora, instead of VirtualBox. Signed-off-by: Eric Chlebek <echlebek@sumologic.com>
1 parent 6d19175 commit b8d42b7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

vagrant/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,43 @@ source ~/.zshrc
3737
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist
3838
```
3939

40+
### Fedora with libvirt
41+
42+
## Setting up
43+
44+
1. Install prerequisites:
45+
46+
```bash
47+
dnf install -y @virtualization @vagrant libvirt-devel
48+
systemctl enable --now virtqemud.service
49+
systemctl enable --now virtnetworkd.service
50+
```
51+
52+
1. Add your user to libvirt group
53+
54+
```bash
55+
usermod -aG libvirt $USER
56+
```
57+
58+
1. Log out so that your user is recognized as a group member (alternatively, restart your computer)
59+
60+
```bash
61+
loginctl terminate-user $USER
62+
```
63+
64+
1. Install the libvirt provider in vagrant. This should be done by package management and may become unnecessary in the future:
65+
66+
```bash
67+
vagrant plugin install vagrant-libvirt
68+
```
69+
70+
1. Set your default provider to libvirt
71+
72+
```bash
73+
echo 'export VAGRANT_DEFAULT_PROVIDER=libvirt' >> ~/.bashrc
74+
source ~/.bashrc
75+
```
76+
4077
### Other
4178

4279
Please install Vagrant and a Vagrant-compatible provider such as VirtualBox:

0 commit comments

Comments
 (0)