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

VM with 4GB and 1GB of memory fail to launch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • CNV v4.16.0
    • CNV v4.16.0
    • CNV Virtualization
    • None
    • CNV Virtualization Sprint 255
    • No

      Description of problem:

      A VM with 4GB of memory fails to launch
      

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

      4.16 nightly
      

      How reproducible:

      Always
      

      Steps to Reproduce:

      1. {{oc apply -f vm.yaml}} (see attachment)
      2. {{oc get vm}}
      3.
      

      Actual results:

      {"component":"virt-launcher","level":"info","msg":"2024-06-13T09:32:33.203522Z qemu-kvm: -device {\"driver\":\"virtio-mem-pci\",\"node\":0,\"block-size\":2097152,\"memdev\":\"memvirtiomem0\",\"id\":\"virtiomem0\",\"bus\":\"pci.10\",\"addr\":\"0x0\"}: not enough space, currently 0x0 in use of total space for memory devices 0x2cb400000","subcomponent":"libvirt","timestamp":"2024-06-13T09:32:33.204272Z"}
      
      when switched to 1GB memory, the following error appears:
      
      {"component":"virt-launcher","level":"error","msg":"XML error: maximum memory size must be equal or greater than the actual memory size","pos":"virDomainDefPostParseMemory:83","subcomponent":"libvirt","thread":"35","timestamp":"2024-06-13T12:23:41.937000Z"}
      {"component":"virt-launcher","kind":"","level":"error","msg":"Defining the VirtualMachineInstance failed.","name":"fedora-0","namespace":"fabiand","pos":"libvirt_helper.go:136","reason":"virError(Code=27, Domain=20, Message='XML error: maximum memory size must be equal or greater than the actual memory size')","timestamp":"2024-06-13T12:23:41.937970Z","uid":"196f6489-782f-4bc0-a465-2795e7073170"}
      {"component":"virt-launcher","kind":"","level":"error","msg":"Failed to sync vmi","name":"fedora-0","namespace":"fabiand","pos":"server.go:202","reason":"virError(Code=27, Domain=20, Message='XML error: maximum memory size must be equal or greater than the actual memory size')","timestamp":"2024-06-13T12:23:41.937996Z","uid":"196f6489-782f-4bc0-a465-2795e7073170"}
      
      

      Expected results:

      VM running
      

      Additional info:

      VM with 4GB fails to run
      VM with 1GB fails to run as well
      

            acardace@redhat.com Antonio Cardace
            fdeutsch@redhat.com Fabian Deutsch
            Akriti gupta Akriti gupta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: