Hotplug (qemu disk,nic,cpu,memory): Difference between revisions
Line 67: | Line 67: | ||
and add | and add | ||
<pre> | <pre> | ||
cores: | cores: 2 | ||
sockets: 2 | |||
vcpus: 1 | |||
</pre> | </pre> | ||
You will start your vm with 1 cpu|cores, and you can hotplug later up to | You will start your vm with 1 cpu|cores, and you can hotplug later up to 4 cores. | ||
maxcpus = sockets * cores. | |||
To hotplug a new vcpu (GUI not yet available in proxmox 3.4). | |||
#qm set VMID -vcpus 3 | |||
This will hotplug 2 new vcpus, for a total of 3vcpus. | |||
== Memory hotplug == | == Memory hotplug == |
Revision as of 07:23, 20 February 2015
Proxmox support hotplugging of qemu devices
- disks (hotplug/unplug)
- nics (hotplug/unplug)
- cpu (core hotplug only)
- memory (hotplug only - not yet released)
Linux Guests notes
kernel modules needed
you need to have 2 modules loaded in your linux guest
#modprobe acpiphp #modprobe pci_hotplug
cpu && memory hotplug
you need a recent kernel > 3.10
and a udev rules, to auto enable cpus or memory hotplugged
you can add a file:
/lib/udev/rules.d/80-hotplug-cpu-mem.rules
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1" SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", ATTR{state}="online"
Windows Guests notes
- Disk and nic hotplug is working out of the box for all windows versions >2003 - cpu && memory hotplug is working on > 2008 enterprise/datacenter, 2012 > standard
Disk && Nic hotplug/unplug
edit your vm configuration file
/etc/pve/qemuserver/<VMID>.conf
and add
hotplug: network,usb,memory,disk,cpu
Note: Since proxmox 3.3, hotplug option is available in GUI.
Then add/remove your disk or nics as usual.
For disk unplug, verify that your disk is not mounted in your linux guest or disabled in windows disk management.
CPU hotplug
/etc/pve/qemuserver/<VMID>.conf
and add
cores: 2 sockets: 2 vcpus: 1
You will start your vm with 1 cpu|cores, and you can hotplug later up to 4 cores. maxcpus = sockets * cores.
To hotplug a new vcpu (GUI not yet available in proxmox 3.4).
- qm set VMID -vcpus 3
This will hotplug 2 new vcpus, for a total of 3vcpus.
Memory hotplug
Need to be done