<< 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}

Send Magic SysRq to a VM

Of course, you need to have the sysrq enabled in the VM.

virsh send-key ${vm_name} KEY_LEFTALT KEY_SYSRQ KEY_F

(this will send Alt+SysRq+F to the VM which triggers the OOM killer, change F to other keys as needed)