Skip to content

Commit 842de23

Browse files
committed
README's & Makefile
1 parent 4ae8f3d commit 842de23

File tree

4 files changed

+120
-1
lines changed

4 files changed

+120
-1
lines changed

README.centos7.sysprep

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# 5.11 fails due to #20198
2+
# "cannot create network; /dev/vboxnet does not exist"
3+
4+
# SKIP THIS STEP until this bug: https://www.virtualbox.org/ticket/20198 allows using the linux 5.11 kernel
5+
#1. update to latest:
6+
# # dnf distro-sync
7+
# # reboot
8+
1. add epel repository (to get vagrant & its plugins)
9+
yum install epel-release
10+
11+
2. install infrastructure software
12+
vagrant
13+
vagrant-libvirt
14+
VirtualBox prerequisite RPMS
15+
# yum install kernel-devel kernel-devel-$(uname -r) kernel-headers kernel-headers-$(uname -r) make patch gcc
16+
# yum install python2.7 binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms qt5-qtx11extras libxkbcommon
17+
# wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O oracle_vbox.asc
18+
# rpm --import oracle_vbox.asc
19+
###create /etc/yum.repos.d/virtualbox.repo
20+
###from: https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
21+
--- oracle-virtualbox.repo ---
22+
[oracle-virtualbox]
23+
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
24+
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
25+
enabled=1
26+
gpgcheck=1
27+
repo_gpgcheck=1
28+
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
29+
--- virtualbox.repo ---
30+
# yum install VirtualBox
31+
3. a. set permissions & ownership on /run/libvirt/*sock*
32+
b. ensure in libvirt, libvirtd, wheel, root, qemu, kvm, vboxusers groups
33+
3. ensure sufficient space
34+
4. pull git repo clone
35+
5. set link to space directory in repo clone
36+
6. build/run

README.fc32.sysprep

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# 5.11 fails due to #20198
2+
# "cannot create network; /dev/vboxnet does not exist"
3+
4+
# SKIP THIS STEP until this bug: https://www.virtualbox.org/ticket/20198 allows using the linux 5.11 kernel
5+
#1. update to latest:
6+
# # dnf distro-sync
7+
# # reboot
8+
9+
2. install infrastructure software
10+
vagrant
11+
vagrant-libvirt
12+
VirtualBox prerequisite RPMS
13+
# dnf install python2.7 binutils gcc make patch libgomp glibc-headers glibc-devel qt5-qtx11extras libxkbcommon
14+
# dnf install kernel-headers kernel-devel dkms
15+
VirtualBox
16+
###https://download.virtualbox.org/virtualbox/6.1.18/VirtualBox-6.1-6.1.18_142142_fedora32-1.x86_64.rpm
17+
# wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O oracle_vbox.asc
18+
# rpm --import oracle_vbox.asc
19+
###create /etc/yum.repos.d/virtualbox.repo
20+
###from: https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
21+
--- virtualbox.repo ---
22+
[virtualbox]
23+
name=Fedora $releasever - $basearch - VirtualBox
24+
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
25+
enabled=1
26+
gpgcheck=1
27+
repo_gpgcheck=1
28+
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
29+
--- virtualbox.repo ---
30+
# yum install VirtualBox
31+
3. a. set permissions & ownership on /run/libvirt/*sock*
32+
b. ensure in libvirt, libvirtd, wheel, root, qemu, kvm, vboxusers groups
33+
3. ensure sufficient space
34+
4. pull git repo clone
35+
5. set link to space directory in repo clone
36+
6. build/run

README.fc33.sysprep

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# 5.11 fails due to #20198
2+
# "cannot create network; /dev/vboxnet does not exist"
3+
4+
1. update to latest:
5+
# dnf distro-sync
6+
# reboot
7+
8+
2. install infrastructure software
9+
# dnf install vagrant vagrant-libvirt libvirt-client
10+
# dnf install libvirt-daemon-config-network libvirt-daemon-kvm qemu-kvm virt-manager virt-viewer
11+
# dnf install libguestfs-tools python3-libguestfs virt-top
12+
#
13+
VirtualBox prerequisite RPMS
14+
# dnf install python2.7 binutils gcc make patch libgomp glibc-headers glibc-devel qt5-qtx11extras libxkbcommon
15+
Depending on what kernel is running, you may need to do:
16+
# yum install "kernel-devel-*$(uname -r)"
17+
# dnf install kernel-headers kernel-devel dkms
18+
VirtualBox
19+
retrieve VirtualBox installer
20+
% wget https://download.virtualbox.org/virtualbox/6.1.18/VirtualBox-6.1.18-142142-Linux_amd64.run
21+
# chmod +x VirtualBox-6.1.18-142142-Linux_amd64.run
22+
# ./VirtualBox-6.1.18-142142-Linux_amd64.run
23+
add user to vboxusers group
24+
25+
3. a. set permissions & ownership on /run/libvirt/*sock*
26+
b. ensure in libvirt, libvirtd, wheel, root, qemu, kvm groups
27+
4. ensure sufficient space
28+
5. Start nfs service
29+
edit /etc/nfs.conf, making sure that nfsd and at least one nfs protocol version is enabled, preferably 4.2
30+
# systemctl enable nfs-server ; systemctl start nfs-server
31+
# systemctl enable libvirtd ; systemctl start libvirtd
32+
# systemctl status nfs-server
33+
# systemctl status libvirtd
34+
# firewall-cmd --permanent --add-service=nfs
35+
# firewall-cmd --permanent --zone=libvirt --add-port=2049/tcp
36+
# firewall-cmd --reload
37+
6. pull git repo clone; install git and git-lfs if they aren't already
38+
7. set link to space directory in repo clone
39+
8. build/run
40+
When switching virtualization providers you may need to either reboot the node or explicitly remove any
41+
virtual bridge interfaces that have been left behind. Both libvirt and virtualbox assume they own 'virbr*'

requires/auth/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
TARGETS = sudo-auth sudo-modify-exports modify-exports sudo-enable-nfs-through-firewall
3-
TARGETS_OPTIMISTIC = modify-exports sudo-auth sudo-modify-exports
3+
TARGETS_OPTIMISTIC = modify-exports sudo-auth sudo-modify-exports invoker-userid-in-virt-groups
44

55
SUDO_CHECK := $(shell sudo id -n -u)
66
SUDO_NEED = root
@@ -39,3 +39,9 @@ sudo-enable-nfs-through-firewall:
3939
sudo firewall-cmd --zone=trusted --add-interface=vboxnet0 ; \
4040
sudo firewall-cmd --zone=trusted --add-service=nfs ; \
4141
fi
42+
43+
invoker-userid-in-virt-groups:
44+
:
45+
$(warn verify that invoker's groupid includes libvirt & kvm (if PROVIDER=libvirt) or vboxusers (if virtualbox))
46+
$(warn verify that /etc/libvirt/libvirtd.conf unix_sock_group = "libvirt")
47+
$(warn verify that /etc/libvirt/libvirtd.conf unix_sock_rw_perms = "0770")

0 commit comments

Comments
 (0)