Cloudstack (4.2): Tip #1

This tip will come in handy when needing to figure out what link to use for downloading the right SystemVM for you environment. This especially useful during the installation and setup phase. I have posted a couple of installation processes and this was not included but take this in consideration given things change rapidly with open source software.

From a commandline log into mysql:

[root@labcldstk01 ~]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 725
Server version: 5.1.69 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

Once your in change to the “cloud” database:

mysql> use cloud
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

Then run this sql query:

mysql> select id,name,url,type,hypervisor_type from vm_template where name like 'SystemVM%';;

You will get an output similar to the one shown below.

| id | name                          | url                                                                                      | type   | hypervisor_type |
|  1 | SystemVM Template (XenServer) |   | SYSTEM | XenServer       |
|  3 | SystemVM Template (KVM)       | | SYSTEM | KVM             |
|  8 | SystemVM Template (vSphere)   |                     | SYSTEM | VMware          |
|  9 | SystemVM Template (HyperV)    |   | SYSTEM | Hyperv          |
| 10 | SystemVM Template (LXC)       |              | SYSTEM | LXC             |
5 rows in set (0.00 sec)

Once you have this information you can run the “cloud-install-sys-tmplt” script as shown in my “Post Installation” blog post. Example shown below.

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u "http://system template link" -h kvm -F

Cloudstack (4.2): Tip #1 originally appeared on theHyperadvisor by Antone Heyward

Tags: ,

One Response to Cloudstack (4.2): Tip #1

  1. Artiq on October 9, 2020 at 1:53 am

    after installing Yum libXau-devel.x86_64 libXau.x86_64 & follow your tips issue was resolved.


Leave a Reply


The opinions expressed on this blog are solely those of the individual that left it, and do not reflect the opinions of their employer.