Create a Windows Server with a root volume with different performance
Diese Seite ist noch nicht in deiner Sprache verfügbar. Englische Seite aufrufen
To create a server with a different performance type, you must first create the volume. Once the volume with the desired performance type has been successfully created, you can proceed with creating your server based on this volume.
Create the volume from an image and choose the proper performance type
Section titled “Create the volume from an image and choose the proper performance type”Regions and Availability Zones BlockStorage
Create your volume with a different performance type and get the VolumeID via the STACKIT IAAS API/CLI (see also How to create a VM via IaaS-API).
stackit beta volume create --performance-class `<PERFORMANCE_CLASS>` --availability-zone `<AVAILABILITY_ZONE>` --name `<VOLUME_NAME>` --source-id `<IMAGE_ID>` --source-type image --size `<IMAGE_SIZE>`| —performance-class | Defines the performance type of the volume |
—availability-zone <AVAILABILITY_ZONE> | Specifies the availability zone where the volume will be created. This ensures the volume is provisioned in the desired data center location |
—name <VOLUME_NAME> | Defines a custom name for the new volume, making it easier to identify and manage |
—source-id <IMAGE_ID> | Indicates the ID of the source image from which the volume will be created. This allows you to create volumes based on existing images |
| —source-type image | Specifies that the source for the new volume is an image. This parameter works in conjunction with the —source-id flag |
—size <IMAGE_SIZE> | Determines the size of the new volume. The size should be specified in an appropriate unit (e.g., GB). |
Create the server from this volume with STACKIT IAAS API/CLI
Section titled “Create the server from this volume with STACKIT IAAS API/CLI”Use the VolumeID and create your server via the STACKIT IAAS API/CLI (see also Step 1.2: Create a Server from the CLI/API -Windows-).
stackit beta server create -n `<SERVERNAME>` --availability-zone `<AVAILABILITY_ZONE>` --machine-type `<MACHINE_TYPE>` --keypair-name `<KEYPAIR_NAME>` --network-id `<NETWORK_ID>` --boot-volume-source-id `<VOLUME_ID>` --boot-volume-source-type volume --security-groups `<SECURITY_GROUP_ID>`-n <SERVERNAME> | Specifies the name for the new server. |
—availability-zone <AVAILABILITY_ZONE> | Specifies the availability zone where the server will be created. This ensures the server is provisioned in the desired data center location |
—machine-type <MACHINE_TYPE> | Sets the hardware configuration for the server. |
—keypair-name <KEYPAIR_NAME> | Assigns the SSH key pair for secure access to the server. |
—network-id <NETWORK_ID> | Connects the server to a specific network. |
—boot-volume-source-id <VOLUME_ID> | Specifies the ID of the volume to use as the boot volume. |
| —boot-volume-source-type volume | Indicates that the boot volume source is an existing volume. |
—security-groups <SECURITY_GROUP_ID> | Associates the server with specified security group(s) for network access control. |