In a command line with administrator rights (cmd), go to the folder C:\Program Files\Oracle\VirtualBox
cd C:\Program files\Oracle\VirtualBox
Run the command:
VBoxManage modifyhd «C:\Users\NameUser\VirtualBox VMs\iBatyr Monitor\iBatyr Monitor.vdi» --resize X
Where X is the number of MB to which you need to increase disk space
Note
Look at the path to the disk in VirtualBox in the machine Settings → Media and selecting the absolute .vdi disk. Disk size is specified in MB
Download the image Gparted, see the footnote about Gparted at the end of the article.
Turn off the virtual machine with the server and go to Settings → Media → Controller: IDE, then click Add optical drive, then connect the downloaded Gparted image and, going to it, select Primary IDE master
Start the virtual machine and log into the operating environment with Gparted
Note
If you have not worked with similar programs before, we recommend making a backup and saving it on another drive//server.
In the Gparted program, select the disk of the server virtual machine (for example: /dev/sdb1)
Delete linux-swap and extended partitions
Increase ext4 to maximum and click Apply
Resize ext4, taking approximately 2000 MB of space from it
Create from a free partition with 2000 MB via the context menu Extended
And create a partition with the file system: linux-swap
Click Apply and exit Gparted
Start the ibatyr virtual machine and make sure that the disk size is increased with the command: df –h
Check the safety of all data and network settings.
Note
For Hyper-V and VMware virtual machines, the disk size is increased using programs in the settings, and the logical partition size is increased in a similar way in Gparted
Note
All rights to the product Gparted belong to the gparted community, the link to the ISO image is local, because resource sourceforge is very often unavailable.