Using virtio drivers on RHEL6 with OpenShift Virtualization (CNV)

Solution Verified - Updated -

Issue

  • RHEL 6.10 guests using virtio block drivers fail to see the vda disk when installing

Environment

  • OCP 4.x
  • CNV 2.x

General RHEL6 VM is defined:

apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
  annotations:
    kubevirt.io/latest-observed-api-version: v1alpha3
    kubevirt.io/storage-observed-api-version: v1alpha3
  labels:
    kubevirt.io/vm: rhel6.test.example.com
  name: rhel6.test.example.com
  namespace: rhel6-virtualmachines
spec:
  dataVolumeTemplates:
  - metadata:
      annotations:
        kubevirt.io/provisionOnNode: rhel6.test.example.com
      creationTimestamp: null
      name: local-dv-os
    spec:
      pvc:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 100Gi
        storageClassName: kubevirt-hostpath-provisioner
      source:
        blank: {}
    status: {}
  running: false
  template:
    metadata:
      creationTimestamp: null
      labels:
        kubevirt.io/vm: rhel6.test.example.com
    spec:
      domain:
        cpu:
          cores: 1
          model: host-passthrough
          sockets: 2
        devices:
          disks:
          - bootOrder: 2
            disk:
              bus: virtio
            name: os-disk
          interfaces:
          - bootOrder: 1
            bridge: {}
            macAddress: ea:7f:00:d0:d0:0d
            name: vnic0
          networkInterfaceMultiqueue: true
        features:
          acpi:
            enabled: true
        resources:
          requests:
            cpu: 1500m
            memory: 8Gi
      networks:
      - multus:
          networkName: vlan0
        name: vnic0
      terminationGracePeriodSeconds: 120
      volumes:
      - dataVolume:
          name: local-dv-os
        name: os-disk
status: {}

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content