Score:0

KVM disk size stuck at 993M despite using --disk size=10. How do I set it to 10GB?

td flag
roy

I create a vm using

sudo virt-install \
--name ueransim \
--ram=2048 \
--vcpus=2 \
--disk size=10 \
--location /home/username/ubuntu-20.04.3-desktop-amd64.iso \
--graphics vnc,listen=0.0.0.0 \
--network bridge=virbr0,model=virtio \
--noautoconsole

However when I check the size of my root volume in the VM, its only 993M in size

ubuntu@ubuntu:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            942M     0  942M   0% /dev
tmpfs           199M  1.4M  198M   1% /run
/dev/sr0        2.9G  2.9G     0 100% /cdrom
/dev/loop0      2.1G  2.1G     0 100% /rofs
/cow            993M   38M  956M   4% /
tmpfs           993M     0  993M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           993M     0  993M   0% /sys/fs/cgroup
tmpfs           993M     0  993M   0% /tmp
/dev/loop2      219M  219M     0 100% /snap/gnome-3-34-1804/72
/dev/loop1       56M   56M     0 100% /snap/core18/2128
/dev/loop3       66M   66M     0 100% /snap/gtk-common-themes/1515
/dev/loop4       33M   33M     0 100% /snap/snapd/12704
/dev/loop5       51M   51M     0 100% /snap/snap-store/547
tmpfs           199M   52K  199M   1% /run/user/999

Additionally, when I view the VM details, my storage size is 'Unknown'. Screenshot

How do I create a 10GB volume?

EDIT : I tried using --disk size=20 and that still created a 993M root volume

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.