Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-39421

[memory hotplug] failed to update guest memory after migration

XMLWordPrintable

    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • virt-launcher-rhel9-container-v4.16.0-227
    • ---
    • ---
    • CNV Virtualization Sprint 251
    • No

      Description of problem:

      [memory hotplug] failed to update guest memory after migration

      Version-Release number of selected component (if applicable):

      cnv 4.16.0: registry-proxy.engineering.redhat.com/rh-osbs/iib:685982
      ocp 4.16.0-ec.3

      How reproducible:

      100%

      Steps to Reproduce:

      1. Enable 'VMLiveUpdateFeatures' and 'vmRolloutStrategy'.
      kubevirt.kubevirt.io/jsonpatch: |-
            [{
                   "op": "add",
                   "path": "/spec/configuration/developerConfiguration/featureGates",
                   "value": ["VMLiveUpdateFeatures"]
               }, {
                   "op": "add",
                   "path": "/spec/configuration/vmRolloutStrategy",
                   "value": "LiveUpdate"
               }] 
      2. Create a VM and set memory->maxGuest value.
      
      apiVersion: kubevirt.io/v1
      kind: VirtualMachine
      metadata:
        labels:
          kubevirt.io/vm: vm-cirros
      name: vm-cirros
      spec:
        running: false
        template:
          metadata:
            labels:
              kubevirt.io/vm: vm-cirros
          spec:
            domain:
              cpu:
                sockets: 2
                cores: 4
                threads: 2
                maxSockets: 8  # optional
              memory:
                guest: 2Gi
                maxGuest: 8Gi  # optional
      
      3. Increase the memory->guest value by 2Gi. Wait the VM can be live migrated successfully.
      4. Login the VM and check the new memory.

      Actual results:

      The guest failed to update memory.
      
      Warning   server error. command SyncVirtualMachineMemory failed: "LibvirtError(Code=67, Domain=10, Message='unsupported configuration: cannot modify memory address from '0x100000000' to '0x0'')"   virtualmachineinstance/example                                   failed to update guest memory

      Expected results:

      The memory should be updated successfully.

      Additional info:

       

            acardace@redhat.com Antonio Cardace
            xiaodwan@redhat.com Xiaodai Wang
            Vasiliy Sibirskiy Vasiliy Sibirskiy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: