How to log in to system VMs in CloudStack

Last updated on November 21, 2020 by Dan Nanni

In CloudStack, there are two system VMs (Console Proxy VM and Secondary Storage VM) that are automatically created by CloudStack for each zone. Console Proxy VM (CPVM) provides console access to tenant's guest VMs, while Secondary Storage VM (SSVM) downloads and maintains VM templates used by tenants. While setting up CloudStack, you may experience problems with either of these system VMs.

For example, for any reason SSVM cannot reach the Internet, or cannot download a default system template from http://download.cloud.com. In that case, logging in to SSVM helps diagnose the problem.

You can log in to a system VM via SSH from within the compute node that runs the VM, as follows.

In the system VMs created by CloudStatck, sshd listens on the link-local address (in 169.254.0.0/16 subnet) only, and no other interface. Therefore, you first need to find out the link-local address assigned to a system VM in question. To find out the link-local address information of the system VM, go to Infrastructure menu of CloudStack's web-based management interface.

Then, SSH to the system VM on port number 3922 from within their underlying compute node as follows.

$ ssh -i /root/.ssh/id_rsa.cloud -p 3922 [email protected] 

Support Xmodulo

This website is made possible by minimal ads and your gracious donation via PayPal or credit card

Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.

Xmodulo © 2021 ‒ AboutWrite for UsFeed ‒ Powered by DigitalOcean