Logo Atlas
  • Home
  • About Me
  • Skills
  • Education
  • Recent Posts
  • Certifications
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Tags
  • ACLs
  • Administration
  • ANDORID
  • APACHE
  • ARP
  • ASIR
  • ASO
  • AW
  • BIND9
  • Bridge
  • CENTOS
  • CI/CD
  • CISCO
  • Cloning
  • CMS
  • Comands
  • Containers
  • Contenedores
  • Controladores NVIDIA
  • DEBIAN
  • Debian 12
  • Debian13
  • DHCP
  • DNAT
  • DNS
  • DNSMASQ
  • Docker
  • Enrutamiento
  • FIREWALL
  • FORENSE
  • FORTINET
  • FORWARDING
  • FTP
  • GNS3
  • HTTPS
  • Hypervisor
  • IPTABLES
  • IPv4
  • IPv6
  • ISO
  • IWEB
  • Jenkins
  • Jenkis
  • Kubernetes
  • KVM
  • LAMP
  • LEMP
  • Libvirt
  • LINUX
  • MariaDB
  • Metrics
  • Mysql
  • NAT
  • Network
  • Networking
  • NFTABLES
  • NVIDIA Drivers
  • Observability
  • OPENVPN
  • Oracle
  • Pools
  • PostgreSQL
  • Prometheus
  • Redes
  • REDHAT
  • Resize
  • Resources
  • ROCKY
  • Routing
  • Services
  • Servicios
  • Sistemas
  • SMR
  • Snapshots
  • SNAT
  • SSH
  • Storage
  • STRONGSWAN
  • Switches
  • Templates
  • Ubuntu
  • Virtualization
  • VM
  • Volumes
  • VPN
  • Windows
  • WIREGUARD
  • Wireshark
  • WordPress
Hero Image
Introduction to storage in KVM/libvirt

Storage is a foundational part of virtualization: it determines how and where virtual machine disks are stored, how snapshots are handled, and what performance and protection options are available. In the KVM/libvirt ecosystem storage is organized around two basic concepts: Storage pools: logical groupings that represent a storage source (for example, a directory, an LVM volume group, an iSCSI target or a Ceph pool). Libvirt exposes and manages these pools to simplify storage usage for VMs. Storage volumes: the units inside a pool that act as virtual disks for guests. Types of pools Libvirt supports several pool types. A practical summary:

  • KVM
  • Virtualization
  • Libvirt
  • Storage
Saturday, October 25, 2025 | 4 minutes Read
Hero Image
How to manage storage pools

This post answers the following questions and provides practical examples: What is a storage pool? How is a pool created and what forms can it take? Storage in KVM/libvirt is organized using “storage pools” and “storage volumes”. In this article we explain what a pool is, why pools are used, and how to manage them with virsh or XML definitions. We include examples, practical recommendations, and notes about LVM-based pools.

  • KVM
  • Virtualization
  • Libvirt
  • Storage
  • Pools
Saturday, October 25, 2025 | 5 minutes Read
Hero Image
How to manage storage volumes with virsh

Short: examples of using the libvirt API (virsh vol-*) to manage volumes inside storage pools and notes about backend-specific behavior. Managing storage volumes with virsh In this section we’ll look at storage volume management using libvirt’s API (the virsh tool). We will use pools of type dir (image files on disk), although many operations are applicable to other backends; differences are noted where relevant. Pools and volumes: quick concept A “volume” in libvirt is the storage unit created inside a pool. In dir and fs pools volumes are files (for example qcow2, raw); in logical pools they are LVM logical volumes; in disk pools they can map to partitions; and in networked backends (Gluster, RBD, iSCSI) creation and management may require backend-specific tools.

  • KVM
  • Virtualization
  • Libvirt
  • Storage
  • Volumes
Saturday, October 25, 2025 | 6 minutes Read
Hero Image
How to resize virtual machine disks

In this example we’ll use the default pool and a volume named vdisk-10G.qcow2. We’ll show how to create the volume from the host, how to format it with common filesystems (ext4, FAT32, XFS, btrfs) from inside the guest, and finally how to add 10 GB to the volume and resize the partition and filesystem. Note: commands that manage volumes (create, resize) run on the host and use your prompt. Commands executed inside the guest (partitioning and formatting) are shown with the guest prompt javiercruces@debian13:~$.

  • KVM
  • Virtualization
  • Libvirt
  • Storage
  • Resize
Saturday, October 25, 2025 | 4 minutes Read
Navigation
  • About Me
  • Skills
  • Education
  • Recent Posts
  • Certifications
Contact me:
  • contacto@javiercd.es
  • javierasping
  • Francisco Javier Cruces Doval

Liability Notice: This theme is under MIT license. So, you can use it for non-commercial, commercial, or private uses. You can modify or distribute the theme without requiring any permission from the theme author. However, the theme author does not provide any warranty or takes any liability for any issue with the theme.


Toha Theme Logo Toha
© 2023 Copyright.
Powered by Hugo Logo