Listing current pools:
1 2 3 4 5 6 |
$ virsh pool-list Name State Autostart ------------------------------------------- default active yes |
Destroying pool:
1 2 3 |
$ virsh pool-destroy default Pool default destroyed |
Undefine pool:
1 2 3 |
$ virsh pool-undefine default Pool default has been undefined |
Defining a new pool with name “default”:
1 2 3 |
$ virsh pool-define-as --name default --type dir --target /media/work/kvm Pool default defined |
Set pool to be started when libvirt daemons starts:
1 2 3 |
$ virsh pool-autostart default Pool default marked as autostarted |
Start pool:
1 2 3 |
$ virsh pool-start default Pool default started |
Checking pool state:
1 2 3 4 |
$ virsh pool-list Name State Autostart ------------------------------------------- default active yes |