Fortinet white logo
Fortinet white logo

KVM Administration Guide

virsh storage pool

virsh storage pool

A default storage pool is defined as a place for VM disks to be placed:

[root@rhel-tiger-14-6 ~]# mkdir -p /home/qemu

[root@rhel-tiger-14-6 ~]# chown qemu:qemu /home/qemu

[root@rhel-tiger-14-6 ~]# virsh pool-list
 Name   State   Autostart
---------------------------

[root@rhel-tiger-14-6 ~]# virsh pool-define-as --name default --type dir --target /home/qemu
Pool default defined

[root@rhel-tiger-14-6 ~]# virsh pool-autostart default
Pool default marked as autostarted

[root@rhel-tiger-14-6 ~]# virsh pool-start default
Pool default started

[root@rhel-tiger-14-6 libvirt]# virsh pool-list
 Name      State    Autostart
-------------------------------
 default   active   yes

virsh storage pool

virsh storage pool

A default storage pool is defined as a place for VM disks to be placed:

[root@rhel-tiger-14-6 ~]# mkdir -p /home/qemu

[root@rhel-tiger-14-6 ~]# chown qemu:qemu /home/qemu

[root@rhel-tiger-14-6 ~]# virsh pool-list
 Name   State   Autostart
---------------------------

[root@rhel-tiger-14-6 ~]# virsh pool-define-as --name default --type dir --target /home/qemu
Pool default defined

[root@rhel-tiger-14-6 ~]# virsh pool-autostart default
Pool default marked as autostarted

[root@rhel-tiger-14-6 ~]# virsh pool-start default
Pool default started

[root@rhel-tiger-14-6 libvirt]# virsh pool-list
 Name      State    Autostart
-------------------------------
 default   active   yes