Instances (VMs): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 8: | Line 8: | ||
<span id="InstanzStart"></span> | <span id="InstanzStart"></span> | ||
= | = Launching an Instance = | ||
'''SSH | == Create an Instance (GUI) == | ||
: | # 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 / | ssh -i /path/to/key <username>@<ip-address> | ||
</code> | </code> | ||
: | : The corresponding SSH usernames are listed in [[SSH-Benutzernamen|this reference list]]. | ||
== | == Configure an Instance with Ansible == | ||
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)
- 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.,
myVM01). 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:
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)
- Im bwCloud-OS-Dashboard anmelden und oben links die gewünschte Region auswählen.
- Zu Project → Compute → Instances navigieren.
- Bei der gewünschten Instanz rechts das Dropdown öffnen und Resize Instance wählen.
- Größeren Flavor auswählen (z. B. von
m1.smallaufm1.medium) und mit Resize bestätigen. - Warten, bis der Status auf VERIFY_RESIZE steht und die VM wieder erreichbar ist.
Nach dem Resize: prüfen & bestätigen
- Prüfen, ob die Ressourcen passen:
- RAM/CPU:
free -h,nproc - Plattenlayout:
lsblk,df -h
- RAM/CPU:
- Wenn alles läuft: im Instanzen-Dropdown Confirm Resize wählen.
- 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 resize2fsbzw.sudo xfs_growfs). - Während des Resizes wird die VM neu gestartet; die IP-Adresse bleibt erhalten.