Versions Compared

Key

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

...

  • Load LXC data model
    • load cloudstack/setup/db/lxc.sql
  • Download the KVM Import System VM Template . NOTE: change the parameters to input as "lxc"
    • 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" ]
      ...
         elif [ "$hyper" == "lxc" ]
         then
            ext="vhd"
            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"`)
         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
      

...