Instances (VMs): Difference between revisions

From bwCloud-OS
Jump to navigation Jump to search
Admin (talk | contribs)
No edit summary
Admin (talk | contribs)
Line 8: Line 8:


<span id="InstanzStart"></span>
<span id="InstanzStart"></span>
= Instanz starten =
= Launching an Instance =
== Instanz erstellen (GUI) ==
# Im linken Menü auf ''Instances'' klicken. Auf der neuen Seite den Button '''Launch Instance''' wählen. Es öffnet sich ein Dialog, der Schritt für Schritt durch den Vorgang führt.
# Zuerst der Instanz einen aussagekräftigen Namen geben (z. B. <code>myVM01</code>). Unten auf '''Next''' klicken.
# Eine Quelle/''Image'' auswählen, auf der die Instanz basieren soll (z. B. Debian X). Die Auswahl mit dem ↑-Symbol hinzufügen; das gewählte Image erscheint unter ''Allocated''. Um eine Auswahl zu verwerfen, das ↓-Symbol in der Zeile anklicken.
# Im nächsten Schritt ein ''Flavor'' auswählen. Ist die aktuelle Quota zu gering, weist ein gelbes Warnsymbol darauf hin.
# Anschließend das ''Network'' wählen. In der Regel sind die Standardeinstellungen ausreichend; es ist keine Änderung erforderlich.
# Bei der ''Security Group'' sind üblicherweise keine Anpassungen nötig. Änderungen können später vorgenommen werden.
# Den öffentlichen '''SSH-Key''' auswählen, der in die Instanz integriert werden soll. Dieser Schritt ist zwingend erforderlich; ohne hinterlegten SSH-Key ist kein Zugang zur laufenden Instanz möglich.
# Auf '''Launch Instance''' klicken. Die Instanz wird gestartet.
# Nach dem erfolgreichen Start wird in der Übersicht die '''IP-Adresse''' angezeigt. Unter dieser Adresse ist die Instanz erreichbar.


'''SSH-Zugriff'''
== Create an Instance (GUI) ==
: Nach dem Start ist eine Anmeldung per SSH möglich:
# 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.
# First, give the instance a meaningful name (e.g., <code>myVM01</code>). Click '''Next''' at the bottom.
# 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.
# In the next step, select a ''Flavor''. If the current quota is too low, a yellow warning icon will appear.
# Next, choose the ''Network''. In most cases, the default settings are sufficient; no changes are required.
# For the ''Security Group'', no adjustments are usually necessary. Changes can be made later if needed.
# 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.
# Click '''Launch Instance'''. The instance will start.
# 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:
<code>
<code>
ssh -i /pfad/zum/key <benutzername>@<ip-adresse>
ssh -i /path/to/key <username>@<ip-address>
</code>
</code>
: Die passenden SSH-Benutzernamen sind in [[SSH-Benutzernamen|dieser Referenzliste]] aufgeführt.
: The corresponding SSH usernames are listed in [[SSH-Benutzernamen|this reference list]].


== Instanz mit Ansible einrichten ==
== Configure an Instance with Ansible ==
Es besteht auch die Möglichkeit eine Instanz automatisiert zu erstellen. Details finden Sie [[Automatisierung & Tools#Instanz mit Ansible einrichten|hier]].  
It is also possible to create an instance automatically. Details can be found [[Automatisierung & Tools#Instanz mit Ansible einrichten|here]].


= Quota und Ressourcen =
= Quota und Ressourcen =

Revision as of 11:35, 22 September 2025

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.