Instances (VMs)

From bwCloud-OS
Revision as of 11:35, 22 September 2025 by Admin (talk | contribs) (Instanz starten)
Jump to navigation Jump to search

Quickstart: Store SSH key pair


Launching an Instance

Create an Instance (GUI)

  1. Click Instances in the left menu. On the new page, select the Launch Instance button. A dialog will open, guiding you through the process step by step.
  2. First, give the instance a meaningful name (e.g., myVM01). Click Next at the bottom.
  3. Select a source / Image for the instance (e.g., Debian X). Add the selection using the ↑ symbol; the chosen image will appear under Allocated. To discard a selection, click the ↓ symbol in the row.
  4. In the next step, select a Flavor. If the current quota is too low, a yellow warning icon will appear.
  5. Next, choose the Network. In most cases, the default settings are sufficient; no changes are required.
  6. For the Security Group, no adjustments are usually necessary. Changes can be made later if needed.
  7. Select the public SSH Key to be integrated into the instance. This step is mandatory; without a registered SSH key, access to the running instance is not possible.
  8. Click Launch Instance. The instance will start.
  9. After the instance has successfully started, the IP address will be displayed in the overview. The instance can be accessed at this address.

SSH Access

Once started, you can log in via SSH:

ssh -i /path/to/key <username>@<ip-address>

The corresponding SSH usernames are listed in this reference list.

Configure an Instance with Ansible

It is also possible to create an instance automatically. Details can be found here.

Quota und Ressourcen

In der bwCloud stehen verschiedene Ressourcen zur Verfügung. Wenn Sie mehr Quota benötigen, können Sie diese beantragen. Mehr Infos dazu finden Sie hier.


BwCloud-OS Bereitgestellete-Flavors

Instanz vergrößern (Resize), nachdem zusätzliche Quota gewährt wurde

Wenn Ihrem Projekt mehr Quota (vCPU/RAM/Instanzen) zugeteilt wurde, können Sie eine bestehende VM auf einen größeren Hardware-Flavor umstellen. Dabei wird die VM neu gestartet und der Flavor (vCPU/RAM) geändert.

Wichtig:

  • Daten auf anhängten Volumes (Cinder) bleiben unverändert.
  • Sichern Sie wichtige Daten vor dem Resize.

Voraussetzungen

  • Ausreichende Quota in der gewählten Region.
  • Passender größerer Flavor ist vorhanden (siehe Hardware-Flavors).
  • Wartungsfenster einplanen (kurzer Neustart/Unterbrechung).

Schritt-für-Schritt (Dashboard)

  1. Im bwCloud-OS-Dashboard anmelden und oben links die gewünschte Region auswählen.
  2. Zu Project → Compute → Instances navigieren.
  3. Bei der gewünschten Instanz rechts das Dropdown öffnen und Resize Instance wählen.
  4. Größeren Flavor auswählen (z. B. von m1.small auf m1.medium) und mit Resize bestätigen.
  5. Warten, bis der Status auf VERIFY_RESIZE steht und die VM wieder erreichbar ist.

Nach dem Resize: prüfen & bestätigen

  1. Prüfen, ob die Ressourcen passen:
    1. RAM/CPU: free -h, nproc
    2. Plattenlayout: lsblk, df -h
  2. Wenn alles läuft: im Instanzen-Dropdown Confirm Resize wählen.
  3. Falls Probleme auftreten: im Dropdown Revert Resize wählen (stellt den alten Flavor wieder her).


Hinweise

  • Anhängte Daten-Volumes müssen separat über Volumes → Extend Volume vergrößert und anschließend im Gastsystem erweitert werden (z. B. sudo resize2fs bzw. sudo xfs_growfs).
  • Während des Resizes wird die VM neu gestartet; die IP-Adresse bleibt erhalten.