cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Disk space ctrlX CORE virtual

Disk space ctrlX CORE virtual

fabolhak
Member

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.

4 REPLIES 4

Sgilk
Frequent Contributor

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.

Sgilk_0-1723208601368.png

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

 

Sgilk_3-1723211444007.png

Before the resize, the sda disk has 8GB of allocated memory.

Sgilk_2-1723211315821.png

After the resize, you can see the sda disk capacity has increased by 4GB to 12GB.

Sgilk_4-1723211939414.png

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.

Sgilk_5-1723213885219.png

 

@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?

Sgilk
Frequent Contributor

@fabolhak ,

I do not know of any plans, but I am requesting it be added in a future release.

Sgilk
Frequent Contributor

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
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist