Hotplug (qemu disk,nic,cpu,memory): Difference between revisions

From Proxmox VE
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
=== Linux Guests notes ===
=== Linux Guests notes ===


==== kernel modules needed ====
you need to have 2 modules loaded in your linux guest
you need to have 2 modules loaded in your linux guest


Line 18: Line 19:
</pre>
</pre>


for cpu && memory hotplug,
==== cpu && memory hotplug ====


you need a recent kernel > 3.10
you need a recent kernel > 3.10
Line 38: Line 39:
- cpu && memory hotplug is working on > 2008 enterprise/datacenter, 2012 > standard
- cpu && memory hotplug is working on > 2008 enterprise/datacenter, 2012 > standard


=== Disk && Nic hotplug/unplug ===
 
 
== Disk && Nic hotplug/unplug ==


edit your vm configuration file
edit your vm configuration file
Line 55: Line 58:




=== CPU hotplug ===
== CPU hotplug ==
<pre>
<pre>
/etc/pve/qemuserver/<VMID>.conf
/etc/pve/qemuserver/<VMID>.conf
Line 71: Line 74:
Note: you can't hotplug sockets with multiple cores, so don't define socket option.
Note: you can't hotplug sockets with multiple cores, so don't define socket option.


=== memory hotplug ===
== Memory hotplug ==


Need to be done
Need to be done

Revision as of 13:45, 24 July 2014

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: 1

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: 1
maxcpus: 16

You will start your vm with 1 cpu|cores, and you can hotplug later up to 16 cores.

Simply use the gui as usual to add cpus.

Note: you can't hotplug sockets with multiple cores, so don't define socket option.

Memory hotplug

Need to be done