| .. Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information# |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| Prepare the System VM Template |
| ------------------------------ |
| |
| Secondary storage must be seeded with a template that is used for |
| CloudStack system VMs. |
| |
| .. note:: |
| When copying and pasting a command, be sure the command has pasted as a |
| single line before executing. Some document viewers may introduce unwanted |
| line breaks in copied text. |
| |
| #. On the Management Server, run one or more of the following |
| ``cloud-install-sys-tmplt`` commands to retrieve and decompress the |
| system VM template. Run the command for each hypervisor type that you |
| expect end users to run in this Zone. |
| |
| If your secondary storage mount point is not named ``/mnt/secondary``, |
| substitute your own mount point name. |
| |
| If you set the CloudStack database encryption type to "web" when you |
| set up the database, you must now add the parameter ``-s |
| <management-server-secret-key>``. See :ref:`about-password-key-encryption`. |
| |
| This process will require approximately 5 GB of free space on the |
| local file system and up to 30 minutes each time it runs. |
| |
| * For Hyper-V |
| |
| .. sourcecode:: bash |
| |
| /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \ |
| -m /mnt/secondary \ |
| -u http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-hyperv.vhd.zip \ |
| -h hyperv \ |
| -s <optional-management-server-secret-key> \ |
| -F |
| |
| * For XenServer: |
| |
| .. sourcecode:: bash |
| |
| /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \ |
| -m /mnt/secondary \ |
| -u http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-xen.vhd.bz2 \ |
| -h xenserver \ |
| -s <optional-management-server-secret-key> \ |
| -F |
| |
| * For vSphere: |
| |
| .. sourcecode:: bash |
| |
| /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \ |
| -m /mnt/secondary \ |
| -u http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-vmware.ova \ |
| -h vmware \ |
| -s <optional-management-server-secret-key> \ |
| -F |
| |
| * For KVM: |
| |
| .. sourcecode:: bash |
| |
| /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \ |
| -m /mnt/secondary \ |
| -u http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-kvm.qcow2.bz2 \ |
| -h kvm \ |
| -s <optional-management-server-secret-key> \ |
| -F |
| |
| * For LXC: |
| |
| .. sourcecode:: bash |
| |
| /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \ |
| -m /mnt/secondary \ |
| -u http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-kvm.qcow2.bz2 \ |
| -h lxc \ |
| -s <optional-management-server-secret-key> \ |
| -F |
| |
| * For OVM3: |
| |
| .. sourcecode:: bash |
| |
| /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \ |
| -m /mnt/secondary \ |
| -u http://cloudstack.apt-get.eu/systemvm/4.6/systemvm64template-4.6.0-ovm.raw.bz2 \ |
| -h ovm3 \ |
| -s <optional-management-server-secret-key> \ |
| -F |
| |
| #. If you are using a separate NFS server, perform this step. If you are |
| using the Management Server as the NFS server, you MUST NOT perform |
| this step. |
| |
| When the script has finished, unmount secondary storage and remove |
| the created directory. |
| |
| .. sourcecode:: bash |
| |
| umount /mnt/secondary |
| rmdir /mnt/secondary |
| |
| #. Repeat these steps for each secondary storage server. |