Hi Vivek,

you should be able to register a new template via UI - name as appropriate
- like the template names for 4.11.3 (not a typo - see the upgrade docs)
change the global variable " router.template.kvm " to the new template name.

Then stop mgmt, change the "type" of the template (vm_template table) from
USER to SYSTEM (see the other systemVM templates) and start the mgmt server
(this is what the upgrade script do - they expect a specific template name,
and then it changes it's type to SYSTEM)
try spinning a new VR - it should use the template as defined in that
global setting.

Best.

On Wed, 23 Sep 2020 at 14:47, Vivek Kumar <[email protected]>
wrote:

> Hello Folks,
>
> I am using CloudStack 4.13 with KVM. We are having 2-3 KVM Zones ( Both
> Basic and Advance Zone ).  Somehow systemvm got destroyed for KVM Zones. I
> tried to re-register the system template.
>
> 1- I tried to upload the system VM template via GUI and change the same
> name in “router.template.kvm” in global setting but it’s  did’t work.
> 2- I tried to register the system VM template using the command on ACS -
>
> /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
> -m /mnt -u
> https://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.3-kvm.qcow2.bz2
> <
> https://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.3-kvm.qcow2.bz2>
> -h kvm -F
> ERROR 1292 (22007) at line 1: Truncated incorrect DOUBLE value: 'NULL'
> --2020-09-23 18:06:29--
> https://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.3-kvm.qcow2.bz2
> <
> https://download.cloudstack.org/systemvm/4.11/systemvmtemplate-4.11.3-kvm.qcow2.bz2
> >
> Resolving download.cloudstack.org (download.cloudstack.org)...
> 185.27.174.49, 2a00:f10:121:400:403:9cff:fe00:37f
> Connecting to download.cloudstack.org 
> (download.cloudstack.org)|185.27.174.49|:443...
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 304543275 (290M) [application/x-bzip2]
> Saving to:
> ‘/usr/share/cloudstack-common/scripts/storage/secondary/737e9330-692c-4525-bf82-4185cd1d9ff0.qcow2’
>
> 100%[==============================================================================================================================>]
> 304,543,275 8.68MB/s   in 40s
>
> 2020-09-23 18:07:10 (7.31 MB/s) -
> ‘/usr/share/cloudstack-common/scripts/storage/secondary/737e9330-692c-4525-bf82-4185cd1d9ff0.qcow2’
> saved [304543275/304543275]
>
> Uncompressing to
> /usr/share/cloudstack-common/scripts/storage/secondary/737e9330-692c-4525-bf82-4185cd1d9ff0.qcow2.tmp
> (type bz2)...could take a long time
> Moving to
> /mnt/template/tmpl/1/NULL///737e9330-692c-4525-bf82-4185cd1d9ff0.qcow2...could
> take a while
> Successfully installed system VM template  to /mnt/template/tmpl/1/NULL/
>
> It’s also didn’t work for me. Is there anything else I need to take care ?
>
> Can someone help how to re-register the systemVM template again.
>
>
> Vivek Kumar
>
>
>

-- 

Andrija Panić

Reply via email to