KVM မှာ virtual disk တွေကို ဘယ်လို resize လုပ်လို့ရသလဲ
## shutdown the VM first before resize the virtual disk
tyla@e32:~$ virsh shutdown almalinux8
Domain 'almalinux8' is being shutdown
## resize the .qcow2 file on host machine
tyla@e32:~$ sudo qemu-img resize /data/kvm/almalinux8.qcow2 +4G
Image resized.
## verify if the virtual size is now 25 GB
tyla@e32:~$ sudo qemu-img info /data/kvm/almalinux8.qcow2
image: /data/kvm/almalinux8.qcow2
file format: qcow2
virtual size: 25 GiB (26843545600 bytes)
disk size: 2.63 GiB
cluster_size: 65536
Format specific information:
compat: 1.1
compression type: zlib
lazy refcounts: true
refcount bits: 16
corrupt: false
extended l2: false
Child node '/file':
filename: /data/kvm/almalinux8.qcow2
protocol type: file
file length: 20 GiB (21478375424 bytes)
disk size: 2.63 GiB
## start the VM
tyla@e32:~$ virsh start almalinux8
Domain 'almalinux8' started
## verify if the VM is running
tyla@e32:~$ virsh list
Id Name State
----------------------------
9 almalinux8 running
PreviousVRRP ကို MikroTik မှာ setup လုပ်ပုံNextDebian 12 ပေါ်တွင် Proxmox 8 ကိုဘယ်လို integrate လုပ်သလဲ
Last updated