Sorry, I just read your question, I will spare no effort to help you.
Just as your second photo shows, the Virtual Size 100GB is the size of your VM oobuntu's space, that you can set it via VirtualBox on your Host Windows 11 machine. the Actual Size 8.94GB is the size of your VM oobuntu's disk space, that you only need to set on your VM oobuntu via APP liking GParted or partition tools at terminal.
Just as your df -k outputs, the main/primary partition of your VM oobuntu's disk is /dev/sda1 which mounted at boot directory /boot/efi and partition files type is FAT32; the logical partition of your VM oobuntu's disk is /dev/sda5 which mounted at root directory / and partition file type is ext4; Also, I guess your extended partition of your VM oobuntu's disk is /dev/sda2, but I do not see that /dev/sda2 from your given photos or command output.
As I know,
Principle-A: Size(vm_disk) == Size(main partition) + Size(extended partition);
Principle-B: Size(extended partition) == All the Size(logical partition);
Principle-C: Size(logical partition) <= Size(extended partition);
So, if you want to expand your VM oobuntu's Disk size, you should expand logical partition /dev/sda5; but you should firstly enlarge your extended partition /dev/sda2 before you start to resize your logical partition /dev/sda5. And, I have a question: where is your extended partition /dev/sda2? I do not know.
This does not have any matter with your Host Windows 11 machine. Microsoft said it was innocent.
Just use sudo cfdisk to check the usage of your VM oobuntu's disk partitions, I guess you output based with your command df -kjust liking below :
Disk /dev/sda: 100 GiB, 122212254720 bytes, 182914560 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x40r3tr86
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 220M 732M 1096800 512M c W95 FAT32 (LBA)
/dev/sda2 732M 10G 19968020 9.29G 5 Extended
/dev/sda5 732M 10G 19968020 9.29G 83 Linux
free space 10G 100G 90GB
And I think your needed disk partition likes this:
Disk /dev/sda: 100 GiB, 122212254720 bytes, 182914560 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x40r3tr86
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 220M 732M 1096800 512M c W95 FAT32 (LBA)
/dev/sda2 732M 100G 19968020 90.29G 5 Extended
/dev/sda5 732M 100G 19968020 90.29G 83 Linux
Also, I do highly recommend you use partition tool cfdisk instead of APP GParted or partition tool parted.
Solution:
1.just log in your VM;
2.use sudo cfdisk to enter the permission of cfdisk on your VM oobuntu's terminal;
Use up and down direction button to choose the partition, use right and left direction button to choose the operation, use enter button to make sure.
3.choose Resize button to expand the extended partition /dev/sda2, change default size into 90.29GB, and push enter, and again type yes, and push enter to ok;
4.choose Resize button to enlarge the logical partition /dev/sda5, also, change default size into 90.29GB, and push enter, and again type yes, and push enter to ok;
5.choose Write button to sync the new partition to the Disk, and use Quit button to quit cfdisk;
6.use sudo resize2fs /dev/sda5 on your VM oobuntu's terminal to set all the file types of logical partition /dev/sda5 into ext4;
7.Restart or reboot your virtual machine: sudo reboot.
Have fun!!!
OVER!