Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] Increase the size of kvm guest image

$
0
0
Hi all,

I have an Ubuntu 20.04.4 LTS server running KVM

There is one lvm partition on this server that has 2 VM running, The size of this partition 1.6TB

One of the images in this partition is 240GB in size running Ubuntu 20.04.4 LTS in it.

Code:

ot@serv:/var/vmstorage# ls -l -h
total 281G
drwx------ 2 root        root 4.0K Oct  4  2021 lost+found
-rw------- 1 libvirt-qemu kvm  46G May 27 18:22 mailserv
-rw------- 1 libvirt-qemu kvm  239G May 27 18:22 webserv
root@serv:/var/vmstorage#

Inside the image itself the LVM size is 322GB:
Code:

root@webserv:/home/adminpc# df -h --total
Filesystem                    Size  Used Avail Use% Mounted on
udev                          2.4G    0  2.4G  0% /dev
tmpfs                        494M 1020K  493M  1% /run
/dev/mapper/webserv--vg-root  313G  124G  176G  42% /
tmpfs                        2.5G    0  2.5G  0% /dev/shm
tmpfs                        5.0M    0  5.0M  0% /run/lock
tmpfs                        2.5G    0  2.5G  0% /sys/fs/cgroup
/dev/loop0                    44M  44M    0 100% /snap/certbot/2035
/dev/loop2                    44M  44M    0 100% /snap/certbot/1952
/dev/loop3                    56M  56M    0 100% /snap/core18/2344
/dev/loop5                    56M  56M    0 100% /snap/core18/2409
/dev/loop6                    111M  111M    0 100% /snap/core/12834
/dev/loop7                    62M  62M    0 100% /snap/core20/1434
/dev/loop8                    45M  45M    0 100% /snap/snapd/15904
/dev/loop9                    45M  45M    0 100% /snap/snapd/15534
/dev/loop10                    68M  68M    0 100% /snap/lxd/22526
/dev/loop11                    68M  68M    0 100% /snap/lxd/22753
/dev/loop12                  112M  112M    0 100% /snap/core/13250
/dev/loop1                    62M  62M    0 100% /snap/core20/1494
tmpfs                        494M    0  494M  0% /run/user/1000
total                        322G  125G  184G  41% -

How can I expand the size of this image to 500GB?

Do I do it from the the server side, or within the image itself?

I am running a backup of the image before this

Regards

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>