Skip to content

geosword/xenvmcreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xenvmcreator

A go script to create VMs on Citrix Xenserver Hypervisors

Usage of heckle

-cpus int - The number of vCPUs to assign to the VM (default 1)

-disksize string - The number of GiB to allocate to the disk (default "10GiB")

-iso string - The name of the ISO from which to first-time-boot the vm

-memory string - The number of MEGABYTES RAM to assign to the VM (default "1GiB")

-name string - The name of the VM to create (default "blah")

-network string - The name of the network to connect the vm to

-outputonly - If set it will only output the commands it would execute, naturally without the correct parameter values set.

-start - If set it will start the vm once created

-template string - The Name of the XenServer template to use

-version - show the version and date of the build

Compilation

Use the dockergo script, which instigates a go container & builds / runs according to parameters passed to dockergo. Example:

./dockergo build -ldflags "-X main.version=`date -u +.%Y%m%d.%H%M%S`" heckle.go

As you can see, dockergo simply passes any parameters it gets to go within the golang:latest container

Still to do: make sure the VDI assigned to the VM is named appropriately. Currently is just called 0 Allow the addition of multiple disks and network interfaces

About

A go script to create VMs on Citrix Xenserver Hypervisors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published