VMmanager Knowledge Base
en En
es Es

VM fails to start with error "can't add memory device"

Description

When hot modifying VM resources (without rebooting), an additional memory device is added to the VM description. In some cases, this device may prevent the VM from starting.

For more information about modifying VM resources without rebooting, see the article Fine-tuning of virtual machines in VMmanager documentation.

The problem occurs after a hot modification of VM resources:

  • a user shuts the VM down.
  • the VM fails to start with the error "can't add memory device".

To see the full error text:

  1. Go to Virtual Machines and select the VM.
  2. In the Status column, click on the Stopped status.
  3. In the window that opens, click Read more:
  4. Click Failed in the Event column:

    This will display the full error text:

    libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2023-10-28T22:56:25.564740Z qemu-kvm: -numa node,nodeid=0,cpus=0-239,mem=12288: warning: Parameter -numa node,mem is deprecated, use -numa node,memdev instead
    2023-10-28T22:56:25.577453Z qemu-kvm: -device pc-dimm,node=0,memdev=memdimm0,id=dimm0,slot=0,addr=1234567: can't add memory device [0x1c0000000:0x180000000], usable range for memory devices [0x340000000:0xf880000000]

Solution

To resolve the issue:

  1. In the platform, go to Virtual Machines.
  2. Select the VM → click ParametersFine-Tuning settings.
  3. Disable the Add resources without restarting the VM option.

  4. Click Change and Restart. Since the VM is stopped, the restart will not occur.
  5. Start the VM.
Note
If you need to hot-add resources in the future, enable the Add resources without restarting the VM option and click Change and Restart.


The article was last updated on 05.13.2025. The article was prepared by technical writers of ISPsystem.