Instances (VMs): Difference between revisions
No edit summary |
No edit summary |
||
| Line 27: | Line 27: | ||
It is also possible to create an instance automatically. Details can be found [[Automation & Tools#Prepare an Instance via Ansible|here]]. | It is also possible to create an instance automatically. Details can be found [[Automation & Tools#Prepare an Instance via Ansible|here]]. | ||
= | = Resources of Instances = | ||
Various resources are available in bwCloud-OS. If you need more quota, you can request it | Various resources packages (flavors) are available in bwCloud-OS. If you need more quota to use them, you can request it, as explained [[(Group-)Projects & Quota|here]]. | ||
{{:bwCloud-OS Provided-Flavors}} | {{:bwCloud-OS Provided-Flavors}} | ||
Revision as of 20:34, 15 October 2025
| In a Nutshell |
|
Creating Instances
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 usually sufficient; no changes are needed.
- For the Security Group, no adjustments are 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.
Configure an Instance with Ansible
It is also possible to create an instance automatically. Details can be found here.
Resources of Instances
Various resources packages (flavors) are available in bwCloud-OS. If you need more quota to use them, you can request it, as explained here. BwCloud-OS Provided-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)
- Log in to the bwCloud-OS Dashboard and select the desired region in the top left.
- Navigate to Project → Compute → Instances.
- Open the dropdown menu for the desired instance and select Resize Instance.
- Select a larger flavor (e.g., from
m1.smalltom1.medium) and confirm with Resize. - Wait until the status shows VERIFY_RESIZE and the VM is reachable again.
After Resizing: Verify & Confirm
- Check that the resources match:
- RAM/CPU:
free -h,nproc - Disk layout:
lsblk,df -h
- RAM/CPU:
- If everything is working: select Confirm Resize in the instance dropdown.
- If problems occur: select Revert Resize (restores the previous flavor).
Notes
- The VM will be restarted during the resize; the IP address remains unchanged.
- You can resize an instance to a smaller flavor to reduce allocated resources. However, this is not recommended, as it may lead to unpredictable behavior or system instability.
- Attached data volumes must be resized separately via Volumes → Extend Volume and then extended within the guest system (e.g.,
sudo resize2fsorsudo xfs_growfs).
Connecting to Instances
SSH Keys
To connect to your virtual machines, you need an SSH key pair. You can either use your own keys or generate new ones via bwCloud-OS. Detailed instructions can be found here.
SSH ACCESS
- Once started, you can log in via SSH from Windows, MacOS or Linux like:
ssh -i /path/to/private-key <username>@<ip-address>
- The corresponding SSH usernames are listed in this reference list.
LOST ACCESS
If you lose your SSH key, it cannot be replaced — not even by Support. Access is only possible if you previously enabled password login via the virtual console.
A (tedious) workaround is described here.