<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>16.2. Accessing System VMs</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Admin_Guide-4.2.0-en-US-1-" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
              addID('Apache_CloudStack');
              
	      addID('Apache_CloudStack.4.2.0');
              
              addID('Apache_CloudStack.4.2.0.books');
	      addID('Apache_CloudStack.4.2.0.Admin_Guide');
              </script><link rel="home" href="index.html" title="CloudStack Administrator's Guide" /><link rel="up" href="working-with-system-vm.html" title="Chapter 16. Working with System Virtual Machines" /><link rel="prev" href="system-vm-template.html" title="16.1. The System VM Template" /><link rel="next" href="multiple-system-vm-vmware.html" title="16.3. Multiple System VM Support for VMware" /></head><body class="toc_embeded "><div id="tocdiv" class="toc"><iframe id="tocframe" class="toc" src="../../../../toc.html">This is an iframe, to view it upgrade your browser or enable iframe display.</iframe></div><p id="title"><a class="left" href="http://cloudstack.apache.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://cloudstack.apache.org/docs"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="system-vm-template.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="multiple-system-vm-vmware.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" id="accessing-system-vms" lang="en-US"><div class="titlepage"><div><div><h2 class="title">16.2. Accessing System VMs</h2></div></div></div><div class="para">
		It may sometimes be necessary to access System VMs for diagnostics of certain issues, for example if you are experiencing SSVM (Secondary Storage VM) connection issues. Use the steps below in order to connect to the SSH console of a running System VM.
	</div><div class="para">
		Accessing System VMs over the network requires the use of private keys and connecting to System VMs SSH Daemon on port 3922. XenServer/KVM Hypervisors store this key at /root/.ssh/id_rsa.cloud on each CloudStack agent. To access System VMs running on ESXi, the key is stored on the management server at /var/lib/cloudstack/management/.ssh/id_rsa.
	</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
				Find the details of the System VM
			</div><div class="orderedlist"><ol class="loweralpha"><li class="listitem"><div class="para">
						Log in with admin privileges to the CloudStack UI.
					</div></li><li class="listitem"><div class="para">
						Click Infrastructure, then System VMs, and then click the name of a running VM.
					</div></li><li class="listitem"><div class="para">
						Take a note of the 'Host', 'Private IP Address' and 'Link Local IP Address' of the System VM you wish to access.
					</div></li></ol></div><div class="para">
				<img src="images/view-systemvm-details.png" />
			</div></li><li class="listitem"><div class="para">
				XenServer/KVM Hypervisors
			</div><div class="orderedlist"><ol class="loweralpha"><li class="listitem"><div class="para">
						Connect to the Host of which the System VM is running.
					</div></li><li class="listitem"><div class="para">
						SSH the 'Link Local IP Address' of the System VM from the Host on which the VM is running.
					</div></li><li class="listitem"><div class="para">
						Format: ssh -i &lt;path-to-private-key&gt; &lt;link-local-ip&gt; -p 3922
					</div></li><li class="listitem"><div class="para">
						Example: root@faith:~# ssh -i /root/.ssh/id_rsa.cloud 169.254.3.93 -p 3922
					</div></li></ol></div></li><li class="listitem"><div class="para">
				ESXi Hypervisors
			</div><div class="orderedlist"><ol class="loweralpha"><li class="listitem"><div class="para">
						Connect to your CloudStack Management Server.
					</div></li><li class="listitem"><div class="para">
						ESXi users should SSH to the private IP address of the System VM.
					</div></li><li class="listitem"><div class="para">
						Format: ssh -i &lt;path-to-private-key&gt; &lt;vm-private-ip&gt; -p 3922
					</div></li><li class="listitem"><div class="para">
						Example: root@management:~# ssh -i /var/lib/cloudstack/management/.ssh/id_rsa 172.16.0.250 -p 3922
					</div></li></ol></div></li></ol></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="system-vm-template.html"><strong>Prev</strong>16.1. The System VM Template</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="multiple-system-vm-vmware.html"><strong>Next</strong>16.3. Multiple System VM Support for VMware</a></li></ul></body></html>
