engine: resources: Add a virt-builder resource

This wraps the excellent virt-builder utility which makes setting up new
virtual machines a breeze.
This commit is contained in:
James Shubin
2024-09-26 11:47:40 -04:00
parent 562138cb74
commit 6419f931ee
2 changed files with 763 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import "os"
virt:builder "/var/lib/libvirt/images/vmtest1.raw" {
os_version => "fedora-40",
size => 1024*1024*1024*100, # 100G
packages => [
"@minimal-environment",
"screen",
"vim-enhanced",
],
}