Virsh

<< Back to wiki homepage

Table of contents:

Check vcpu configuration

virsh vcpucount ${servername}

Modify cpu settings

virsh setvcpus ${servername} ${cpu number} # see below

# Add --maximum --config to configure maximum value
# Add --config to configure config
# Add --live to configure current

Refresh volumes

Especially handy if underlying volumes are mismatching. E.g.: "Failed to find logical volume"

virsh pool-refresh ${pool_name}