ansible/roles/copr/hypervisor
2022-01-28 11:08:21 +01:00
..
files copr-hv: install profile script 2021-04-23 15:04:23 +02:00
tasks copr-hypervisor: disable auth key fixes, take #2 2022-01-28 11:08:21 +01:00
templates copr-hv: auto-create libvirt image pool 2021-04-23 14:54:03 +02:00
README copr-hv: update README for the required grub.cfg update 2021-07-13 14:13:22 +02:00

General VM requirements for builder VMs
---------------------------------------

- 2xvCPU
- 16GB RAM
- 16G for built results
-  4G for root partition
- SWAP+RAM
  - 32GB for /var/lib/mock tmpfs
  - 140GB tmpfs for mock root(s)


AMD hypervisors
===============

vmhost-x86-copr0[1-4].rdu-cc.fedoraproject.org

- 256G RAM
- 64 threads (2x16 cores)
- 2.6T+ storage
- 300 G SWAP

This brings us 32+ (few devel) overcommitted builders on each builder:

 - 32*16G = up to 512 GRAM (256 RAM + 300 G SWAP)
 - 4G+16G = 20G*32 = up to 640G for root+results
 - 172G*32 = up to 5.5T SWAP for tmpfs (huge overcommit, though only limitted
   amount of build tasks require that much tmpfs)

Manually created swap:

  1. lvcreate -L 300G vg_guests -n swap
  2. mkswap -L swap /dev/mapper/vg_guests-swap

Note that this requires changing /etc/fstab, and then /etc/sysconfig/grub - and
regenerating the /boot grub config.

Manually created space for volumes/images:

  1. lvcreate -n images -l 100%FREE vg_guests
  2. mkfs.ext4 /dev/mapper/vg_guests-images -L vmvolumes

Manually created br0 interface.

  Not done by me, TODO: add steps.