• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.4
    • virt-v2v
    • None
    • virt-v2v-2.5.5-1.el9
    • None
    • Moderate
    • sst_virtualization
    • ssg_virtualization
    • 20
    • 23
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Currently, when converting VMs, we've noticed that the OS info field is missing in the output produced for -o kubevirt options but exist in the -o local option. since we relaying on this information for MTV releted thing and want to switch the output type to match kubevirt we wolud like to includ this info as well.

      Please provide the package NVR for which bug is seen:

      virt-v2v-2.3.4-5.el9.x86_64

      How reproducible:

      100%

      Expected results:

      include this info on the kubevirt output:

          <libosinfo:libosinfo xmlns:libosinfo='http://libosinfo.org/xmlns/libvirt/domain/1.0'>
            <libosinfo:os id='http://redhat.com/rhel/9.3'/>
          </libosinfo:libosinfo>
      

      Actual results

      resulting kubevirt YAML:
      ---
      # generated by virt-v2v 2.5.4fedora=40,release=1.fc40
      apiVersion: kubevirt.io/v1
      kind: VirtualMachineInstance
      metadata:
        name: 1nisim-rhel9-efi
      spec:
        domain:
          os:
            firmware: uefi
      
          resources:
            requests:
              memory: 4096Mi
            features:
          cpu:
            sockets: 2
            cores: 1
            thread: 1
          devices:
            rng: {}
            disks:
            - disk:
                bus: virtio
              name: disk-0
            interfaces:
            - name: "net_Mgmt Network"
              bridge: {}
              model: vmxnet3
        volumes:
        - hostDisk:
            path: /home/bkhizgiy/local_code_test/./1nisim-rhel9-efi-sda
            type: Disk
          name: disk-0
        networks:
        - networkName: "Mgmt Network"
          name: "net_Mgmt Network"
        terminationGracePeriodSeconds: 0
      
      
      
      resulting local libvirt XML:
      <?xml version='1.0' encoding='utf-8'?>
      <domain type='kvm'>
        <!-- generated by virt-v2v 2.5.4fedora=40,release=1.fc40 -->
        <name>1nisim-rhel9-efi</name>
        <metadata>
          <libosinfo:libosinfo xmlns:libosinfo='http://libosinfo.org/xmlns/libvirt/domain/1.0'>
            <libosinfo:os id='http://redhat.com/rhel/9.3'/>
          </libosinfo:libosinfo>
        </metadata>
        <memory unit='KiB'>4194304</memory>
        <currentMemory unit='KiB'>4194304</currentMemory>
        <vcpu>2</vcpu>
        <cpu mode='host-model'>
          <topology sockets='2' cores='1' threads='1'/>
        </cpu>
        <features>
          <acpi/>
          <apic/>
        </features>
        <os firmware='efi'>
          <type arch='x86_64' machine='q35'>hvm</type>
        </os>
        <clock offset='utc'/>
        <on_poweroff>destroy</on_poweroff>
        <on_reboot>restart</on_reboot>
        <on_crash>restart</on_crash>
        <devices>
          <disk type='file' device='disk'>
            <driver name='qemu' type='raw'/>
            <source file='/home/bkhizgiy/local_code_test/./1nisim-rhel9-efi-sda'/>
            <target dev='vda' bus='virtio'/>
          </disk>
          <disk device='cdrom' type='file'>
            <driver name='qemu' type='raw'/>
            <target dev='sda' bus='sata'/>
          </disk>
          <interface type='bridge'>
            <source bridge='Mgmt Network'/>
            <model type='virtio'/>
          </interface>
          <video>
            <model type='vga' vram='16384' heads='1'/>
          </video>
          <graphics type='vnc' autoport='yes'/>
          <rng model='virtio'>
            <backend model='random'>/dev/urandom</backend>
          </rng>
          <memballoon model='virtio'/>
          <panic model='isa'>
            <address type='isa' iobase='0x505'/>
          </panic>
          <vsock model='virtio'/>
          <input type='tablet' bus='usb'/>
          <input type='mouse' bus='ps2'/>
          <console type='pty'/>
          <controller type='virtio-serial' model='virtio'/>
          <channel type='unix'>
            <target type='virtio' name='org.qemu.guest_agent.0'/>
          </channel>
        </devices>
      </domain>
      

        1. reference_output.txt
          0.4 kB
          Richard Jones
        2. reference_output.yaml
          53 kB
          Richard Jones

            rhn-eng-rjones Richard Jones
            bkhizgiy Bella Khizgiyaev
            virt-maint virt-maint
            vera wu vera wu
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: