The virtual machine cannot be accessed via SSH. What should I do?

ZSvirt was open-sourced from the ZStack ZSphere commercial project and has since developed independently. Some code, configuration, and documentation still retain historical ZStack/ZSphere names (such as environment variables, configuration items, dependencies, paths, and commands). These names are for compatibility only and do not affect the normal use of ZSvirt.

Symptom

The virtual machine responds to Ping but cannot be connected via SSH.

Cause

A storage disconnection caused an I/O error on the virtual machine, putting it in read-only mode.

Solution

  1. Log in to the virtual machine console and run the following command to create a file and check whether the virtual machine is in read-only mode:

    [root@localhost ~]# touch  /root/zstack.txt
  2. If the file cannot be created, restart the virtual machine.

On this page