FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
08-09-2024 11:03 AM
Hello,
I was wondering if there is an option to increase the disk space for the ctrlX CORE virtual? Currently, it seems to be fixed to 4GB (I'm using ctrlX Works 2.4.1). As we plan to target our apps for CORE X5 and CORE X7 which have considerably more disk space, this is sometimes an issue during development.
Solved! Go to Solution.
08-09-2024 04:31 PM - edited 08-09-2024 04:32 PM
Hi @fabolhak,
You can modify the number of CPU cores and amount of allocated RAM in the extended properties of the virtual control within ctrlX WORKS.
To increase disc size, you will need to resize the user qcow2 drive image. Navigate to your virtual control directory and issue the following command in a command prompt.
qemu-img resize imageName.qcow2 +AdditionalMemory
Before the resize, the sda disk has 8GB of allocated memory.
After the resize, you can see the sda disk capacity has increased by 4GB to 12GB.
Once the drive has been resized, the partitions must be resized as well. It's up to you where you'd like to allocate the new memory, but as an example, you can grow the last sda partition to take up the new space. You can enter the virtual control shell using the default credentials (username:rexroot, password:rexroot).
sudo growpart /dev/sda 6
Now you can see the partition /dev/sda6 has grown to take up the new disc space.
08-12-2024 10:41 PM - edited 08-12-2024 10:43 PM
@Sgilk thank you very much for your help. This is very much appreciated. Do you by any chance know if it is planned to integrate this into the ctrlX works tool (like number of cores and ram size) and make this more accessible for persons not so confident with linux partitioning?
08-12-2024 10:46 PM
I do not know of any plans, but I am requesting it be added in a future release.
08-22-2024 08:31 PM
Adding an additional comment rather than editing the accepted solution. It was also necessary to issue the following command after growing the partition to make the space available to the file system.
sudo resize2fs /dev/sda6