Attach a volume to a virtual machine
You can attach any volume to any KVM virtual machine, but there's an upper limit of 25 drives per VM. A block storage volume can only be attached to one virtual machine at a time.
You can attach a volume to a VM from either the block storage overview or the virtual machine overview.
Attach a volume from the block storage overview
Navigate to Storage → Block storage in the left-hand menu. Click on the volume you want to attach.

Click Attach at the bottom of the volume's overview.

Select the virtual machine you want to attach the volume to and click Attach.

Once the volume is attached to a virtual machine, you'll see which VM it's attached to and its WWN. The WWN (World Wide Name) is a unique identifier for the volume that's also shown inside the operating system. Use the WWN to match the volume in the control panel to the volume inside the operating system when performing operations on it, such as formatting and mounting it. This helps you avoid operating on the wrong volume.

Attach a volume from the VM overview
You can also attach a volume from the VM's overview page. Navigate to Compute → Virtual machines and click on the VM you want to attach a volume to.
Click on the Block storage tab. Click Attach block storage.

Select the volume you want to attach to this VM and click Attach.

Last updated
Was this helpful?