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

1 comment

Add yours

Comments are closed.