Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Identify the VM ID:

    Code Block
    languagebash
    themeRDark
    openstack server list --all | grep <VM_name>
    openstack server show < vm_ID > | grep flavor
  • Identify the ID of the new flavor the VM needs:

    Code Block
    languagebashthemeRDark
    openstack flavor list
    Warning
    • In the case of an Ephemeral VM, check the size of root disk of the original VM. Don't resize the VM if the new flavor has a disk smaller than the current one.

    • In the case of a VM with a Bootable Disk, the resize will affect only VCPUs number and RAM. The bootable disk will not be changed by the operation.

  • Perform the resize, remembering to alert the user of the VM's temporary shutdown during the operation.

    Code Block
    languagebashthemeRDark
    openstack server resize --flavor <new_flavor_ID> --wait <vm_ID>
  • Wait then the operation to "Complete"; at the same time, on the Openstack Dashboard the message "Confirm" will appear next to the server name.  Then use the command:

    Code Block
    languagebashthemeRDark
    openstack server resize confirm <vm_ID>
    Warning

    Issue the resize confirmation in a separate command, since the option --confirm  on the command openstack server resize  is deprecated.

...

  • Verify the success of the operation. Since the Dashboard can have visualization bugs, it is best to check via CLI:

    Code Block
    languagebashthemeRDark
    openstack server show < vm_ID > | grep flavor
  • Ask the user to confirm the success of the operation. To do that they will need to boot the VM, login, and verify the VCPUs number and Memory size are correct with the following commands:

    Code Block
    languagebashthemeRDark
    cat /proc/cpuinfo
    free -g