Instances (VMs): Difference between revisions

From bwCloud-OS
Jump to navigation Jump to search
Admin (talk | contribs)
Admin (talk | contribs)
Line 31: Line 31:
It is also possible to create an instance automatically. Details can be found [[Automatisierung & Tools#Instanz mit Ansible einrichten|here]].
It is also possible to create an instance automatically. Details can be found [[Automatisierung & Tools#Instanz mit Ansible einrichten|here]].


= Quota und Ressourcen =
= Quota and resources =


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|hier]].
Various resources are available in bwCloud-OS. If you need more quota, you can request it. You can find more information [[here|here]].




{{:BwCloud-OS Bereitgestellete-Flavors}}
{{:BwCloud-OS Bereitgestellete-Flavors}}


== Instanz vergrößern (Resize), nachdem zusätzliche Quota gewährt wurde ==
== Resize an Instance after Additional Quota Has Been Granted ==


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.
If your project has been allocated more quota (vCPU/RAM/instances), you can upgrade an existing VM to a larger '''hardware flavor'''. This will restart the VM and change the flavor (vCPU/RAM).


'''Wichtig:'''
'''Important:'''
* Daten auf '''anhängten Volumes''' (Cinder) bleiben unverändert.
* Data on '''attached volumes''' (Cinder) will remain unchanged.
* Sichern Sie wichtige Daten vor dem Resize.
* Back up important data before performing the resize.


=== Voraussetzungen ===
=== Prerequisites ===
* Ausreichende Quota in der gewählten Region.
* Sufficient quota in the selected region.
* Passender größerer Flavor ist vorhanden (siehe [[BwCloud-OS Bereitgestellete-Flavors|Hardware-Flavors]]).
* Appropriate larger flavor available (see [[BwCloud-OS Bereitgestellete-Flavors|Hardware Flavors]]).
* Wartungsfenster einplanen (kurzer Neustart/Unterbrechung).
* Schedule a maintenance window (short restart / brief downtime).


=== Schritt-für-Schritt (Dashboard) ===
=== Step-by-Step (Dashboard) ===
# Im [https://dashboard.bw-cloud.org bwCloud-OS-Dashboard] anmelden und oben links die gewünschte '''Region''' auswählen.
# Log in to the [https://dashboard.bw-cloud.org bwCloud-OS Dashboard] and select the desired '''region''' in the top left.
# Zu ''Project → Compute → Instances'' navigieren.
# Navigate to Project → Compute → Instances.
# Bei der gewünschten Instanz rechts das Dropdown öffnen und '''''Resize Instance''''' wählen.
# Open the dropdown menu for the desired instance and select '''''Resize Instance'''''.
# Größeren '''Flavor''' auswählen (z. B. von <code>m1.small</code> auf <code>m1.medium</code>) und mit ''Resize'' bestätigen.
# Select a larger '''flavor''' (e.g., from <code>m1.small</code> to <code>m1.medium</code>) and confirm with ''Resize''.
# Warten, bis der Status auf '''VERIFY_RESIZE''' steht und die VM wieder erreichbar ist.
# Wait until the status shows '''VERIFY_RESIZE''' and the VM is reachable again.


=== Nach dem Resize: prüfen & bestätigen ===
=== After Resizing: Verify & Confirm ===
# Prüfen, ob die Ressourcen passen:
# Check that the resources match:
## RAM/CPU: <code>free -h</code>, <code>nproc</code>
## RAM/CPU: <code>free -h</code>, <code>nproc</code>
## Plattenlayout: <code>lsblk</code>, <code>df -h</code>
## Disk layout: <code>lsblk</code>, <code>df -h</code>
# Wenn alles läuft: im Instanzen-Dropdown '''''Confirm Resize''''' wählen.
# If everything is working: select '''''Confirm Resize''''' in the instance dropdown.
# Falls Probleme auftreten: im Dropdown '''''Revert Resize''''' wählen (stellt den alten Flavor wieder her).
# If problems occur: select '''''Revert Resize''''' (restores the previous flavor).


 
=== Notes ===
=== Hinweise ===
* Attached data volumes must be resized separately via ''Volumes → Extend Volume'' and then extended within the guest system (e.g., <code>sudo resize2fs</code> or <code>sudo xfs_growfs</code>).
* Anhängte Daten-Volumes müssen separat über ''Volumes → Extend Volume'' vergrößert und anschließend im Gastsystem erweitert werden (z. B. <code>sudo resize2fs</code> bzw. <code>sudo xfs_growfs</code>).
* The VM will be restarted during the resize; the IP address remains unchanged.
* Während des Resizes wird die VM neu gestartet; die IP-Adresse bleibt erhalten.

Revision as of 12:03, 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 and resources

Various resources are available in bwCloud-OS. If you need more quota, you can request it. You can find more information here.


BwCloud-OS Bereitgestellete-Flavors

Resize an Instance after Additional Quota Has Been Granted

If your project has been allocated more quota (vCPU/RAM/instances), you can upgrade an existing VM to a larger hardware flavor. This will restart the VM and change the flavor (vCPU/RAM).

Important:

  • Data on attached volumes (Cinder) will remain unchanged.
  • Back up important data before performing the resize.

Prerequisites

  • Sufficient quota in the selected region.
  • Appropriate larger flavor available (see Hardware Flavors).
  • Schedule a maintenance window (short restart / brief downtime).

Step-by-Step (Dashboard)

  1. Log in to the bwCloud-OS Dashboard and select the desired region in the top left.
  2. Navigate to Project → Compute → Instances.
  3. Open the dropdown menu for the desired instance and select Resize Instance.
  4. Select a larger flavor (e.g., from m1.small to m1.medium) and confirm with Resize.
  5. Wait until the status shows VERIFY_RESIZE and the VM is reachable again.

After Resizing: Verify & Confirm

  1. Check that the resources match:
    1. RAM/CPU: free -h, nproc
    2. Disk layout: lsblk, df -h
  2. If everything is working: select Confirm Resize in the instance dropdown.
  3. If problems occur: select Revert Resize (restores the previous flavor).

Notes

  • Attached data volumes must be resized separately via Volumes → Extend Volume and then extended within the guest system (e.g., sudo resize2fs or sudo xfs_growfs).
  • The VM will be restarted during the resize; the IP address remains unchanged.