[SOLVED] Setting user template on onevm create?

I’m trying to create a vm with onevm create, but I cannot see any way to set user template variables at that stage? Do I have to create and then onevm update to set the variables or is there a good way to do this at create time?

Hello @mzealey

You can pass a file to the command onevm create:

$ cat vm
NAME=test
CPU=1
MEMORY=128
USER_TEMPLATE = [
	A = A,
	B = B
]
$ onevm create vm

Thanks, have just tried this and it mostly works. If you use USER_TEMPLATE it places the variables under that array so actually the user-defined variables just need putting in with the standard config like:

NAME=test
CPU=1
MEMORY=128
A = A
B = B