Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Import System VM Template
    • Modify /usr/lib64/cloud/common/scripts/storage/secondary/cloud-install-sys-tmplt and add a section for "lxc"
    • Code Block
      if [ "$templateId" == "" ]
      then
         if [ "$hyper" == "kvm" ]
      ...   then
            ext="qcow2"
            templateId=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "select max(id) from cloud.vm_template where type = \"SYSTEM\" and\
       hypervisor_type = \"KVM\" and removed is null"`)
      <insert below>
         elif [ "$hyper" == "lxc" ]
         then
            ext="vhdqcow2"
            templateId=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "select max(id) from cloud.vm_template where type = \"SYSTEM\" and\
       hypervisor_type = \"LXC\" and removed is null"`)
      <end of insert>
         elif [ "$hyper" == "xenserver" ]
      ...
      
    • Run the import script
    • Code Block
      /usr/lib64/cloud/common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h lxc -F
      

...