You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Vivek Kumar <vi...@indiqus.com.INVALID> on 2020/09/23 12:47:11 UTC

Re-register the system VM template

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



Re: Re-register the system VM template

Posted by Vivek Kumar <vi...@indiqus.com.INVALID>.
Hey Andrija

You are such a gem..! Thanks a lot, it worked. So I had missed to change the state( from User to ’SYSTEM' in DB ). 


Vivek Kumar

This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential and/or privileged. If you are not the intended recipient please delete the original message and any copy of it from your computer system. You are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited unless proper authorization has been obtained for such action. If you have received this communication in error, please notify the sender immediately. Although IndiQus attempts to sweep e-mail and attachments for viruses, it does not guarantee that both are virus-free and accepts no liability for any damage sustained as a result of viruses.

> On 23-Sep-2020, at 7:17 PM, Andrija Panic <an...@gmail.com> wrote:
> 
> 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 <vivek.kumar@indiqus.com.invalid <ma...@indiqus.com.invalid>>
> 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>
>> <
>> 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>
>> <
>> 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ć


Re: Re-register the system VM template

Posted by Andrija Panic <an...@gmail.com>.
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 <vi...@indiqus.com.invalid>
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ć