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

VM with Hugepages is failing to start

XMLWordPrintable

    • CNV Virtualization Sprint 255
    • No

      Description of problem:

      VM with Hugepages configured is failing to start 
      VM enters starting phase and VMI shows the following error:
          message: 'server error. command SyncVMI failed: "LibvirtError(Code=1, Domain=10,
            Message=''internal error: QEMU unexpectedly closed the monitor (vm=''virt-workload-density-test-free-page-reporting_vm-with-hugepage-1718185748-216692''):
            2024-06-12T09:50:39.980563Z qemu-kvm: -device {\"driver\":\"virtio-mem-pci\",\"node\":0,\"block-size\":2097152,\"memdev\":\"memvirtiomem0\",\"prealloc\":true,\"id\":\"virtiomem0\",\"bus\":\"pci.11\",\"addr\":\"0x0\"}:
            ''block-size'' property has to be at least the page size (0x40000000)'')"'
          reason: Synchronizing with the Domain failed.
          status: "False"
      
      eventuallly VMi is deleted and VM falls into CrashLoopBackOff
      

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

       

      How reproducible:

       

      Steps to Reproduce:

      1. create a VM with hugepages configured
      Spec:
          Template:
              Spec:
                  Domain:
                      Memory:
                          Guest:  1Gi
                          Hugepages:
                              Page Size:  1Gi
      2. start the vm
      3.
      

      Actual results:

      Vm fails to start 
      

      Expected results:

      Vm is up and running
      

      Additional info:

      Free Page reporting is enabled on the cluster

      node hugepages configuration:
      [akriti@fedora auth]$ oc describe node node-name | grep -A 22 "Capacity"
      Capacity:
      cpu: 112
      devices.kubevirt.io/kvm: 1k
      devices.kubevirt.io/tun: 1k
      devices.kubevirt.io/vhost-net: 1k
      ephemeral-storage: 1560959280Ki
      hugepages-1Gi: 4Gi
      hugepages-2Mi: 512Mi
      memory: 131428740Ki
      nvidia.com/NVIDIA_A2-2Q: 8
      pods: 250
      Allocatable:
      cpu: 111500m
      devices.kubevirt.io/kvm: 1k
      devices.kubevirt.io/tun: 1k
      devices.kubevirt.io/vhost-net: 1k
      ephemeral-storage: 1437506328243
      hugepages-1Gi: 4Gi
      hugepages-2Mi: 512Mi
      memory: 125559172Ki
      nvidia.com/NVIDIA_A2-2Q: 8
      pods: 250

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

                Created:
                Updated:
                Resolved: