User Tools

Site Tools


cloud:libvirt

This is an old revision of the document!


libvirt

  • virsh
  • libvirtd
  • virt-install
  • virt-manager

Virsh

create a file system directory storage pool

virsh # pool-create-as --name vm_pool --type dir --target <dir>
virsh # pool-list
 Name                 State      Autostart
-------------------------------------------
 default              active     yes      
 vm_pool              active     yes     
 
virsh # pool-info vm_pool
Name:           vm_pool
UUID:           9b092c41-3c54-4cd3-b569-e2b512340cbf
State:          running
Persistent:     yes
Autostart:      yes
Capacity:       1.07 TiB
Allocation:     12.83 GiB
Available:      1.06 TiB
 
virsh # vol-list vm_pool
 Name                 Path                                   
------------------------------------------------------------------------------
 ovs143-v672_0.img    /u01/vm_pool/ovs143-v672_0.img          
cloud/libvirt.1502221911.txt.gz · Last modified: 2017/08/08 12:51 by frank