Top Banner
oVirt in a Home Lab Also on a laptop
15

oVirt in a Home Lab

Oct 15, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: oVirt in a Home Lab

oVirt in a Home Lab

Also on a laptop

Page 2: oVirt in a Home Lab

Paul Staniforth

Leeds Beckett University

Networked Systems Analyst

Working in the BEC school

2

Page 3: oVirt in a Home Lab

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

Using a Laptop

● All in one solution● Mobile● standalone ● Demonstration purposes

4

Page 5: oVirt in a Home Lab

Bare Metalor Virtual

● Running on Hardware● Nested Virualised system● Hybrid model

5

Page 6: oVirt in a Home Lab

Hardware Requirements

● Memmory● CPU● Storage● Networking

6

Page 7: oVirt in a Home Lab

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

Virtual Solutions

● Libvirt● Nested Virtualisation● Vmware● Azure● VirtualBox

8

Page 9: oVirt in a Home Lab

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

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

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

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

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

Demo next

14

Page 15: oVirt in a Home Lab

15

oVirt in a Home Lab

Thanks for watching my presentation

[email protected]