Versions Compared

Key

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

...

I am currently running my dev/test setup on two machines: 1) runs the management + KVM agent and 2) the other runs the LXC agent. The following sections detail how to get the development code running so that you can spin up LXC containers with Cloudstack. It's not very elegant, but is the easiest way I've found to quickly get the system up with development code. There's probably an easier way to do this.

1. Install

...

Cloudstack 4.0

...

In this step we bring up the system with a KVM hypervisor. After the Secondary Storage VM starts up, we will swap out the cloud jars with the ones we've built.

  • From the CS Cloudstack UI: add a zone, pod, cluster, host, primary, and secondary for KVM
  • After the Secondary Storage VM starts up:
    • Code Block
      ssh -i /root/.ssh/id_rsa.cloud -p 3922 root@169.254.x.x (SSVM local link ip)
      cp -r /usr/local/cloud/systemvm /usr/local/cloud/systemvm.orig
      rm /usr/local/cloud/systemvm/cloud-*.jar
      scp root@<machine1>:<incubator-cloudstack-dir>/client/target/cloud-client-ui-4.1.0-SNAPSHOT/WEB-INF/lib/cloud-*.jar /usr/local/cloud/systemvm
      service cloud stop
      service cloud start
      

6. Setup LXC

  • From the CS Cloudstack UI: add a cluster, host, primary for LXC
  • Wait for the SSVM to download the Centos 6.3 LXC image
  • Create an LXC instance
  • Login with cloud/cloud