Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 768 Bytes

increase-memory-vcpu-virsh.md

File metadata and controls

49 lines (41 loc) · 768 Bytes
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
increase-memory-vcpu-virsh
libvirt
public
2022-02-21 14:50:05 -0800
2022-02-21 14:50:05 -0800
false
20220221225005
false
false
virsh
virtual-machine
domain
memory
ram
vcpu
maximum
Increase Memory & Virtual CPU on Virtual Machine
tech-note
# Shutdown domain:
virsh shutdown <domain>

# Increase max memory:
virsh setmaxmem <domain> 4G --config

# Increase memory:
virsh setmem <domain> 4G --config

# ---

# Set max vcpu:
virsh setvcpus --domain <domain> --maximum 2 --config

# Set vcpu:
virsh setvcpus --domain <domain> --count 2 --config

# Restart domain:
virsh start <domain>