Manage virtual machines

Existing virtual machines can be managed in various ways, for example, enabling or disabling backups, adding or removing IP addresses, cloning an entire VM, and so on.


Manage VMware VMs in the control panel

After a VMware virtual machine has been created, you can manage it in various ways. All VM management options can be found by clicking on the virtual machine's name in the overview under Compute → Virtual machines in the left-hand menu. VMware VM names begin with wps. Additionally, the Platform column indicates whether a server is a VMware or a KVM VM.

Manage additional disks

In VMware, it is possible to add additional disks to the VM. This allows you to easily create additional storage space without needing to resize the system disk. These disks can be resized after they have been created if necessary.

Create an additional disk in the control panel

To add additional disks, click on the VM to which you want to add the disk. Then, we click on the Disks tab at the top and then on Add additional disk.

In the next dialog box, choose a name for the disk and specify its size. You also need to choose the type of disk you want—Gold or Silver. Gold is a faster disk with a higher price, while Silver is slower but more cost-effective.

Adjust the slider to increase or decrease the size. Once you have chosen the size, type, and name, click Create disk.

When the new disk is created, it will appear in the list of additional disks. Here, you can also see its SCSI ID. Make a note of the SCSI ID since you can use it to confirm that you are working on the correct disk later on.

Once the disk is created, you need to add the disk to the operating system so you can utilize it.

Add an additional disk to the VM's operating system

How you add an additional disk in the operating system differs between different systems. Here, we'll cover Microsoft Windows and Linux.

Once a new disk has been created in the control panel, you need to add the disk in Windows. Start by searching for the Computer Management tool. Open the Start menu, search for Computer Management, and click on it when it appears.

Then double-click on Storage.

In the next window, double-click on Disk Management.

You should now see the new disk. In this example, it's Disk 1. To make sure it's the correct disk, right-click on Disk 1 and select Properties.

Here, the target ID should correspond with the SCSI ID in the control panel. Once you've verified that it's the correct disk, click OK.

The new disk is marked as Offline. Before you can do anything to the disk, you need to set it as Online and initialize it.

Right-click on Disk 1 and then click Online.

Now, right-click on the disk again and click Initialize Disk.

A new dialog box is opened. Here, choose how the disk should be formatted—that is, which partition table type it should have. Leave it as GPT, which is the default. GPT is newer and more modern than MBR. Then click OK.

Now, right-click on the unallocated space in Disk 1 and select New Simple Volume...

A wizard will now start, which you can follow. Here, accept the default values and click Next until you reach the Format Partition step. Here, you can choose your own name for the new partition. The other options can be left as they are; let the file system be NTFS, and let Perform a quick format be checked. Then, click Next.

In the next step, you get a summary of all the choices you've made. Here, click Finish if everything looks okay.

The new disk will then be ready and appear under This Computer.

Resize an existing additional disk in the control panel

To resize a disk, click the three dots next to the disk's name and select Edit Size.

In the dialog box that opens, adjust the disk size by moving the slider. Once done, click Update.

After increasing the disk size in the Glesys control panel, you also need to expand the partition size in the operating system.

For the operating system to detect that the underlying disk has grown, you need to rescan the disk. If you check the disk with lsblk first, it will still show the same size as before. Note that in these examples, sdb is the additional disk. If you have multiple additional disks, it could be sdc or sdd instead.

Now, perform a scan of the disk using the following command. Remember to replace sdb in the command below with the device name of the additional disk.

Recheck the disk with lsblk; it should have grown to the size you selected in the control panel. However, note that only the disk has grown, not the partition.

You also need to expand the partition and the file system. Start with the partition. Use the growpart tool, which comes pre-installed with most Linux distributions on Glesys. If it is not available, it can be installed using sudo apt install cloud-guest-utils in Debian and Ubuntu, or sudo dnf install cloud-utils-growpart in Fedora, AlmaLinux, and CentOS.

Note the space between /dev/sdb and 1 below. This specifies partition 1 of sdb.

You also need to expand the file system. This is done using resize2fs, which is already installed.

Recheck the disk with df; it should now reflect the size you selected in the control panel.

Delete an additional disk

Before deleting an additional disk in the Glesys control panel, you should unmount it in the operating system to avoid any lockups. Here, we'll cover how to unmount a disk in Microsoft Windows and in Linux.

In Windows, you unmount a disk by setting it to Offline. To do this, open Computer Management by searching for it in the Start menu. Then, double-click on Storage and then on Disk Management.

The overview of all the system's disks will open. Here, right-click on the additional disk and select Offline.

Delete the disk in the Glesys control panel

Once the disk is unmounted in the operating system, delete it by clicking the three dots next to the additional disk's name and then selecting Delete disk.

In the next dialog box, you need to confirm the deletion (note that all data on the disk will be lost). To confirm, type the disk's name into the text field and click Delete.

Manage backups

When the VM is created, no automatic backups are enabled. This is something you need to enable afterward. In the server's overview, just below the server's resources is the Backups section. Here, you can enable backups by clicking Enable. The price for backups is displayed before activation. The cost is based on the disk size.

When backups are enabled, the entire server is automatically replicated once per day. Backups are retained for 14 days. To restore a server from a backup, you need to contact Glesys support at [email protected].

When backups are enabled for a VM, the following screen is displayed under Backups. Here, you can see the size of the disk being backed up. If you want to disable automatic backups again, click Disable.

The current price for the server, including backups, is displayed at the bottom of the server overview under Cost Summary.

In VMware, it is not possible to create manual backups. However, it is possible to clone a VM.

Clone a VM

In VMware, it is possible to clone a VM. This creates an exact copy of the virtual machine, except that the cloned VM does not have any IP addresses. When cloning the server, you can configure CPU, memory size, bandwidth, and disk size—these are the same options available when creating a new VM. However, the disk size cannot be smaller than that of the original server.

To clone a VM, go to the server's overview. Click on Actions, then on Clone.

In the next dialog box, you configure the cloned server. By default, the configuration is based on the original server. You can configure the number of CPU cores, memory size, bandwidth, and storage size. Remember that the storage size can only be increased, not decreased. Even later, the storage cannot be decreased, only increased.

To make changes, adjust the sliders. Once all selections are made, click Clone.

The cloned VM will now appear in the VM overview under Compute → Virtual machines. It has the same name as the original server, but with the suffix clone.

Assign new IP addresses to the cloned VM

The cloned VM does not have any IP addresses assigned to it. To add IP addresses to the cloned server, follow the steps outlined in Manage IP addresses.

To configure the operating system with the new IP addresses, you need to log in via the console. The VMware console works the same way as for KVM. Therefore, you can follow the subchapter Connect to the VM console for KVM.

If the server is running Microsoft Windows, you can log in via the console directly and configure the IP addresses without needing to restart the server in single-user mode.

Give the original VM's IP address to the cloned VM

If you want to assign the original VM's IP addresses to the cloned VM, there is no need to configure anything in the operating system. The old configuration was cloned along with the server. You just release the IP addresses from the original VM and assign them to the cloned VM.

To release the original VM's IP addresses, navigate to the original VM's overview. Scroll down to the IP Addresses section. Here, click the red crosses next to the IP addresses you want to release. A dialog box will open where we confirm the removal of the address. It is essential to ensure that Keep IP is checked. This will retain the IP address in the project but disconnect it from the server.

Once the IP address has been released from the original VM, navigate to the new, cloned VM (found under Compute → Virtual machines).

In the IP Addresses section for the cloned VM, click Add IPv4 or Add IPv6, respectively.

In the list that appears, locate the addresses that were released from the original VM and add them to the cloned VM. The IP addresses from the original VM are listed under Reserved IP Addresses. Click on the addresses to select them, then click Add Selected.

Manage IP addresses

It's possible to delete and add multiple IP addresses to your VM under the IP Addresses section in the VM overview. Here, you can also see the current IP addresses assigned to the VM. New IP addresses can be added by clicking Add IPv4 or Add IPv6. To remove an IP address, click the red cross to the right of the IP address.

In this example, we choose to add an IPv4 address by clicking Add IPv4.

In the dialog box that appears, you can select from either available IP addresses or previously reserved IP addresses. The reserved IP addresses are displayed at the top.

Select an IP address and click Add Selected.

When you return to the VM's overview, you can see the new IP address in the list.

Follow the same procedure to add IPv6 addresses, but select Add IPv6 in the overview instead.

Find gateway, netmask, and DNS for an IP address

Before adding the IP addresses to the VM's operating system, you need to know the subnet mask and gateway for the addresses. This information can be found under IP addresses in the left-hand menu under Network. Here, you can view all IP addresses, including those assigned to your VMs, as well as reserved IP addresses. Both assigned and reserved IP addresses are listed under the Overview tab.

Click the information icon next to the IP address to display its subnet mask and gateway.

The Glesys DNS servers are located at the IPv4 addresses 79.99.4.100 and 79.99.4.101, and the IPv6 addresses 2a02:751:aaaa::1 and 2a02:751:aaaa::2.

Now you need to configure the IP addresses in the VM's operating system. The process of adding IP addresses varies between different operating systems.

Add the IP addresses in the VM's operating system

The process for adding IP addresses in the VM's operating system differs between different operating systems and Linux distributions. Here, we'll cover Microsoft Windows, AlmaLinux, Ubuntu, and Debian. These instructions will most likely also work for newer versions.

To add additional IP addresses in Windows, open the Start Menu and click Settings. Then click on Network & Internet. Under the section Advanced network settings, click Change adapter options. Now, right-click on Ethernet0 and choose Properties from the menu.

Start by adding IPv4 addresses by selecting Internet Protocol Version 4 (TCP/IPv4) and clicking Properties. To add IPv6 addresses, follow the same procedure but select Internet Protocol Version 6 (TCP/IPv6) instead.

The first IP address assigned to the VM during its creation is now displayed. To add more IP addresses, click Advanced...

A new dialog box opens where you can see the IP addresses and gateways. Start by adding an IP address by clicking Add... under IP addresses.

In the dialog box that opens, enter the IP address and subnet mask you want to add.

Now that you have completed this IP address, you can repeat the process if you have more IP addresses to add.

To save the settings, click OK in the dialog boxes you have opened until you return to the network adapters. The new IP addresses are added immediately.

Test the IP addresses

Now you can verify and test the IP addresses by opening the Start Menu and searching for cmd. When Command Prompt appears in the menu, click on it. Then, list all the VM's IP addresses using the command ipconfig.

Try pinging from the IP addresses. Specify the IP address you want to use as the source with the -S flag.

All of the IP addresses are working.

If an issue occurs with the network, you can log in via the console in Glesys Cloud.

Remove IP addresses

To remove an IP address from a VM, select the appropriate VM under Virtual machines in the left-hand menu. Scroll down to the IP Addresses section in the VM's overview. To remove an IP address from a VM, click the red cross next to the IP address you want to delete.

After clicking the cross next to an IP address, you can decide whether to keep the IP address in the project. This enables you to reuse the same IP address on another VM. In this case, we opt to keep it. The IP address will be removed from the VM, but will remain in the project for future use.

Once the IP address has been removed from the VM in the control panel, you must also delete it from the VM's operating system. You remove the IP address from the same file or command where it was added. Refer to Add the IP addresses in the VM's operating system for information on where the IP address settings are located in each Linux distribution.

Adjust the internet connection's bandwidth

It's possible to adjust the server's internet bandwidth under the Network Adapters tab in the server overview. Click on the pencil icon to the right of the network adapter named Network adapter 1, which has Internet listed under Network.

In the dialog box that appears, we can increase or decrease the bandwidth for the network adapter by moving the slider. The price for the bandwidth is displayed in the lower-right corner.

View server statistics

In the server overview, we can view statistics for CPU usage, memory, and disk. The statistics can be found under the Statistics tab.

Manage VMware virtual machines using the API

Several API endpoints are available for managing your virtual machine using the API.

Last updated

Was this helpful?