# On Hyper-V Virtual Machines we want to add memory and cpus as soon as they appear ATTR{[dmi/id]sys_vendor}!="Microsoft Corporation", GOTO="hyperv_hotadd_end" ATTR{[dmi/id]product_name}!="Virtual Machine", GOTO="hyperv_hotadd_end" # Memory hotadd request SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory[0-9]*", TEST=="state", ATTR{state}="online" # CPU hotadd request SUBSYSTEM=="cpu", ACTION=="add", DEVPATH=="/devices/system/cpu/cpu[0-9]*", TEST=="online", ATTR{online}="1" LABEL="hyperv_hotadd_end"