Reconfiguring virtual machines – LS Cloud

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

  1. On the Virtual machines screen, ensure the required virtual machine is in the “Shut down” state, and then click it.
  2. On the Overview tab, click the pencil icon in the Flavor field.
  3. In the Flavor window, select a new flavor, and then click Done.

To attach a volume to a virtual machine

  1. On the Virtual machines screen, click the required virtual machine.
  2. On the Overview tab, click the pencil icon in the Disks field.
  3. 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.
  4. Click Done to finish editing VM disks and save your changes.

To detach a volume from a virtual machine

  1. On the Virtual machines screen, click the required virtual machine.
  2. On the Overview tab, click the pencil icon in the Disks field.
  3. 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.
      Warning!

      There is a risk of data loss.

  4. Click Done to finish editing VM disks and save your changes.

To attach a network interface to a virtual machine

  1. On the Virtual machines screen, click the required virtual machine.
  2. On the Overview tab, click Edit in the Network interfaces section.
  3. In the Network interfaces window, click Add to attach a network interface.
  4. 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.
    Note

    Secondary IP addresses, unlike the primary one, will not be automatically assigned to the network interface inside the virtual machine guest OS. You should assign them manually.

    • 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.

  5. After specifying the network interface parameters, click Add.
  6. Click Done to finish editing VM network interfaces and save your changes.

To edit a network interface of a virtual machine

  1. On the Virtual machines screen, click the required virtual machine.
  2. On the Overview tab, click Edit in the Network interfaces section.
  3. In the Network interfaces window, click the ellipsis button next to the interface you want to edit, and then click Edit.
  4. 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.
  5. After updating the required parameters, click Save.
  6. Click Done to finish editing VM network interfaces and save your changes.

To detach a network interface from a virtual machine

  1. On the Virtual machines screen, click the required virtual machine.
  2. On the Overview tab, click Edit in the Network interfaces section.
  3. In the Network interfaces window, click the ellipsis button next to the interface you want to detach, and then click Remove.
  4. Click Done to finish editing VM network interfaces and save your changes.
Share this:
FacebookTwitterWhatsAppViberCopy LinkTelegramLinkedIn
Updated on May 31, 2022

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support