ovirt in a home lab
TRANSCRIPT
![Page 1: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/1.jpg)
oVirt in a Home Lab
Also on a laptop
![Page 2: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/2.jpg)
Paul Staniforth
Leeds Beckett University
Networked Systems Analyst
Working in the BEC school
2
![Page 3: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/3.jpg)
Why run a home lab?
● Working from home● Checking out new ideas● Reduced policy requirements● Network requirements
3
![Page 4: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/4.jpg)
Using a Laptop
● All in one solution● Mobile● standalone ● Demonstration purposes
4
![Page 5: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/5.jpg)
Bare Metalor Virtual
● Running on Hardware● Nested Virualised system● Hybrid model
5
![Page 6: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/6.jpg)
Hardware Requirements
● Memmory● CPU● Storage● Networking
6
![Page 7: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/7.jpg)
Automation and Provisioning
● Use a solution that works for baremetal and Virtual.
● Ansible● Puppet● scripting/python● Foreman/Katello● RH Satelite● manageiq
7
![Page 8: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/8.jpg)
Virtual Solutions
● Libvirt● Nested Virtualisation● Vmware● Azure● VirtualBox
8
![Page 9: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/9.jpg)
Networking
● Isolated network● Separate Segment● Try to not interfere with rest of
the household network.● VLAN switch if possible● Laptop can work without extra
hardware using NAT
9
![Page 10: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/10.jpg)
Solution based on KVM and Libvirt
● Free and Open Source● uses same tech as oVirt● quite easy to automate● Familiar to Linux users● Can use different tools
○ virt-manager○ machines in cockpit○ virsh command line
10
![Page 11: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/11.jpg)
Requirements to run nested.
● Turn on Nested virtualisation● Turn on hardware Virtualisation
in BIOS● Turn on Nested Virtualisation in
Kernal● Enable Virtualisation in oVirt
nodes
11
cat /sys/module/kvm_intel/parameters/nestedN # or 0 disabledvi /etc/modprobe.d/kvm.conf# uncomment either of the line# for Intel CPU, select [kvm_intel], for AMD CPU, select [kvm_amd]options kvm_intel nested=1#options kvm_amd nested=1
modprobe -r kvm_intelmodprobe kvm_intelcat /sys/module/kvm_intel/parameters/nestedY # or 1 just enabled
virsh edit centos8
<cpu mode='host-model'>
![Page 12: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/12.jpg)
Components required
● Networking○ Bridged ○ Nat
● DNS○ Separate server ○ Libvirt dnsmasq
● Storage○ Libvirt pools ○ Libvirt volumes○ NAS or SAN
12
![Page 13: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/13.jpg)
Storage Domains
● Can be on the Host server○ Libvirt has a firewall zone
by default● Could be external
○ Use bridged networking● Could be on virtual nodes
○ NFS○ iSCSI○ Gluster
13
![Page 14: oVirt in a Home Lab](https://reader030.vdocuments.mx/reader030/viewer/2022012020/616891acd394e9041f70b05f/html5/thumbnails/14.jpg)
Demo next
14