Limitations
- You cannot change, detach, or delete the boot volume.
- You can only attach and detach non-boot volumes.
- You cannot manage volumes and network interfaces of shelved VMs.
- You cannot change the flavor for running and shelved VMs.
Prerequisites
- Virtual machines are created, as described in Creating virtual machines.
- To be able to use volumes attached to VMs, they must be initialized inside the guest OS by standard means.
To change the amount of CPU and RAM resources used by a virtual machine
- On the Virtual machines screen, ensure the required virtual machine is in the “Shut down” state, and then click it.
- On the Overview tab, click the pencil icon in the Flavor field.
- In the Flavor window, select a new flavor, and then click Done.
To attach a volume to a virtual machine
- On the Virtual machines screen, click the required virtual machine.
- On the Overview tab, click the pencil icon in the Disks field.
- In the Volumes window:
- Click Attach to attach an existing volume, and then select the volume in the Attach volume window.
- Click Add to create a new volume, and then specify the volume name, size, and storage policy. The created volume will be automatically added to the VM disks.
- Click Done to finish editing VM disks and save your changes.
To detach a volume from a virtual machine
- On the Virtual machines screen, click the required virtual machine.
- On the Overview tab, click the pencil icon in the Disks field.
- In the Volumes window:
- Click Detach to detach a volume from a stopped virtual machine.
- Click Force detach to detach a volume from a running virtual machine.
- Click Done to finish editing VM disks and save your changes.
To attach a network interface to a virtual machine
- On the Virtual machines screen, click the required virtual machine.
- On the Overview tab, click Edit in the Network interfaces section.
- In the Network interfaces window, click Add to attach a network interface.
- In the Add network interface window, select a compute network to connect to, and then specify MAC address, IP addresses, and security groups. By default, MAC and primary IP addresses are assigned automatically. To specify them manually, clear the Assign automatically check boxes, and enter the desired addresses. Optionally, assign additional IP addresses to the network interface in the Secondary IP addresses section.
- If you selected a virtual network with enabled IP address management
In this case, spoofing protection is enabled and the default security group is selected by default. This security group allows all incoming and outgoing traffic on all the VM ports. If required, you can select another security group or multiple security groups.To disable spoofing protection, clear all of the check boxes and turn off the toggle switch. Security groups cannot be configured with disabled spoofing protection.
- If you selected a virtual network with disabled IP address management
In this case, spoofing protection is disabled by default and cannot be enabled. Security groups cannot be configured for such a network.
- If you selected a shared physical network
In this case, spoofing protection cannot be configured by a self-service user. If you want to enable or disable spoofing protection, contact your system administrator.
-
- After specifying the network interface parameters, click Add.
- Click Done to finish editing VM network interfaces and save your changes.
To edit a network interface of a virtual machine
- On the Virtual machines screen, click the required virtual machine.
- On the Overview tab, click Edit in the Network interfaces section.
- In the Network interfaces window, click the ellipsis button next to the interface you want to edit, and then click Edit.
- In the Edit network interface window, modify the network interface parameters as follows:
- Change the primary IP address. To update the address inside the VM guest OS, restart the network interface.
- Add or remove secondary IP addresses.
- Modify security groups assigned to the VM.
- After updating the required parameters, click Save.
- Click Done to finish editing VM network interfaces and save your changes.
To detach a network interface from a virtual machine
- On the Virtual machines screen, click the required virtual machine.
- On the Overview tab, click Edit in the Network interfaces section.
- In the Network interfaces window, click the ellipsis button next to the interface you want to detach, and then click Remove.
- Click Done to finish editing VM network interfaces and save your changes.