You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kvm: direct download templates for system VM (apache#134)
* kvm: direct download templates for system VM
System VMs now support direct download templates.
Different direct download timeouts have been made configurable with new global settings.
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* suggestion applied
Co-authored-by: Andrija Panic <45762285+andrijapanicsb@users.noreply.github.com>
Co-authored-by: Andrija Panic <45762285+andrijapanicsb@users.noreply.github.com>
Copy file name to clipboardExpand all lines: source/adminguide/templates/_bypass-secondary-storage-kvm.rst
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
.. _bypass-secondary-storage-kvm:
18
18
19
19
Bypassing Secondary Storage For KVM templates
20
-
--------------------------------------------
20
+
---------------------------------------------
21
21
22
22
CloudStack provides an additional way to register and use templates on KVM.
23
23
@@ -41,6 +41,13 @@ To enable this option for a template:
41
41
42
42
After the template is registered, it is automatically available for VM deployments.
43
43
44
+
From CloudStack 4.14.0, system VM templates also support direct download. An administrator can register a new system VM template as ROUTING or USER type with the direct download flag, and it can be changed to SYSTEM type during the upgrade or by out-of-band database changes. Type of newly registered template can be changed to SYSTEM in the database using a SQL query similar to:
45
+
46
+
.. code:: bash
47
+
48
+
UPDATE cloud.vm_template SET type=’SYSTEM’ WHERE uuid=’UUID_OF_NEW_TEMPLATE’;
49
+
50
+
44
51
Uploading Certificates for Direct Downloads
45
52
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46
53
For direct downloads over HTTPS, the KVM hosts must have valid certificates. These certificates can be either self-signed or signed and will allow the KVM hosts to access the templates/ISOs and download them.
@@ -78,7 +85,7 @@ CloudStack provides some APIs to handle certificates for direct downloads:
As new hosts may be added to a zone which do not include a certificate which was previously uploaded to pre-existing hosts.
84
91
@@ -88,3 +95,14 @@ CloudStack provides a way to synchronize certificates across all the connected h
88
95
- Enumerate the connected hosts in a zone
89
96
- Check which hosts are missing the certificates which have been already uploaded to other hosts
90
97
- Upload missing certificates to hosts
98
+
99
+
Direct Download Timeouts
100
+
~~~~~~~~~~~~~~~~~~~~~~~~
101
+
102
+
With 4.14.0, ability to configure different timeout values for the direct downloading of templates has been added. Three new global settings have been added for this:
103
+
104
+
- **direct.download.connect.timeout** - Connection establishment timeout in milliseconds for direct download. Default value: 5000 milliseconds.
105
+
106
+
- **direct.download.socket.timeout** - Socket timeout (SO_TIMEOUT) in milliseconds for direct download. Default value: 5000 milliseconds.
107
+
108
+
- **direct.download.connection.request.timeout** - Requesting a connection from connection manager timeout in milliseconds for direct download. Default value: 5000 milliseconds. This setting is hidden and not visible in UI.
0 commit comments