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:
11
examples/lang/virt-builder.mcl
Normal file
11
examples/lang/virt-builder.mcl
Normal 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",
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user