GitHub user kapsch-gtanya added a comment to the discussion: Custom System VM 
template

I've tried to make a custom template adding a new script with the appliance 
tools from CloudStack, to configure proxy files. It work in storage VM and K8S 
nodes. But it doesn't work in Virtual Router. On that, it creates the VM (I see 
with virsh list) but it's not shown in CloudStack UI. 

In the Virtual Router page and when we create an instance we get the error (but 
this comes from management log):

```
2025-01-21 07:20:42,020 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(API-Job-Executor-8:[ctx-5e8993dd, job-42]) (logid:5baaf4b2) Unexpected 
exception while executing 
org.apache.cloudstack.api.command.admin.vm.DestroyVMCmdByAdmin 
java.lang.IllegalArgumentException: 
org.apache.cloudstack.utils.CloudStackVersion.parse(String) passed 0, but 
requires a value in the format of int.int.int(.int)(-<legacy patch>)
```

I think it doesn't initialize successfully, because the folder 
`/usr/local/cloud/systemvm/` doesn't exists inside the VM.

As a workaround, we've setup the installation with our custom system vm and 
once the zone is created, we have added the cloudstack system vm template as a 
router template. After we have configured the proeperty `router.template.kvm` 
to use this template. With this we can work, but it's not ideal.

GitHub link: 
https://github.com/apache/cloudstack/discussions/10178#discussioncomment-11901971

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to