gitlab_runner: Add VM based executor (libvirt-executor)
For some workloads running in a container is too restrictive, ex:
arch-boxes (loop device, filesystem mount, pacstrap) and archiso
(pacstrap). Currently they both run a TCG accelerated QEMU VM, which is
very slow and painful to work with. We should provide a better option to
our users!
This adds a hardware accelerated VM for this kinds of workloads, which
is way faster and you can do whatever you like (mostly)!
Fix #283
TODO:
-
Enable KSM? -
Get archiso to build -
Use BUILD_FAILURE_EXIT_CODE
andSYSTEM_FAILURE_EXIT_CODE
: https://docs.gitlab.com/runner/executors/custom.html#error-handling -
Fix existing users to use the secure-vm
tag
Edited by Kristian Klausen
Merge request reports
Activity
mentioned in merge request !384 (closed)
added 410 commits
-
ed7f98f2...b98bd572 - 386 commits from branch
archlinux:master
- 752ab938 - Add libvirt role
- 4fc2ccfa - libvirt: default network (WIP should be tested)
- 5bd9d2da - libvirt: start default network
- 0aac935f - gitlab_runner: Add libvirt-executor
- 81b06ddd - image_path + download from mirror.pkgbuild.com
- 5678aa7d - cleanup commit
- 1a22af08 - libvirt-executor-vm-template.{service,timer} install
- ac09efdd - ssh keys + user-data
- 59eccc0f - cleanup user-data
- a83e8caf - remove commented-out code
- 1d7ad1c5 - user-data PUBLIC_SSH_KEY
- 08c7d0da - sed / -> :
- eac032c9 - libvirt: cdrtools for virt-install
- 750a0187 - FIXME: bump timeout
- ea3c97a4 - Note: FIXME: Reboot after updating?
- 1395f263 - runner1.archlinux.org: vault_gitlab_vm_runner_token
- 30be77dd - vm runner
- bbf461e6 - Don't echo VM ip
- 2e22ea69 - better vm name
- cb81d042 - echo vm name not return
- 94cc34b1 - s/-/_
- c00b75eb - maybe revert CUSTOM_ENV_CI_JOB_ID
- 366161ff - Remove machine-id (used by dhcp)
- 55a8e9be - Revert "maybe revert CUSTOM_ENV_CI_JOB_ID"
Toggle commit list-
ed7f98f2...b98bd572 - 386 commits from branch
- Resolved by Kristian Klausen
- Resolved by Kristian Klausen
- Resolved by nl6720
- Resolved by Kristian Klausen
- Resolved by Kristian Klausen
- Resolved by Kristian Klausen
- Resolved by Kristian Klausen
- Resolved by Kristian Klausen
Please register or sign in to reply