Monday, 12 September 2016

Process to deploy new jars to System VMs



First of all, enable SSH for System VM for which you want to deploy jars; refer this post.


  1. SSH to the System VM
    $ ssh -p 3922 root@<Console_Proxy_Public_IP>
  2. If you want, backup the old jar file
    located at /usr/local/cloud/systemvm/
  3. From developer machine, copy the jar to System VM
    $ scp -P 3922 root@:/usr/local/cloud/systemvm/
  4. On the System VM, restart the cloud process by running
    $ service cloud restart

Enable SSH/SCP for CloudStack System VMs



  1. Open Console of System VM
  2. Log in using default username and password root/password
  3. Modify the file /etc/ssh/sshd_config
    a. Uncomment lines with 
    ListenAddressb. Uncomment lines with PasswordAuthentication yes and delete/comment the line PasswordAuthentication noc. Save and close
    d. Restart SSH service service ssh restart
  4. Find out the public IP of System VM from CloudStack UI by going
    Infrastructure > System VMs > Chose a System VM for whom you want to enable SSH > Select public IPDo SSH by 
  5. Do SSH by
    ssh <IP from step 4> -p 3922