Learn more about other configurations available for Virtual Servers.
Below are some additional features Virtual Servers offering even finer-grained control and configuration options for niche use cases.
Note
All additional features discussed in this document must be configured using the YAML editor if deploying a Virtual Server using the Cloud UI.
Ephemeral root disks
In many use cases, such as data processing or pixel-streaming, Virtual Servers do not need to be long-living, and in fact, they are best used ephemerally. In these instances, leveraging ephemeral root disks will speed up instantiation, as well as lower hosting costs.
⏰ Ephemeral root disks don't require a new root volume to be allocated, removing this time-consuming step from the instantiation process to make for faster boot times.
✨ Removing ephemeral root disks means they no longer need to be hosted, which reduces hosting costs overall.
✍️ Ephemeral disks are still writeable; modifications made at run-time are temporarily stored in the ephemeral disk of the active node. All changes written to the root disk are only lost when the Virtual Server is shut down or restarted.
Note
A shared filesystem volume, NFS, SMB, or Object storage should be used to store persistent data in data-processing use cases.
Deployment method:CoreWeave Cloud UI
When configuring an ephemeral root storage disk on the Cloud UI, the source image is cloned into a ReadOnlyMany type volume, as shown in the example below. Use the Cloud UI YAML editor to incorporate the configuration into the Virtual Server's manifest.
---apiVersion:v1kind:PersistentVolumeClaimmetadata:name:image-roxspec:accessModes: - ReadOnlyManydataSource:kind:PersistentVolumeClaimname:<source-root-disk-pvc># This name will be the same name as a DataVolume/VirtualServer used as the source.resources:requests:storage:40Gi# Must match the size of the source volumestorageClassName:block-nvme-ord1volumeMode:Block---apiVersion:virtualservers.coreweave.com/v1alpha1kind:VirtualServermetadata:name:example-vsspec:region:ORD1os:type:linuxresources:gpu:type:Quadro_RTX_4000count:1cpu:count:4memory:16Gistorage:root:size:40GistorageClassName:block-nvme-ord1ephemeral:truesource:pvc:namespace:tenant-example# Replace with your namespacename:image-rox# Change user name and pasword# User is on the sudoers list# users:# - username: SET YOUR USERNAME HERE# password: SET YOUR PASSWORD HERE # To use key-based authentication replace and uncomment ssh-rsa below with your public ssh key# sshpublickey: |# ssh-rsa AAAAB3NzaC1yc2EAAAA ... user@hostnamenetwork:public:false
When configuring an ephemeral root storage disk, the source image is cloned into a ReadOnlyMany type volume, as shown in the example below.
---apiVersion:v1kind:PersistentVolumeClaimmetadata:name:image-roxspec:accessModes: - ReadOnlyManydataSource:kind:PersistentVolumeClaimname:<source-root-disk-pvc># This name will be the same name as a DataVolume/VirtualServer used as the source.resources:requests:storage:40Gi# Must match the size of the source volumestorageClassName:block-nvme-ord1volumeMode:Block---apiVersion:virtualservers.coreweave.com/v1alpha1kind:VirtualServermetadata:name:example-vsspec:region:ORD1os:type:linuxresources:gpu:type:Quadro_RTX_4000count:1cpu:count:4memory:16Gistorage:root:size:40GistorageClassName:block-nvme-ord1ephemeral:truesource:pvc:namespace:tenant-example# Replace with your namespacename:image-rox# Change user name and pasword# User is on the sudoers list# users:# - username: SET YOUR USERNAME HERE# password: SET YOUR PASSWORD HERE # To use key-based authentication replace and uncomment ssh-rsa below with your public ssh key# sshpublickey: |# ssh-rsa AAAAB3NzaC1yc2EAAAA ... user@hostnamenetwork:public:false
Configuring the RunStrategy for the Virtual Server determines what CoreWeave's Virtual Server orchestration infrastructure will do on instance crash or shutdown. The default RunStrategy is RerunOnFailure, meaning Kubevirt will not restart the system when someone issues a shutdown command from the OS.
All available RunStrategy options:
Option
Description
Always
A Virtual Server will always be present. If the Virtual Server crashed, a new one will be spawned.
RerunOnFailure
Default. A VirtualMachineInstance will be respawned if the previous instance failed in an error state. It will not be re-created if the guest stopped successfully (e.g. shut down from inside guest).
Manual
The presence of a VirtualMachineInstance or lack thereof is controlled exclusively by the start/stop/restart VirtualMachine subresource endpoints.
Halted
No VirtualMachineInstance will be present. If a guest is already running, it will be stopped. This is the same behavior as spec.running: false.
Defines RunStrategy parameter. Default value is RerunOnFailure.
Example in plain text:
runStrategy:Always
Deployment method:Terraform
Note
It is not currently possible to configure runStrategy through Terraform. This feature may be configured in conjunction with the Cloud UI or Kubernetes CLI. Alternatively, you may extend the Virtual Server Terraform module yourself.
useVirtioTransitional
Enables virtio-transitional to support compatibility with older guest Operating Systems. The default value is false.
Deployment method:Cloud UI
Open the YAML editor to configure virtio-transitional.
Field name
Field type
useVirtioTransitional
Boolean
Example in plain text:
useVirtioTransitional:false
Deployment method:Kubernetes CLI
Enabling virtio-transitional is done by configuring the Kubernetes manifest.
Specifies the number in seconds before the guest is killed, allowing the operating system to be shut down gracefully. The default value for Linux-based systems is 60. Windows shutdown may take some time so the default value is 300s. "A 0 value for the grace period option means that the virtual machine should not have a grace period observed during shutdown."
Deployment method: CoreWeave Cloud UI
Open the YAML editor to configure terminationGracePeriodSeconds.
Field name
Field type
Default values
terminationGracePeriodSeconds
Integer
60 - Linux systems
300 - Windows systems
Example in plain text:
terminationGracePeriodSeconds:60
Deployment method:Kubernetes CLI
Configuring the termination grace period is done through the Kubernetes manifest.
Field name
Field type
Default value
terminationGracePeriodSeconds
Integer
60 - Linux systems
300 - Windows systems
Example in plain text:
terminationGracePeriodSeconds:60
Deployment method:Terraform
Note
It is not currently possible to configure terminationGracePeriodSeconds through Terraform. This feature may be configured in conjunction with the Cloud UI or Kubernetes CLI. Alternatively, you may extend the Virtual Server Terraform module yourself.
initializeRunning
Determines whether or not the Virtual Server should be started as soon as it is created and initialized.
Deployment method:CoreWeave Cloud UI
Open the YAML editor to configure initializeRunning.
Field name
Field type
initializeRunning
Boolean
Example in plain text:
terminationGracePeriodSeconds:60
Deployment method:Kubernetes CLI
Configuring initializeRunning is done through the Kubernetes manifest.
Floating services, sometimes called floating IPs, allows users to create their own load balancing Services with static IP addresses, which can then be used to configure custom DNS or custom IP addresses.
Deployment method:CoreWeave Cloud UI
Open the YAML editor to configure floating services under the .network.floatingIPs stanza. This field is a list of load balancer Service names. If configured, the Virtual Server will be assigned floating IPs from the load balancer IP of each service.
Field name
Field type
Description
network.floatingIPs
List
A list of Service references to be added as floating IPs
network.floatingIPs[ ].serviceName
String
The name of the Service
Example in plain text:
network:floatingIPs: - <svc-name>
Deployment method:Kubernetes CLI
To deploy a Floating IP service, configure the following fields.
Field name
Field type
Description
network.floatingIPs
List
A list of Service references to be added as floating IPs