Guide Benutzung Rescue-System vServer/en

Aus EUserv Wiki

Version vom 13:38, 18. Jul. 2013 bei Root (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Usage of virtual server rescue-system

Inhaltsverzeichnis

Usage of virtual server rescue-system

General

If you have a virtual server plan by EUserv, there is the possibility to start the virtual server in the rescue system. Before the option Autostart must be enabled. To start your virtual server in the rescue system, you have to activate it in the customer service center first. The installed system can be found under /OLD_SYSTEM.

While your server is in the rescue mode, a webreset is not possible.

Activation/Deactivation of the the rescue system

How you can activate/deactivate the rescue system can be found in the following wiki guide:

Activation/Deactivation of the rescue system at virtual servers

Change of the password

  • Activate the rescue system via the customer service center.
  • Connect with your virtual server via a SSH program (e.g. Putty) by entering the IP address of your virtual server.


Datei:vserver_rescue_system_2_1_ip.png


  • It appears the SSH host key, which can be confirmed with Yes.


Datei:vserver_rescue_system_1_1.png


  • Enter root as login username and your default password for your virtual server.


Datei:vserver_rescue_system_3_1_ip.png


  • You are in the rescue system of your virtual server.


Datei:vserver_rescue_system_4_1_ip.png


  • Change into the installed system of the virtual server with the following command.
 chroot /OLD_SYSTEM
  • Run passwd and type the new password.
 passwd root
  • Leave the installed system.
 exit
  • Disconnect the SSH session or close your SSH program.
  • Deactivate the rescue system via the customer service center.

Creation of a backup

  • Activate the rescue system via the customer service center.
  • Connect with a SSH program (e.g. Putty) via SSH with your virtual server by entering the IP address of your virtual server.
  • It appears the SSH host key, which can be confirmed with Yes.
  • Create the backup by packing the folder OLD_SYSTEM to a .tar archive.
 tar cfvz /backup/backup.tar.gz /OLD_SYSTEM
  • After the backup has been created, leave the folder OLD_SYSTEM.
  • Disconnect the SSH session or close your SSH program.
  • Deactivate the rescue system via the customer service center.

Installation of an own OS image

  • Activate the rescue system via the customer service center.
  • Connect with a SSH program (e.g. Putty) via SSH with your virtual server by entering the IP address of your virtual server.
  • It appears the SSH host key, which can be confirmed with Yes.
  • First, create a backup of your operating system.
  • Create a folder for the OS image:
mkdir -p /root/os_image
  • Download your own OS image into the created folder:
wget "http://download.openvz.org/template/precreated/contrib/debian-7.0-x86_64.tar.gz" -O /root/os_image/
  • Delete the content of the folder /OLD_SYSTEM. Please notice, that all your data will be lost!
rm -rf /OLD_SYSTEM/*
  • Extract the OpenVZ image into the folder /OLD_SYSTEM
tar xfvz /root/os_image/debian-7.0-x86_64.tar.gz -C /OLD_SYSTEM/
  • Deactivate the rescue mode of your virtual server in the customer service center to restart your virtual server.