Skip to content

sjoeboo/vm_builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

vm_builder

Script wrapping virt-install to allow for more flexibility than koan

I've foudn some shortcoming with koan for the way we want to use it (mostly, the inability to pass specific options to virt-install). this is an attempt to wrap virt-install to make it easier for OUR use case

Usage

Usage: vm_builder [options] <system_name>
-f, --configfile PATH            Set config file
-a, --cobbler_api URL            Cobbler API URL
-c, --cpus CPUS                  CPUS
-r, --ram RAM                    RAM in GB
-d, --disk-size DISK_SIZE_GB     Disk Size in GB
-p, --pool storage_pool          Storage pool to use
-b, --disk-bus disk_bus          Disk Bus to use virtio, etc
-t, --disk-type disk_type        Disk type to use raw, qcow2, etc

Config File

vm_builderrc can be specified with the -f flag, or found in ~/.vm_builderrc. It is a simple YAML hash of otions which will override options from cobbler. Options passed on the cli will also override this config file.

cobbler_api: http://cobbler/cobbler_api
ram: 1024
cpus: 1
disk_size: 10
disk_bus: virtio
disk_type: qcow2
disk_cache: writeback

About

Script wrapping virt-install to allow for more flexibility than koan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages