I want to add a vcpu to a virtual server in QEMU. I tried editing the XML file in /etc/libvirt/qemu and starting the server, but that does not seem to work.
Asked
Active
Viewed 501 times
1 Answers
1
I assume you're using libvirt based on you trying to edit its configuration. You can't just edit the configuration directly because the libvirt daemon won't notice the changes. You need to use a libvirt client to make the change.
- Stop the VM
Edit the configuration with a libvirt client, e.g.:
# virsh edit server0
change the number of CPUs, save and quit.
Start the VM again, e.g.:
# virsh start server0
![](../../users/profiles/115189.webp)
mgorven
- 30,036
- 7
- 76
- 121